How to build PlatformIO based project
- Install PlatformIO Core
- Download development platform with examples
- Extract ZIP archive
- Run these commands:
# Change directory to example
> cd platform-ststm32/examples/arduino-blink
# Build project
> platformio run
# Upload firmware
> platformio run --target upload
# Build specific environment
> platformio run -e maple
# Upload firmware for the specific environment
> platformio run -e maple --target upload
# Clean build files
> platformio run --target clean
For debugging chinese STM32 clone: * you need to change the CPUTAPID from 0x1ba01477 to 0x2ba01477 in the file with path: "~/.platformio/packages/tool-openocd/scripts/target/stm32f1x.cfg"