I’m trying to debug the simple arduino led blinker sample with a bluepill (and blackpill) with an stlink v2 clone but when I try to start the debug session nothing happens (fresh install of PlatformIO and VSCode)
my platformio.ini
[env]
platform = ststm32
framework = arduino
build_type = debug
debug_tool = stlink
upload_protocol = stlink
[env:bluepill_f103c8]
board = bluepill_f103c8
board_build.mcu = stm32f103c8t6
board_build.f_cpu = 72000000L
[env:blackpill_f401cc]
board = blackpill_f401cc
board_build.mcu = stm32f401ccu6
board_build.f_cpu = 84000000L
logs:
> Executing task in folder 220204-005444-arduino-blink: C:\Users\ike\.platformio\penv\Scripts\platformio.exe debug --environment bluepill_f103c8 <
Processing bluepill_f103c8 (board: bluepill_f103c8; platform: ststm32; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/bluepill_f103c8.html
PLATFORM: ST STM32 (15.2.0) > BluePill F103C8
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 4.20100.211028 (2.1.0)
- framework-cmsis 2.50700.210515 (5.7.0)
- toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 11 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio\build\bluepill_f103c8\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 4.0% (used 828 bytes from 20480 bytes)
Flash: [== ] 20.2% (used 13236 bytes from 65536 bytes)
============================================================================= [SUCCESS] Took 5.79 seconds =============================================================================
Environment Status Duration
--------------- -------- ------------
bluepill_f103c8 SUCCESS 00:00:05.785
============================================================================= 1 succeeded in 00:00:05.785 =============================================================================
Terminal will be reused by tasks, press any key to close it.
The blinker sample works (the upload works through stlink, led blinks)