Using PicoDebug programmer on Apple Silicon - workaround #1743
Replies: 2 comments 1 reply
-
Thanks for the detailed steps. I'll pin this as a discussion so it'll be easier to find. |
Beta Was this translation helpful? Give feedback.
-
@WayneKeenan Would you mind sharing your CLion setup for using arduino-pico? I've hacked together some shoddy cmake files that enable code completion, but I've just added some custom targets that shell out to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I thought this might help other Apple Silicon users.
The bundled
openocd
is an Intel binary and trying to get libusb & libhid installed in anarch x86_64
homebrew
environment is just a disaster...To get this to work here's what I did, whilst the IDE is not running:
Install Apple silicon hombrew &
openocd
(I used my already existing setup so don't have detail 'replay instructions')Edit:
rp2040/hardware/rp2040/3.6.0/boards.txt
Comment out this line, the flags cause linking with
Serial
to fail.Add this below:
rp2040/hardware/rp2040/3.6.0/platform.txt
Point the Arduino programming config to the Apple silicon Homebrew and custom
openocd
config file (adjust the-f
path accordingly):Comment out this line:
Add this below:
openocd
somewhere safe and make sure the path in step 3 points to it.The
openocd_rp2040.cfg
comes from a pico-sdk & pico debug setup about 6 months ago, it might be modified, I can't recall, but this works for me here in Arduino and in Clion.Hope it helps.
openocd_rp2040.cfg.zip
Beta Was this translation helpful? Give feedback.
All reactions