- Install platformio core or one of platformio IDEs.
- Install Adafruit_GFX library. Run this in root directory of this repository:
Need to delete SPITFT stuff because it pulls another dependency we don't need.
pio lib install 13 find . -type f -name 'Adafruit_SPITFT*' -delete
- Compile:
pio run
Artifacts including firmware.bin
will be generated in .pioenvs/genericSTM32F103C8
.
First you need to flash the stm32duino bootloader using serial. Grab the binary and flash it (you only have to do this once).
After this you can flash the board using USB:
pio run -t upload
In that case just install the bootloader using any tool you like to flash stm32
devices that don't support DFU protocol and then upload precompiled
firmware.bin
directly using maple upload tool:
maple_upload COM4 2 1EAF:0003 path/to/firmware.bin
Note, this tool needs to be able to find dfu_util in $PATH.