Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.63 KB

howto.md

File metadata and controls

42 lines (33 loc) · 1.63 KB

Compiling

  1. Install platformio core or one of platformio IDEs.
  2. Install Adafruit_GFX library. Run this in root directory of this repository:
    pio lib install 13
    find . -type f -name 'Adafruit_SPITFT*' -delete
    Need to delete SPITFT stuff because it pulls another dependency we don't need.
  3. Compile:
    pio run

Artifacts including firmware.bin will be generated in .pioenvs/genericSTM32F103C8.

Flashing

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

But I don't want to install platformio or stm flash loader

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.