Commit Graph

552 Commits

Author SHA1 Message Date
King Kévin 7b7f26ee47 rakefile: fix remove protection for F4 2020-11-30 14:51:06 +01:00
King Kévin 3d00bdf3c0 application: add periodis RTC wakeup 2020-11-30 14:36:33 +01:00
King Kévin 319a02d2b4 Rakefile: add macro debugging information 2020-11-28 15:19:13 +01:00
King Kévin cc8be1f278 application: RTC + date/time added 2020-11-28 15:17:52 +01:00
King Kévin e255573b1e application: port to STM32F4 (RTC is not working yet) 2020-11-27 17:07:39 +01:00
King Kévin 0fe7e1fd39 USB CDC ACM: fix sending loop (and spacing) 2020-11-27 17:06:21 +01:00
King Kévin 2249f460e3 uart: port to STM32F4 2020-11-27 16:49:59 +01:00
King Kévin aae4009fbe USB CDC ACM: minor fix spacing 2020-11-27 16:44:17 +01:00
King Kévin a9284b7154 USB CDC ACM: port to STM32F4 2020-11-27 16:43:57 +01:00
King Kévin 777fd7afb9 USB CDC ACM: match serial to STM32 bootloader 2020-11-27 16:41:19 +01:00
King Kévin 31079d95dd dfu: minor, improve disconnect 2020-11-27 16:39:51 +01:00
King Kévin ced714129c Rakefile: add method to flash bootloader over DFU 2020-11-27 16:39:11 +01:00
King Kévin 4fcfd29d2b global: add synchronisation barrier commands 2020-11-27 16:38:32 +01:00
King Kévin 06de8d0be9 global: add common function to start DFU and systeme memory 2020-11-27 16:37:52 +01:00
King Kévin de36c7f3a2 DFU: fix DP pull down 2020-11-27 16:05:55 +01:00
King Kévin 8918b97618 DFU: minor, remove unused/duplicate code 2020-11-27 16:05:37 +01:00
King Kévin 0bb2be3727 DFU: set serial to match STM32 DFU bootloader 2020-11-27 16:04:07 +01:00
King Kévin a781fc5b3b Rakefile: use derivated device properties 2020-11-27 15:54:08 +01:00
King Kévin 00ef5d9344 bootloader: update to work with F4 2020-11-24 16:18:17 +01:00
King Kévin 9fbf5b4aad usb_dfu: update to work with F4 2020-11-24 16:17:37 +01:00
King Kévin 46083bdf5e libopencm3: use branch with OTG fix
because the MINIF4 board does not have an optional pull-up resistor on D+, the device is not enumerated without this fix.
this fix is not yet in official libopencm3 master.
2020-11-24 16:11:01 +01:00
King Kévin 8a165c4d71 flash_internal: remove F1 flash utilities, add F4 section utility
compared to the STM32F1, the STM32F4 does not used 1 KB flash pages.
F4 uses variable large (>= 16 KB) flash sections.
this makes using the last page (128 KB instead of 1KB) for EEPROM highly inefficient.
caching such large pages before reprogramming small portion is also no doable (there is not enough RAM).
thus almost all F1 utilities are not applicable anymore.
to help erasing the right section, a utility to get the section from an address is added.
2020-11-24 16:04:42 +01:00
King Kévin 9db9ea9dc1 terminal: minor, fix doc 2020-11-24 16:01:49 +01:00
King Kévin 4b514c6801 global: remove macro pin definition since on F4 they are not unique 2020-11-24 16:01:06 +01:00
King Kévin 6a34352914 global: define MINIF401 button/led pins 2020-11-24 15:59:42 +01:00
King Kévin 35c441355d lib: disable most libraries since they need tuning to be F4 compatible 2020-11-24 15:56:00 +01:00
King Kévin 9751880813 Rakefile: compile for STM32F4 2020-11-24 15:51:03 +01:00
King Kévin e58614002c *.ld: set flash and RAM size for STM32F401xC 2020-11-24 15:48:25 +01:00
King Kévin a4b5f95b07 application: minor, fix typo 2020-11-13 11:42:54 +01:00
King Kévin dd52d0bf98 README: update flash bootloader 2020-10-11 12:55:04 +02:00
King Kévin 6574a65ea6 led_sk6812rgbw: extended version of WS2812B library, supporting 4th color, using bit banding, removing need of timer 2020-10-11 12:51:05 +02:00
King Kévin 620e46938e led_tm1637: allow the display to be upside down 2020-10-11 12:51:05 +02:00
King Kévin 9b522b4228 led_ws2812b: minorx, fix comment 2020-10-11 12:51:05 +02:00
King Kévin 2f251e0ad7 led_tm1637: fix updating (both command and data need to be sent every time 2020-10-11 12:51:05 +02:00
King Kévin d80587c21d application: re-add uptime command 2020-07-22 16:22:22 +02:00
King Kévin 629500e4bd application: remove all MCU model info. this has moved to the dedicated identifier firmware 2020-06-24 11:58:08 +02:00
King Kévin 5a028c23c4 flash_internal: probe_write only tests over advertized flash (works also with linker info) 2020-06-24 11:58:03 +02:00
King Kévin 60279d0a52 print: fix hex padding (and add spaces) 2020-06-24 11:57:59 +02:00
King Kévin 8566a4043b uart_soft: use new pin definition, fix multi-uart support, use masking instead of mod 2020-06-24 11:57:54 +02:00
King Kévin 97d197237c uart: replace mod with masking 2020-06-24 11:57:51 +02:00
King Kévin f261cac536 Rakefile: allow to specify CPUTADIP to use SWD with CKS32 2020-06-24 11:57:45 +02:00
King Kévin 905b7d153b application: improve MCU identification 2020-06-24 11:57:40 +02:00
King Kévin e054774544 flash_internal: don't used unreliable MCUID to figure out flash page size 2020-06-24 11:57:35 +02:00
King Kévin 8142854522 flash_internal: replace probe size with more accurate probe_read and probe_write 2020-06-24 11:57:28 +02:00
King Kévin e85af656d3 bootloader: disable clocks after domains used 2020-06-24 11:57:22 +02:00
King Kévin a310fb402a global: add RST macros for GPIO 2020-06-24 11:57:18 +02:00
King Kévin 55c6319928 print: fix padding on hex printing 2020-06-24 11:57:13 +02:00
King Kévin 3b7179d49a print: minor, add spaces around operators 2020-06-24 11:57:08 +02:00
King Kévin 60a1859008 usb_cdcacm: add flush method to wait for empty buffer 2020-06-24 11:57:04 +02:00
King Kévin 86ad8ea7ef Rakefile: don't overwrite and restart when debugging 2020-06-24 11:56:58 +02:00