nRF51 Dongle

Overview

The nRF51 Dongle (PCA10031) hardware provides support for the Nordic Semiconductor nRF51822 ARM Cortex-M0 CPU and the following devices:

  • ADC

  • CLOCK

  • FLASH

  • GPIO

  • I2C

  • NVIC

  • RADIO (Bluetooth Low Energy)

  • RTC

  • Segger RTT (RTT Console)

  • SPI

  • UART

  • WDT

More information about the board can be found at the nRF51 Dongle website [1]. The Nordic Semiconductor TechDocs [2] contains the processor’s information and the datasheet.

Hardware

nRF51 Dongle has two external oscillators. The frequency of the slow clock is 32.768 kHz. The frequency of the main clock is 16 MHz.

Supported Features

The nrf51dongle board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
nrf51dongle
/
nrf51822

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M0 CPU1

arm,cortex-m0

ADC

on-chip

nRF ADC node1

nordic,nrf-adc

ARM architecture

on-chip

Nordic UICR (User Information Configuration Registers)1

nordic,nrf-uicr

on-chip

Nordic nRF family MPU (Memory Protection Unit)1

nordic,nrf-mpu

on-chip

Nordic nRF family SWI (Software Interrupt)6

nordic,nrf-swi

Clock control

on-chip

Nordic nRF clock control node1

nordic,nrf-clock

Comparator

on-chip

Nordic nRF LPCOMP (analog Low-Power COMParator)1

nordic,nrf-lpcomp

Counter

on-chip

Nordic nRF timer node3

nordic,nrf-timer

Cryptographic accelerator

on-chip

Nordic ECB (AES electronic codebook mode encryption)1

nordic,nrf-ecb

on-chip

Nordic nRF family CCM (AES CCM mode encryption)1

nordic,nrf-ccm

Flash controller

on-chip

Nordic NVMC (Non-Volatile Memory Controller)1

nordic,nrf51-flash-controller

GPIO & Headers

on-chip

NRF5 GPIOTE1

nordic,nrf-gpiote

on-chip

NRF5 GPIO1

nordic,nrf-gpio

I2C

on-chip

Nordic nRF family TWI (TWI master)2

nordic,nrf-twi

Interrupt controller

on-chip

ARMv6-M NVIC (Nested Vectored Interrupt Controller) controller1

arm,v6m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

on-board

Group of PWM-controlled LEDs1

pwm-leds

Miscellaneous

on-chip

Nordic FICR (Factory Information Configuration Registers)1

nordic,nrf-ficr

on-chip

Nordic nRF family PPI (Programmable Peripheral Interconnect)1

nordic,nrf-ppi

MTD

on-chip

Flash node1

soc-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Networking

on-chip

Nordic nRF family RADIO peripheral1

nordic,nrf-radio

Pin control

on-chip

The nRF pin controller is a singleton node responsible for controlling pin function selection and pin properties1

nordic,nrf-pinctrl

Power management

on-chip

Nordic nRF power control node1

nordic,nrf-power

PWM

on-chip

nRFx S/W PWM1

nordic,nrf-sw-pwm

Retained memory

on-chip

Nordic GPREGRET (General Purpose Register Retention) device1

nordic,nrf-gpregret

RNG

on-chip

Nordic nRF family RNG (Random Number Generator)1

nordic,nrf-rng

RTC

on-chip

Nordic nRF RTC (Real-Time Counter)2

nordic,nrf-rtc

Sensors

on-chip

Nordic nRF family TEMP node1

nordic,nrf-temp

on-chip

Nordic nRF quadrature decoder (QDEC) node1

nordic,nrf-qdec

Serial controller

on-chip

Nordic nRF family UART1

nordic,nrf-uart

SPI

on-chip

Nordic nRF family SPI (SPI master)2

nordic,nrf-spi

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Watchdog

on-chip

Nordic nRF family WDT (Watchdog Timer)1

nordic,nrf-wdt

See nRF51 Dongle website [1] and Nordic Semiconductor TechDocs [2] for a complete list of nRF51 Dongle hardware features.

Connections and IOs

LED

  • LED1 (red) = P0.21

  • LED1 (green) = P0.22

  • LED1 (blue) = P0.23

Push buttons

  • BOOT = SW1 = boot/reset

Programming and Debugging

The nrf51dongle board supports the runners and associated west commands listed below.

flash debug attach debugserver rtt
jlink ✅ (default)
nrfjprog
nrfutil ✅ (default)

Flashing

Follow the instructions in the Nordic nRF5x Segger J-Link page to install and configure all the necessary software. Further information can be found in Flashing. Then build and flash applications as usual (see Building an Application and Run an Application for more details).

Here is an example for the Hello World application.

First, run your favorite terminal program to listen for output.

$ minicom -D <tty_device> -b 115200

Replace <tty_device> with the port where the board nRF51 Dongle can be found. For example, under Linux, /dev/ttyACM0.

Then build and flash the application in the usual way.

# From the root of the zephyr repository
west build -b nrf51dongle/nrf51822 samples/hello_world
west flash

Debugging

Refer to the Nordic nRF5x Segger J-Link page to learn about debugging Nordic boards with a Segger IC.

Testing the LEDs on the nRF51 Dongle

Build and flash the Blinky sample to test that the onboard LED is working properly with Zephyr.

References