Having trouble building C++ on Windows

November 15, 2023, 02:22

blakeanator

Hello, Somewhat new here to Raspberry Pi, but I have several years of C++ experience. I'm on Windows and used the official installer that setup up VS Code for the Pico. A quick question: VS Code seems to have problems with the Debug Probe. I got it to debug my program once. But then it threw out some error about hardware breakpoints and now every time I try and launch the debugger I get a OpenOCD quit unexpectedly error. The console shows these errors:
Error: could not get configuration descriptor 0 for device 0x1b1c:0x0c32: Input/Output Error
Warn : could not read product string for device 0x2e8a:0x000c: Operation timed out
Error: unable to find a matching CMSIS-DAP device
It almost feels like these Raspberry Pi devices were developed with only Linux in mind. Wondering if I should use WSL or just switch to a Linux machine. Thoughts? Thanks, Blake

k9t33n

Vs code is a bit of a struggle with a pi

k9t33n

theres loads of basic IDEs you can use for it which will work much better

k9t33n

check out main menu --> either preferences or other --> recommended software

k9t33n

if it's not in there just check all of the main menu for "recommended software