Flashing the RP2040 with a Jlink and OpenOCD

git clone https://github.com/raspberrypi/openocd.git
cd openocd
./bootstrap
./configure --enable-picoprobe
make -j$(nproc)
sudo make install
  • Pico SWDIO to Jlink SWDIO, Pin 7
  • Pico SWCLK to Jlink SWCLK, Pin 9
  • Pico GND to Jlink GND
  • Pico 3V3(OUT), Pin 36 to Jlink VTref, Pin 1
  • Pico RUN, Pin 30 to Jlink RESET, Pin 15
#!/bin/bashopenocd -f interface/jlink.cfg -c "transport select swd" -c "adapter_khz 6000" -f target/rp2040.cfg  -c "program blink.elf reset exit"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store