Replies: 5 comments 5 replies
-
I managed to add the option myself. Should I open a pull request? |
Beta Was this translation helpful? Give feedback.
-
This sounds very neat. Are you going to try and integrate the debugging 2nd core stuff as well? I think this could be an extension of the USB Stack menu, and while you're adding it the FYI, the boards.txt file is generated from |
Beta Was this translation helpful? Give feedback.
-
I'm the author of pico-debug. Just for context: pico-debug is an alternative to picoprobe; only one RP2040 is needed (unlike two for picoprobe) and there is no added cabling. As I originally envisioned it, the user programs their app into the RP2040 as normal and only loads pico-debug into RAM if and when they need it for debugging. However, there is no technical reason why you couldn't incorporate it into the user image if you wanted to. Allowing the user to disable USB in the user app if they don't need it sounds like a great first step. Perhaps integration of pico-debug could be a future plan if there is interest? I can propose ways of integrating it once I've had a chance to look at the arduino-pico code. |
Beta Was this translation helpful? Give feedback.
-
@earlephilhower, I think your gut is right, but I'm beginning to remember why I originally soured on the approach of a built-in image. The problem with having the user main startup invoke the debugger is that it would reset and restart the debugger every time the user code ran that code (which would be every time the user restarted their code, which happens often in debugging). That pulls the rug out from under the IDE. The advantage of the existing approach is that once pico-debug is invoked, it does its own thing without being coupled to the user code. |
Beta Was this translation helpful? Give feedback.
-
Release 1.9.2 enabled 1st-class |
Beta Was this translation helpful? Give feedback.
-
Hello! First of all, I would like to thank you for this awesome project, thanks to it the Pico is now my favourite ARM board 😃.
I am currently playing with @majbthrd 's pico-debug project, which uses the second core of the RP2040 as a CMSIS-DAP debugger for the main core. Using it implies that the main core can't touch the USB peripheral at all without breaking the debugger. I got it to work with Arduino sketches by commenting the __USBStart() function in main.
My idea is to have an option in the board config (perhaps under the USB Stack menu) to not enable the USB functionality in the sketch.
Beta Was this translation helpful? Give feedback.
All reactions