NUCODE NU32

Overview

The NUCODE NU32 is a compact module based on the Nordic Semiconductor nRF52832 ARM Cortex-M4F SoC. It supports Bluetooth Low Energy (BLE) 5.x and NFC-A. Unlike the NUCODE NU40, the nRF52832 has no USB device controller, so firmware is programmed over the SWD debug interface.

More information about the board can be found at the NUCODE NU32 website [1].

Hardware

The nucode_nu32/nrf52832 board target is built around the nRF52832 (512 KB flash, 64 KB RAM, QFN48). The board uses the nRF52832 internal low-frequency RC oscillator by default.

Supported Features

The nucode_nu32 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.

Connections and IOs

UART

  • UART0: TX = P0.06, RX = P0.08, RTS = P0.05, CTS = P0.07

NFC

  • NFC-A antenna pins: P0.09 and P0.10

Reset

  • RESET = P0.21 (configured through UICR as the hardware reset pin)

SWD

  • The SWDCLK and SWDIO debug pads are used for flashing and debugging.

NUCODE_JTAG Adapter

The NU32-B-Dev04 carrier can be connected to an external J-Link through a NUCODE_JTAG Adapter. The minimum SWD connection is:

SWD connection

NUCODE_JTAG Adapter

NU32-B-Dev04

Description

VTARGET

VCC or VTARGET

Target voltage reference

GND

GND

Common ground

SWDCLK

SWDCLK

SWD clock

SWDIO

SWDIO

SWD data

nRESET (nRST)

RESET (P0.21)

Target reset

The target must be powered and VTARGET must be connected before starting a debug session. Keep the SWD leads short. Connect nRESET to P0.21 so the debug probe can reliably reset and recover the target.

Programming and Debugging

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

flash debug

Applications for the nucode_nu32/nrf52832 board target can be built and flashed in the usual way (see Building an Application and Run an Application for more details).

Flashing

The board is programmed and debugged using an external debug probe (for example a SEGGER J-Link) connected to the SWD pads.

  1. Build and flash the Hello World sample:

    # From the root of the zephyr repository
    west build -b nucode_nu32/nrf52832 samples/hello_world
    west flash -r jlink
    
  2. Open a serial terminal (115200 8N1) connected to the UART0 pins and reset the board to see the output.

If more than one J-Link is connected to the host, select the probe by appending --dev-id <serial-number> to the west flash command.

Debugging

Start a debug session with J-Link:

$ west debug -r jlink

Refer to the Run an Application page for more details on debugging.

References