CTHINGS.CO Connectivity Card

Overview

Connectivity Cards come with either M.2 or mPCIe form factor with various SoCs, enabling different radio interfaces.

  • The Connectivity Card nRF52840 enables BLE and IEEE 802.15.4 over mPCIe or M.2 using USB device with on-board nRF52840 SoC

  • The Connectivity Card nRF9161 enables LTE-M/NB-IoT and DECT NR+ over mPCIe or M.2 using on-board USB-UART converter

Connectivity Card has following features:

  • CLOCK

  • FLASH

  • GPIO

  • MPU

  • NVIC

  • RADIO (Bluetooth Low Energy and 802.15.4) (only nRF52840)

  • RADIO (LTE-M/NB-IoT and DECT NR+) (only nRF9161)

  • RTC

  • USB (only nRF52840)

  • UARTE (only nRF9161)

  • WDT

CTCC nRF52840 mPCIe

ctcc/nrf52840 mPCie board

CTCC nRF52840 M.2

ctcc/nrf52840 M.2 board

CTCC nRF9161 mPCIe

ctcc/nrf9161 mPCIe board

More information about the board can be found at the Connectivity Cards Website [1] and for SoC information: Nordic Semiconductor Infocenter [2].

Hardware

  • The ctcc/nrf52840 board target has one external oscillator of the 32.768 kHz.

  • The ctcc/nrf9161 board target has one external SPI NOR 64Mbit memory and one on-board USB-UART converter (CP210X).

Supported Features

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

ctcc/nrf52840 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4F CPU1

arm,cortex-m4f

ADC

on-chip

Nordic Semiconductor nRF family SAADC node1

nordic,nrf-saadc

ARM architecture

on-chip

Nordic UICR (User Information Configuration Registers)1

nordic,nrf-uicr

on-chip

Nordic EGU (Event Generator Unit)6

nordic,nrf-egu

on-chip

Nordic nRF family ACL (Access Control List)1

nordic,nrf-acl

on-chip

Nordic nRF family MWU (Memory Watch Unit)1

nordic,nrf-mwu

Audio

on-chip

Nordic PDM (Pulse Density Modulation interface)1

nordic,nrf-pdm

Clock control

on-chip

Nordic nRF clock control node1

nordic,nrf-clock

Comparator

on-chip

Nordic nRF COMP (analog COMParator)1

nordic,nrf-comp

Counter

on-chip

Nordic nRF timer node5

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

on-chip

ARM TrustZone CryptoCell 3101

arm,cryptocell-310

Debug

on-chip

ARMv7 instrumentation trace macrocell1

arm,armv7m-itm

Flash controller

on-chip

Nordic NVMC (Non-Volatile Memory Controller)1

nordic,nrf52-flash-controller

on-chip

Properties defining the interface for the Nordic QSPI peripheral1

nordic,nrf-qspi

GPIO & Headers

on-chip

NRF5 GPIOTE1

nordic,nrf-gpiote

on-chip

NRF5 GPIO1 1

nordic,nrf-gpio

I2C

on-chip

Nordic nRF family TWIM (TWI master with EasyDMA)2

nordic,nrf-twim

I2S

on-chip

Nordic I2S (Inter-IC sound interface)1

nordic,nrf-i2s

IEEE 802.15.4

on-chip

Nordic nRF IEEE 802.15.4 node1

nordic,nrf-ieee802154

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

LED

on-board

Group of GPIO-controlled LEDs1

gpio-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

on-chip

Nordic nRF family NFCT (Near Field Communication Tag)1

nordic,nrf-nfct

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

nRF PWM4

nordic,nrf-pwm

on-chip

nRFx S/W PWM1

nordic,nrf-sw-pwm

Regulator

on-chip

Nordic nRF5X regulator (fixed stage of the core supply)1

nordic,nrf5x-regulator

on-chip

Nordic nRF52X regulator (high voltage stage of the main supply)1

nordic,nrf52x-regulator-hv

Retained memory

on-chip

Nordic GPREGRET (General Purpose Register Retention) device2

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)3

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 UARTE (UART with EasyDMA)2

nordic,nrf-uarte

SPI

on-chip

Nordic nRF family SPIM (SPI master with EasyDMA)4

nordic,nrf-spim

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

USB

on-chip

Nordic nRF52 USB device controller1

nordic,nrf-usbd

Watchdog

on-chip

Nordic nRF family WDT (Watchdog Timer)1

nordic,nrf-wdt

