Commit Graph

288 Commits

Author SHA1 Message Date
King Kévin 396c7852e7 I2C: add timeout to send start condition
sometimes the internal state f the I2C peripheral is confused,
and sending a start condition is not possible and the
corresponding registers will not be set.
see the errata for more details.
as workaround a timer is used, resetting the I2C is case it times
out
2019-03-26 18:01:23 +01:00
King Kévin 5e13d19bda DFU: multiple fix
* add spaces around operators
* remove detach timeout since we reboot immediately after download
* reduce polling timeout to increase flashing speed
* use block number instead of counting to know which page to flash
* remove detach case since this request is only for runtime mode
* fix APP_IDLE to DFU_IDLE
2019-01-12 16:23:20 +01:00
King Kévin 3c6fde5822 DFU minor: add space around operators for readability 2019-01-12 16:20:05 +01:00
King Kévin c1bc2527bb disable UART output for ST-Link V2 board
on ST-Link V2 USART1_TX is also the LED pin
if you still want USART1 for debugging output, remap it
USART1_TX will then be on RST pin of connector,
USART1_RX will then be on SWIM pin of connector,
remapping is not done per default since this board already has
a limited number of pin available on the connector
2018-10-29 15:03:34 +01:00
King Kévin a6ebf92b51 fix stlinkv2 LED pin 2018-10-29 15:01:29 +01:00
King Kévin 60de1182a4 add support for ST-Link V2 clone adapter 2018-10-29 14:14:32 +01:00
King Kévin 4b531542dc fix RTC with HSE initialisation 2018-10-29 14:09:01 +01:00
King Kévin 4dbf6df59f DFU: update call to match library 2018-10-29 12:30:23 +01:00
King Kévin 5c976064b0 flash_internal: return number of bytes written 2018-10-29 12:29:47 +01:00
King Kévin 6c829a51cf flash: only erase and preserve flash when required or requested 2018-10-28 22:50:51 +01:00
King Kévin 42ed03fa67 add IR NEC library 2018-10-28 22:46:52 +01:00
King Kévin fd59ef5ac4 blue pill: use HSE as RTC clock to be able to toogle onboard LED 2018-10-28 22:44:53 +01:00
King Kévin fc71988012 Rakefile: fix debug with ST-Link V2 2018-10-28 22:29:21 +01:00
King Kévin c5fc45b5a1 terminal: make prefix bold 2018-10-07 23:15:53 +02:00
King Kévin 507d2d05de 1-Wire: fix doc 2018-10-07 23:15:53 +02:00
King Kévin 30628ebb37 fix library dependency 2018-10-07 23:15:46 +02:00
King Kévin d3fd1ff84f 1-Wire: add family code device table 2018-10-07 23:13:23 +02:00
King Kévin 20ce3abf54 Rakefile (minor): make dfu-util command more readable 2018-10-07 23:12:59 +02:00
King Kévin 8e710f21c4 USART: put parity LUT in header so others can use it 2018-10-07 23:11:19 +02:00
King Kévin 7b0922b614 1-wire: add option to use interrupt redirection 2018-10-07 23:11:19 +02:00
King Kévin 1e330bee2f interrupt: add library to redirect ISR at runtime 2018-10-07 23:11:19 +02:00
King Kévin b02e9b172e 1-wire: stop search when not slave is detected, and mention that code 0 means the data line might not be pulled up 2018-10-07 23:09:26 +02:00
King Kévin 2dadbb8292 USART enhanced: add additional data bits and parity support 2018-10-07 23:09:26 +02:00
King Kévin 3c7466ca0e UART: fix transmission problem when buffer is full 2018-10-07 23:09:26 +02:00
King Kévin 730885fbdd global: add macro for TIM_SR_CCOF and RST_USART 2018-10-07 23:09:25 +02:00
King Kévin 2da84d9063 Rakefile: use gcc as linker instead of ld to profit from library finding 2018-06-08 13:40:38 +02:00
King Kévin c6f78ad2ee UART: set to common 115200 baudrate 2018-06-08 13:39:40 +02:00
King Kévin 444534e214 1-Wire: remove misleading parasitic power function, add byte function 2018-06-08 10:47:30 +02:00
King Kévin accb5fd95b global: remove BV specific LEDs functions 2018-06-08 10:46:33 +02:00
King Kévin fa3293a1f9 USB: fix packet loss 2018-06-08 10:46:33 +02:00
King Kévin 76994571b5 USB: fix user buffer overwrite 2018-06-08 10:46:33 +02:00
King Kévin 0ac0af5d52 update code to libopencm3 API change 2018-06-08 10:46:33 +02:00
King Kévin 9da8708bca updated libopencm3 submodule 2018-06-08 10:46:33 +02:00
King Kévin 372655c97c USB: improve comments and a fix of code 2018-06-08 10:45:01 +02:00
King Kévin dd0fcc1df7 Rakefile: remove reset functionnality 2018-06-08 10:45:01 +02:00
King Kévin 8498e4dc03 bootloader: fix SRAM comment 2018-06-08 10:45:01 +02:00
King Kévin 98a1f05ac6 flash_internal: fix page size detection 2018-04-07 11:16:28 +02:00
King Kévin 7b90696b6c flash internal: check enforced flash size 2018-04-06 19:56:57 +02:00
King Kévin d6990728a5 ld: improve flash size enforcing description 2018-04-06 19:55:52 +02:00
King Kévin fcbabf1ea7 application: integrate terminal and menu 2018-04-06 17:37:17 +02:00
King Kévin 4a634fb19f USB: fix doc 2018-04-06 16:54:48 +02:00
King Kévin 2a7fe9ae93 global: re-enable sleep in sleep_ms 2018-04-06 16:54:48 +02:00
King Kévin 61cc2491a6 bootloader: enable RCC_AFIO before remapping pin 2018-04-03 17:54:59 +02:00
King Kévin 96f3458317 USB: use pid.codes USB PID codes for CuVoodoo board 2018-04-03 17:08:34 +02:00
King Kévin 4470ba7de2 take OLED SSD1306 library from busvoodoo branch 2018-04-03 17:00:04 +02:00
King Kévin 593b0e0e25 take changes from busvoodoo branch 2018-04-03 16:59:02 +02:00
King Kévin 922661ffb3 bootloader: fix disabling JNRST 2018-02-18 17:50:49 +01:00
King Kévin b24dda9298 Rakefile: fix typo 2018-02-18 17:50:23 +01:00
King Kévin 7169785e56 fix/adapt cherry-pick from busvoodoo branch 2018-02-18 15:28:00 +01:00
King Kévin 62bfaf3973 cherry-pick from busvoodoo branch, part 4 2018-02-18 15:21:18 +01:00