Commit Graph

488 Commits

Author SHA1 Message Date
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
King Kévin b8d4be47e4 Rakefile: halt after attaching 2020-06-24 11:56:42 +02:00
King Kévin 99d4be6a44 application: fix date display and add offset 2020-06-21 10:15:14 +02:00
King Kévin e71515bcce replace header license with SPDX statement 2020-06-10 19:04:41 +02:00
King Kévin 28604a43fd uart: improve setup, blocking transmission, and flushing 2020-06-10 19:04:27 +02:00
King Kévin 5ab9402644 as3935: fix IRQ setup 2020-06-10 19:04:27 +02:00
King Kévin 6fa46ee86c sx172x: add library to communicate with semtech SX127x LoRa module 2020-06-10 19:04:27 +02:00
King Kévin 54456e0cb4 application: minor, improve code 2020-06-10 19:04:27 +02:00
King Kévin b48c65b5e0 application: only show additional MCU info on DEBUG 2020-06-10 18:02:53 +02:00
King Kévin 9f419e1da0 application: minor, improve code 2020-06-10 17:40:54 +02:00
King Kévin 9417cbf392 vfd_hv518: minor, fix spacing 2020-03-23 11:41:08 +01:00
King Kévin 6bb7cd1606 application: add dev_id for STM32F411xC/E in version action 2020-03-17 09:47:28 +01:00
King Kévin 66bb0bdcaa application: add dev_id for STM32F401 in version action 2020-03-17 09:43:18 +01:00
King Kévin 87f8e3a157 application: add dev_id for STM32F4xx in version action 2020-03-17 09:32:29 +01:00
King Kévin 25c0ae0271 application: add fake STM32 detection in version action 2020-03-16 20:55:50 +01:00