ctcc/nrf9161 target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33F CPU1

arm,cortex-m33f

ADC

on-chip

Nordic Semiconductor nRF family SAADC node1

nordic,nrf-saadc

ARM architecture

on-chip

Nordic EGU (Event Generator Unit)6

nordic,nrf-egu

on-chip

Nordic KMU (Key Management Unit)1

nordic,nrf-kmu

on-chip

Nordic nRF family CTRL-AP (Control Access Port)1

nordic,nrf-ctrlapperi

on-chip

Nordic SPU (System Protection Unit)1

nordic,nrf-spu

on-chip

Nordic UICR (User Information Configuration Registers)1

nordic,nrf-uicr

Audio

on-chip

Nordic PDM (Pulse Density Modulation interface)1

nordic,nrf-pdm

Clock control

on-chip

Nordic nRF clock control node1

nordic,nrf-clock

Counter

on-chip

Nordic nRF timer node3

nordic,nrf-timer

Cryptographic accelerator

on-chip

ARM TrustZone CryptoCell 3101

arm,cryptocell-310

Flash controller

on-chip

Nordic NVMC (Non-Volatile Memory Controller)1

nordic,nrf91-flash-controller

GPIO & Headers

on-chip

NRF5 GPIO1

nordic,nrf-gpio

on-chip

NRF5 GPIOTE1 1

nordic,nrf-gpiote

I2C

on-chip

Nordic nRF family TWIM (TWI master with EasyDMA)4

nordic,nrf-twim

I2S

on-chip

Nordic I2S (Inter-IC sound interface)1

nordic,nrf-i2s

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

IPC

on-chip

Nordic nRF family IPC (Interprocessor Communication)1

nordic,nrf-ipc

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Miscellaneous

on-chip

Nordic DPPIC (Distributed Programmable Peripheral Interconnect Controller)1

nordic,nrf-dppic

on-chip

Nordic FICR (Factory Information Configuration Registers)1

nordic,nrf-ficr

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

Flash node1

soc-nv-flash

on-chip

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

fixed-partitions

on-board

Properties supporting Zephyr spi-nor flash driver (over the Zephyr SPI API) control of serial flash memories using the standard M25P80-based command set1

jedec,spi-nor

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 VMC (Volatile Memory Controller)1

nordic,nrf-vmc

on-chip

Nordic nRF power control node1

nordic,nrf-power

PWM

on-chip

nRF PWM4

nordic,nrf-pwm

on-chip

nRFx S/W PWM1

nordic,nrf-sw-pwm

Regulator

on-chip

Nordic REGULATORS (voltage regulators control module) on nRF91X1

nordic,nrf91x-regulators

Retained memory

on-chip

Nordic GPREGRET (General Purpose Register Retention) device2

nordic,nrf-gpregret

RTC

on-chip

Nordic nRF RTC (Real-Time Counter)2

nordic,nrf-rtc

Serial controller

on-chip

Nordic nRF family UARTE (UART with EasyDMA)2 2

nordic,nrf-uarte

SPI

on-chip

Nordic nRF family SPIM (SPI master with EasyDMA)1 3

nordic,nrf-spim

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

Watchdog

on-chip

Nordic nRF family WDT (Watchdog Timer)1

nordic,nrf-wdt

ctcc/nrf9161/ns target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33F CPU1

arm,cortex-m33f

ADC

on-chip

Nordic Semiconductor nRF family SAADC node1

nordic,nrf-saadc

ARM architecture

on-chip

Nordic EGU (Event Generator Unit)6

nordic,nrf-egu

on-chip

Nordic KMU (Key Management Unit)1

nordic,nrf-kmu

Audio

on-chip

Nordic PDM (Pulse Density Modulation interface)1

nordic,nrf-pdm

Clock control

on-chip

Nordic nRF clock control node1

nordic,nrf-clock

Counter

on-chip

Nordic nRF timer node3

nordic,nrf-timer

Flash controller

on-chip

Nordic NVMC (Non-Volatile Memory Controller)1

nordic,nrf91-flash-controller

GPIO & Headers

on-chip

NRF5 GPIO1

nordic,nrf-gpio

on-chip

NRF5 GPIOTE1

nordic,nrf-gpiote

I2C

on-chip

Nordic nRF family TWIM (TWI master with EasyDMA)4

nordic,nrf-twim

I2S

on-chip

Nordic I2S (Inter-IC sound interface)1

nordic,nrf-i2s

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

IPC

on-chip

