Replies: 4 comments 14 replies
-
If the README is right and just have to upload the .uf2 to on it and it'll show up as CMSIS-DAP debugger (and this is somehow additive to the USB devices already created by the firmware), you'd just need to use debug_tool = cmsis-dap to configure PlatformIO to use it. I have not tried this yet. Edit: Ah, so definitely don't use USB in your firmware.
So per https://arduino-pico.readthedocs.io/en/latest/platformio.html you'll need the NO_USB configuration. |
Beta Was this translation helpful? Give feedback.
-
So here's the current state: Downloaded the u2f files from https://github.com/majbthrd/pico-debug/releases.
I uploaded pico-debug to the board... I can confirm that this worked as dmesg returned:
... so the board no longer came up as a USB device :) Then created an empty platformio project, and set the following options in the ini file:
Since I am running on linux I had to run the following command as well:
Then compile ... all good ... upload however comes back with an error...
Just out of curiousity pressed F5, debugger seemed to start but not much appears to be happening... So not sure if I missed a step or there is something particular to my platform/setup? |
Beta Was this translation helpful? Give feedback.
-
Ah then it'll just need array entry in the forked platform-raspberrypi and an addition in the boards array -- will look into tomorrow
|
Beta Was this translation helpful? Give feedback.
-
Hello Gents, just in case it gets lost in the shuffle, I've tried the solution proposed and was not successful, see post for #1427 |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been successful using the RP2040 based tiny pico in Platformio using the config:
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
framework = arduino
So far so good ... now looking at being able to reliably debug sketches from within the Platformio+VS environment. From what I understand so far the PICO could use the second core for USB CMSIS-DAP based debugging. Like the idea of fewer anything that can go wrong so this seems very appealing. My currently supported upload options (as per the message in platformio) do not include pico-debug. While picoprobe is supported, it seems to require external hardware, etc.
As I am a rusty amateur on a good day, I am none the wiser after reading https://github.com/majbthrd/pico-debug/blob/master/howto/README.md Is there a way to set up pico-debug for my given dev environment on Linux? The ideal setup would run reliably and work with the USB cable (already using for uploads).
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions