gary9716 / platform-io-stm32-stlink-debugger-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to build PlatformIO based project

  1. Install PlatformIO Core
  2. Download development platform with examples
  3. Extract ZIP archive
  4. 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"

About


Languages

Language:C++ 100.0%