PIO Debug with FreeRTOS + libopencm3

i was really enjoying platformio integration with VSCode till i got stuck in a strange problem.

i am using FreeRTOS-libopencm3 library with blink example, program work fine when i simply upload it,
but whenever i try to debug it, it got stuck in blocking handler with ISR 3 (blocking handler) as soon as it reaches vStartFirstTask method. i had verified vector table and sv_call/pend_sv and systick references are fine. before getting hardfault program hits systick handler.

because program works fine without debugging and i was able to debug other examples without freertos, i am out of clue on this perticular issue.

Did you ever find a solution to this problem?

I’m having the same problem with an Adafruit Feather nRF52840 Express:

1 Like

This sounds like the problem I encountered (and finally fixed) in Debugging FreeRTOS on STM32 Bluepill - #11 by deltaphi.