Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8023

General • VS Code Debugging on Windows 11

$
0
0
I am working on a project that uses SMP in FreeRTOS. I have the Raspberry debugger module a use OPENOCD provided by Raspberry. I have Pico SDK 2.1 installed.

I am working on this project on two PCs.

On my windows 10 PC I can load and debug just fine.

However, on my Windows 11 PC.

If it delete the build directory and the start the debugger, it load and stops at the entry point as expected.

But if i modify one file (just add a space somewhere) and rebuild then debug a second time, it will not download. It takes some time, then I can tell my program starts running (I have some blinking LEDs), but the IDE dees not stop in the main function as expected.

If I simply delete the build directory, then rebuild, then debug, it works again.

When it does not work I have tried:
Power cycling the target board
Rebooting the Raspberry debugger module (unplug its USB cable)
Booting the target into bootloader mode before starting the debugger
Rebooting my windows PC and the start the debugger

Nothing works, except deleting the build folder and rebuilding the entire project again

Does anyone know what could cause this odd behavior. Building the project is time consuming so this is not an acceptable work around.

Statistics: Posted by slammers — Wed May 14, 2025 7:55 pm



Viewing all articles
Browse latest Browse all 8023

Trending Articles