Nordic nRF family IPC (Interprocessor Communication)1

nordic,nrf-ipc

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Miscellaneous

on-chip

Nordic DPPIC (Distributed Programmable Peripheral Interconnect Controller)1

nordic,nrf-dppic

MMU / MPU

on-chip

ARMv8-M MPU (Memory Protection Unit)1

arm,armv8m-mpu

MTD

on-chip

Flash node1

soc-nv-flash

on-chip

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

fixed-partitions

on-board

Properties supporting Zephyr spi-nor flash driver (over the Zephyr SPI API) control of serial flash memories using the standard M25P80-based command set1

jedec,spi-nor

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 VMC (Volatile Memory Controller)1

nordic,nrf-vmc

on-chip

Nordic nRF power control node1

nordic,nrf-power

PWM

on-chip

nRF PWM4

nordic,nrf-pwm

on-chip

nRFx S/W PWM1

nordic,nrf-sw-pwm

Regulator

on-chip

Nordic REGULATORS (voltage regulators control module) on nRF91X1

nordic,nrf91x-regulators

Retained memory

on-chip

Nordic GPREGRET (General Purpose Register Retention) device2

nordic,nrf-gpregret

RTC

on-chip

Nordic nRF RTC (Real-Time Counter)2

nordic,nrf-rtc

Serial controller

on-chip

Nordic nRF family UARTE (UART with EasyDMA)1 3

nordic,nrf-uarte

SPI

on-chip

Nordic nRF family SPIM (SPI master with EasyDMA)1 3

nordic,nrf-spim

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

Watchdog

on-chip

Nordic nRF family WDT (Watchdog Timer)1

nordic,nrf-wdt

Connections and IOs

LED

Note that boards do not have on-board LEDs, however they expose LED signals on mPCIe/M.2 pins.

nRF52840:

  • LED1 = P0.23

  • LED2 = P0.22

nRF9161:

  • LED1 = P0.11

  • LED2 = P0.12

Programming and Debugging

Applications for ctcc boards can be built in the usual way (see Building an Application for more details).

Flashing

The board supports the following programming options:

  1. Using an external debug probe

  2. Using MCUboot [3] with MCUmgr support

Below instructions are provided for ctcc/nrf52840, to use nrf9161 target, the USB device configs have to be replaced with UART configurations.

Option 1: Using an External Debug Probe

Connectivity Card can be programmed using an external debug probe (Segger J-Link) by connecting to on-board SWD test pads.

For Segger J-Link debug probes, 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 Console over USB CDC ACM application which prints out logs on emulated USB port.

# From the root of the zephyr repository
west build -b ctcc/nrf52840 samples/subsys/usb/console
west flash

Option 2: Using MCUboot with MCUmgr support

It is also possible to use the MCUboot bootloader with MCUmgr support to flash Zephyr applications.

Install a MCUmgr-compatible tool from supported list and make sure MCUboot’s imgtool is available for signing your binary for MCUboot as described on Signing Binaries.

  1. Compile MCUboot as a Zephyr application with MCUmgr support.

    To build the MCUboot:

    west build -b ctcc/nrf52840 -d build/mcuboot mcuboot/boot/zephyr
    
  2. Flash it onto the board as described in Option 1.

  3. Flash other Zephyr application over USB using MCUmgr-compatible tool and reset target to boot into the image.

    Build the blinky example with MCUboot support:

    # From the root of the zephyr repository
    west build -b ctcc/nrf52840 samples/basic/blinky -- -DCONFIG_BOOTLOADER_MCUBOOT=y -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"path/to/mcuboot/boot/root-rsa-2048.pem\"
    

Note

In all examples it is assumed to use default root-rsa-2048.pem file from mcuboot/boot directory. Providing certificate in build args produces signed binary automatically. Do not use this certificate in your production firmware!

Debugging

These boards do not have an on-board J-Link debug IC, however instructions from the Nordic nRF5x Segger J-Link page also apply to them, with the additional step of connecting an external debugger.

To test flashed software, plug in ctcc card to mPCIe/M.2 slot or use mPCIe/M.2 adapter to USB and plug such adapter to USB port.

  • For ctcc/nrf52840 check on Linux system by entering lsusb command if the following device appears: NordicSemiconductor MCUBOOT or NordicSemiconductor USB-DEV (when booted into blinky example).

  • For ctcc/nrf9161 it’s not possible to see a change in lsusb due to the on-board USB-UART converter. Intead, connect to the UART console using a terminal emulation program of your choice.

References