Custom Raspberry Pi Pico Expansion Board Pico-PMOD ExtBoard Onboard DAPLink Debugger/SWD Interface PMOD Connector Manufacturer
Custom Raspberry Pi Pico Expansion Board Pico-PMOD ExtBoard Onboard DAPLink Debugger/SWD Interface PMOD Connector Manufacturer
Features
Lead out all GPIOs of Pico with standard PMOD connector
Onboard DAPLink debugger provides swd interface for programming Pico
Onboard DAPLink debugger provides serial port
TYPE-C for power and debug
How to Program
The onchiprom program of Pico implements a USB disk with drag-and-drop programming function. However, in some R&D scenarios where the codes are modified and test frequently, you need to repeatedly power down Pico, hold down the button and power up it again, and wait for the USB to complete enumeration before drag and drop. This process is a slightly tedious. In fact, Pico can be programmed & debugged through SWD interface with openocd by command lines without need to re-power Pico. The steps are described as follows,
1.install openocd
$ cd ~/pico
$ sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev
$ git clone https://github.com/raspberrypi/openocd.git --recursive --branch rp2040 --depth=1
$ cd openocd
$ ./bootstrap
$ ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio
$ make -j4
$ sudo make install
2.This repository has wrapped the command into scripts. You can call the script in any path after exporting the environments variables. Note that the format of the burn suffix is hex or bin, not the drag and drop uf2 file
$cd RPI-HAT-Pico-BreakoutBoard/tools
$source env.sh
$rfw xxx.hex/xxx.bin
More details please refer to getting-started-with-pico section 5
How to Use Serial Port
The serial port pins of onboard DAPLink debugger and Pico are connected as below,
You can use the minicom or picocom to open the serial port under Linux.
For example:
$sudo apt install minicom
$minicom -b 115200 -o -D /dev/ttyACM0
$sudo apt install picocom
$picocom -b 115200 /dev/ttyACM0
More details please refer to getting-started-with-pico section 4.5
How to Compile
$cd tools && source env.sh && cd -
$cd software/infones
$mkdir -p build && cd build
$cmake ..
$make -j
$dfw infones/pico_infones.bin
$dreset
Documentation
pico-sdk
https://github.com/raspberrypi/pico-sdk
pico-examples
https://github.com/raspberrypi/pico-examples
RPI-HAT-Pico-BreakoutBoard
https://github.com/wuxx/RPI-HAT-Pico-BreakoutBoard
DAPLink
https://github.com/ARMmbed/DAPLink
Shipping List
Pico-PMOD ExtBoard * 1