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"

--

--

--

Building things.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting Started with Kafka

Pandas >> DateOffset, Timedelta, Period

Lawsuits and Trials

lawsuits and trials

Build a JavaScript Tip Calculator

Step by step guide to setup Azure Virtual Desktop -Part1

The Nuts & Bolts of Azure Storage!

Fsociety Hacking Tools Pack — A Penetration Testing Framework

AWS SNS topic Subscription with email protocol using Terraform

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
Ryan Walker

Ryan Walker

Building things.

More from Medium

RADU: How to build a Robot with Arduino and Raspberry Pi

What Is ROS2 and How To Install It on Raspberry Pi?

ESP32 101 : Turning on LED Lights

Project #3: Internal Sensor on ESP32 with Arduino IDE