Introduction
Pitaya-Link is a low-cost debug probe based on the CMSIS-DAP (also known as DAPLink) protocol standard. It can be used to program and debug the application software running on Arm Cortex Microcontrollers.
The design enables developers with Drag-And-Drop programming, Virtual COM Port, CMSIS-DAP compliant debug channel, and access to Arm Cortex Microcontrollers in the browser using WebUSB.
The probe comes with indicator LEDs, a button to reset the target or trigger the firmware update, reversible USB-C connector and easy-to-use 7-pin 2.54mm Header.
This post is intended to assist users in the initial setup and demonstration of programming Nordic's nRF5x SoCs with Pitaya-Link.
What you'll need
- A Pitaya-Link Debug Probe
- A macOS/Linux/Windows PC
- An nRF52 target board(e.g. nRF52840 MDK USB Dongle)
Installing pyOCD
pyOCD is an open source Python package for programming and debugging Arm Cortex-M microcontrollers using multiple supported types of USB debug probes. It is fully cross-platform, with support for Linux, macOS, and Windows.
The latest stable version of pyOCD may be installed via pip as follows:
pip install -U pyocd
Alternatively, you can install the latest prerelease version from the HEAD of the master branch, you can do the following:
pip install --pre -U https://github.com/mbedmicro/pyOCD/archive/master.zip
Verify if pyOCD works correctly in your terminal:
pyocd --version
Connecting the target
Perform the following steps to connect your nRF5x target board:
- Connect the target board to Pitaya-Link using the provided 7-pin Cable.
- Connect Pitaya-Link to the PC using the provided USB-C Cable.
- A disk drive called PITAYA-LINK will be automatically detected by the computer.