platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

debug not working

Open camelator opened this issue 7 months ago • 1 comments

Working on vscode and last plaztformio studio on Ubuntu. i have code for stm32 targets (tried with several stm32 targets):

[env:bluepill_f103c8] platform = ststm32 framework = arduino board = bluepill_f103c8 debug_tool=blackmagic upload_protocol = blackmagic monitor_speed=115200 build_type=debug

my debugger is a blackmagic debug - the last version.

Trying to debug give this strange behaviour : everything looks working fine until gdb meet the a breakpoint in arduino "main", the black magic BMP is in debug mode as I can see the blue light flashing (that is the expected behaviour) but instead of communicate its state to vscode and allow the user to press F5 to continue, the thread is locked in the debugger, there is also a '>' symbol to write gdb command. In studio code, the two available options are restart and stop. The expected behaviour is to have a continue button. Here is the displayed text:

Reading symbols from /home/christian/code/robots/dis1/test1/.pio/build/bluepill_f103c8/firmware.elf... Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated. Use 'set mi-async'.

PlatformIO Unified Debugger -> https://bit.ly/pio-debug PlatformIO: debug_tool = blackmagic PlatformIO: Initializing remote target... Target voltage: Unknown Available Targets: No. Att Driver 1 STM32F1 L/M density M3 0x1ffff3b2 in ?? () Temporary breakpoint 1 at 0x8001962: file /home/christian/.platformio/packages/framework-arduinoststm32/cores/arduino/main.cpp, line 50. Note: automatically using hardware breakpoints for read-only addresses. PlatformIO: Initialization completed PlatformIO: Resume the execution to debug_init_break = tbreak main PlatformIO: More configuration options -> https://bit.ly/pio-debug

camelator avatar Jul 23 '25 16:07 camelator

Sorry, it was a hardware error : I've" changed the board and everything is working

camelator avatar Jul 26 '25 06:07 camelator