Control N1

Overview

The 3DR Control N1 is a 17.6 mm x 28 mm flight controller module built around an STM32H743VI microcontroller. It carries two IMUs, a magnetometer, a barometer, a page EEPROM and a microSD card socket, and exposes its interfaces on three Hirose DF40 board-to-board connectors. Carrier boards provide the connectors for peripherals.

More information about the module can be found in the Control N1 documentation [1].

Hardware

  • STM32H743VI Arm Cortex-M7 at up to 480 MHz, with 2 MB of flash and 1 MB of RAM

  • 24 MHz oscillator

  • Two InvenSense IIM-42653 IMUs on SPI1 and SPI2

  • Asahi Kasei AK09940A magnetometer on I2C1

  • Infineon DPS368 barometer on SPI6

  • STMicroelectronics M95P08 1 MB page EEPROM on SPI6

  • microSD card socket on SDMMC1

  • WS2812B RGB LED, white LED and buzzer

  • 12 PWM outputs, 7 UARTs (3 with hardware flow control), 2 FD-CAN with transceivers, 2 I2C, 1 SPI, 2 analog inputs, USB full speed and SWD on the board-to-board connectors

  • 4.8 V to 6.0 V supply

For more details on the microcontroller refer to the STM32H743VI on www.st.com [2]. The 140-pin footprint is described in the Control N1 documentation [1] and in include/zephyr/dt-bindings/gpio/3dr-control-n1-connector.h.

Supported Features

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

control_n1/stm32h743xx target

On-target memory for this board target: 512 KiB of RAM, 2 MiB of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M7 CPU1

arm,cortex-m7

ADC

on-chip

STM32 ADC2

st,stm32-adc

Audio

on-chip

STMicroelectronics DFSDM block1

st,stm32-dfsdm

on-chip

STMicroelectronics DFSDM DMIC4

st,stm32-dfsdm-dmic

Buzzer

on-board

PWM-driven passive piezo buzzer1

pwm-buzzer

CAN

on-chip

STM32H7 series (and compatible) FDCAN CAN FD controller2

st,stm32h7-fdcan

Clock control

on-chip

STM32H7 RCC (Reset and Clock controller)1

st,stm32h7-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

STM32 HSI Clock1

st,stm32h7-hsi-clock

on-chip

Generic fixed-rate clock provider12

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32H7 main PLL21

st,stm32h7-pll-clock

on-chip

STM32 Clock multiplexer1

st,stm32-clock-mux

on-chip

STM32 Microcontroller Clock Output (MCO)2

st,stm32-clock-mco

Comparator

on-chip

STM32H7 series Comparator2

st,stm32h7-comp

Counter

on-chip

STM32 counters14

st,stm32-counter

CRC

on-chip

STM32 CRC calculation unit1

st,stm32-crc

DAC

on-chip

STM32 family DAC1

st,stm32-dac

Display

on-chip

STM32 Chrom-ART Accelerator (DMA2D)1

st,stm32-dma2d

on-chip

STM32 LCD-TFT display controller1

st,stm32-ltdc

DMA

on-chip

STM32 DMA controller (V1)2

st,stm32-dma-v1

on-chip

STM32 DMAMUX controller2

st,stm32-dmamux

on-chip

STM32 BDMA controller1

st,stm32-bdma

Ethernet

on-chip

ST STM32 Ethernet MAC1

st,stm32h7-ethernet

on-chip

Synopsys DesignWare MAC MDIO controller1

snps,dwmac-mdio

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller11

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller22

st,stm32-i2c-v2

I2S

on-chip

STM32H7 I2S controller3

st,stm32h7-i2s

on-chip

STM32 SAI Block controller2

st,stm32-sai

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Memory controller

on-chip

STM32H7 Flexible Memory Controller (FMC)1

st,stm32h7-fmc

on-chip

STM32 Flexible Memory Controller (SDRAM controller)1

st,stm32-fmc-sdram

on-chip

STM32 Battery Backed RAM1

st,stm32-bbram

MMU / MPU

on-chip

ARMv7-M Memory Protection Unit (MPU)1

arm,armv7m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

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

on-board

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

fixed-partitions

NVMEM

on-chip

Fixed layout for Non-Volatile memory1

fixed-layout

OTP memory

on-chip

STM32 embedded NVM OTP1

st,stm32-nvm-otp

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP2

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32H7 power controller1

st,stm32h7-pwr

PTP clock

on-chip

Synopsys DesignWare MAC PTP (Precision Time Protocol) Clock1

snps,dwmac-ptp-clock

PWM

on-chip

STM32 PWM48

st,stm32-pwm

QSPI

on-chip

STM32 QSPI Controller1

st,stm32-qspi

Regulator

on-chip

STM32 VREFBUF regulator1

st,stm32-vrefbuf

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

SDHC

on-chip

STM32 SDMMC Host Controller11

st,stm32-sdmmc

Sensors

on-chip

STM32 quadrature decoder6

st,stm32-qdec

on-board

TDK InvenSense IIM-42653 6-axis IMU2

invensense,iim42653

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VBAT1

st,stm32-vbat

on-chip

STM32 VREF+1

st,stm32-vref

Serial controller

on-chip

STM32 USART4

st,stm32-usart

on-chip

STM32 UART31

st,stm32-uart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller4

st,stm32-smbus

SPI

on-chip

STM32H7 SPI controller42

st,stm32h7-spi

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 timers410

st,stm32-timers

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

USB

on-chip

STM32 OTGHS controller1

st,stm32-otghs

on-chip

STM32 OTGFS controller1

st,stm32-otgfs

Video

on-chip

STM32 DCMI1

st,stm32-dcmi

on-chip

STM32 JPEG HW Codec1

st,stm32-jpeg

Watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

control_n1/stm32h743xx/bare target

On-target memory for this board target: 512 KiB of RAM, 2 MiB of Flash.

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M7 CPU1

arm,cortex-m7

ADC

on-chip

STM32 ADC2

st,stm32-adc

Audio

on-chip

STMicroelectronics DFSDM block1

st,stm32-dfsdm

on-chip

STMicroelectronics DFSDM DMIC4

st,stm32-dfsdm-dmic

Buzzer

on-board

PWM-driven passive piezo buzzer1

pwm-buzzer

CAN

on-chip

STM32H7 series (and compatible) FDCAN CAN FD controller2

st,stm32h7-fdcan

Clock control

on-chip

STM32H7 RCC (Reset and Clock controller)1

st,stm32h7-rcc

on-chip

STM32 HSE Clock1

st,stm32-hse-clock

on-chip

STM32 HSI Clock1

st,stm32h7-hsi-clock

on-chip

Generic fixed-rate clock provider12

fixed-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32H7 main PLL21

st,stm32h7-pll-clock

on-chip

STM32 Clock multiplexer1

st,stm32-clock-mux

on-chip

STM32 Microcontroller Clock Output (MCO)2

st,stm32-clock-mco

Comparator

on-chip

STM32H7 series Comparator2

st,stm32h7-comp

Counter

on-chip

STM32 counters14

st,stm32-counter

CRC

on-chip

STM32 CRC calculation unit1

st,stm32-crc

DAC

on-chip

STM32 family DAC1

st,stm32-dac

Display

on-chip

STM32 Chrom-ART Accelerator (DMA2D)1

st,stm32-dma2d

on-chip

STM32 LCD-TFT display controller1

st,stm32-ltdc

DMA

on-chip

STM32 DMA controller (V1)2

st,stm32-dma-v1

on-chip

STM32 DMAMUX controller2

st,stm32-dmamux

on-chip

STM32 BDMA controller1

st,stm32-bdma

Ethernet

on-chip

ST STM32 Ethernet MAC1

st,stm32h7-ethernet

on-chip

Synopsys DesignWare MAC MDIO controller1

snps,dwmac-mdio

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller11

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller22

st,stm32-i2c-v2

I2S

on-chip

STM32H7 I2S controller3

st,stm32h7-i2s

on-chip

STM32 SAI Block controller2

st,stm32-sai

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

Memory controller

on-chip

STM32H7 Flexible Memory Controller (FMC)1

st,stm32h7-fmc

on-chip

STM32 Flexible Memory Controller (SDRAM controller)1

st,stm32-fmc-sdram

on-chip

STM32 Battery Backed RAM1

st,stm32-bbram

MMU / MPU

on-chip

ARMv7-M Memory Protection Unit (MPU)1

arm,armv7m-mpu

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

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

on-board

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

fixed-partitions

NVMEM

on-chip

Fixed layout for Non-Volatile memory1

fixed-layout

OTP memory

on-chip

STM32 embedded NVM OTP1

st,stm32-nvm-otp

PHY

on-chip

This binding is to be used by all the usb transceivers which are built-in with USB IP2

usb-nop-xceiv

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32H7 power controller1

st,stm32h7-pwr

PTP clock

on-chip

Synopsys DesignWare MAC PTP (Precision Time Protocol) Clock1

snps,dwmac-ptp-clock

PWM

on-chip

STM32 PWM48

st,stm32-pwm

QSPI

on-chip

STM32 QSPI Controller1

st,stm32-qspi

Regulator

on-chip

STM32 VREFBUF regulator1

st,stm32-vrefbuf

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

SDHC

on-chip

STM32 SDMMC Host Controller11

st,stm32-sdmmc

Sensors

on-chip

STM32 quadrature decoder6

st,stm32-qdec

on-board

TDK InvenSense IIM-42653 6-axis IMU2

invensense,iim42653

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VBAT1

st,stm32-vbat

on-chip

STM32 VREF+1

st,stm32-vref

Serial controller

on-chip

STM32 USART4

st,stm32-usart

on-chip

STM32 UART31

st,stm32-uart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller4

st,stm32-smbus

SPI

on-chip

STM32H7 SPI controller42

st,stm32h7-spi

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 timers410

st,stm32-timers

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

USB

on-chip

STM32 OTGHS controller1

st,stm32-otghs

on-chip

STM32 OTGFS controller1

st,stm32-otgfs

Video

on-chip

STM32 DCMI1

st,stm32-dcmi

on-chip

STM32 JPEG HW Codec1

st,stm32-jpeg

Watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

The M95P08 page EEPROM uses the SPI NOR flash driver, with a storage_partition covering it. Writing the partition overwrites the parameters ArduPilot keeps in the M95P08.

The magnetometer, the barometer, the RGB LED and USB are not supported yet.

Connections and IOs

The module exposes its interfaces on two 30-pin (J100, J200) and one 80-pin (J300) Hirose DF40 connectors. Carrier boards are described as shields, using the cn1_* node labels below.

The serial groups SG1 to SG7 of the Control N1 pinout map to these UARTs:

Group

Connector

UART

TX, RX, CTS, RTS

Node label

SG1

J100

USART2

PD5, PD6, PD3, PD4

cn1_sg1_serial

SG2

J100

UART4

PD1, PD0, PB0, PA15

cn1_sg2_serial

SG3

J300

UART7

PE8, PE7, PE10, PE9

cn1_sg3_serial

SG4

J100

USART3

PD8, PD9

cn1_sg4_serial

SG5

J100

USART1

PA9, PA10

cn1_sg5_serial

SG6

J200

USART6

PC6, PC7

cn1_sg6_serial

SG7

J300

UART8

PE1, PE0

cn1_sg7_serial

The other connector interfaces are:

  • I2C1 SCL/SDA: PB8/PB7 (cn1_i2c1), shared with the magnetometer

  • I2C2 SCL/SDA: PB10/PB11 (cn1_i2c2)

  • SPI4 SCK/SDI/SDO/nCS: PE2/PE5/PE6/PB2 (cn1_spi)

  • FDCAN1 RX/TX: PA11/PA12 (cn1_can1)

  • FDCAN2 RX/TX: PB12/PB6 (cn1_can2)

  • CH1 to CH4: TIM1 CH1 to CH4 on PA8, PE11, PE13, PE14

  • CH5 to CH8: TIM2 CH4 to CH1 on PA3, PA2, PA1, PA0

  • CH9 to CH12: TIM4 CH1 to CH4 on PD12, PD13, PD14, PD15

  • ADC1 and ADC2: PA4 (ADC1 channel 18) and PC0 (ADC1 channel 10) (cn1_adc)

  • USB DM/DP: PB14/PB15, USB OTG HS controller with the embedded full-speed PHY

  • ALARM: PB9 (TIM17 CH1), also driving the on-board buzzer

The cn1_connector GPIO nexus node maps the connector pins, defined in include/zephyr/dt-bindings/gpio/3dr-control-n1-connector.h. The PWM outputs are available through the cn1_pwm nexus node, indexed by output number, and the analog inputs through the cn1_adc nexus node, indexed 1 (ADC1) and 2 (ADC2). The pin mapping of GP1 to GP4 and of SD_DET is not documented, so they are not described yet.

On the module itself:

  • IMU 1 on SPI1: PA5/PA6/PD7, chip select PE12

  • IMU 2 on SPI2: PB13/PC2/PC1, chip select PE15

  • Barometer and page EEPROM on SPI6: PB3/PB4/PB5, chip selects PE3 and PC13

  • microSD card on SDMMC1: PC8 to PC12 and PD2

  • White LED: PD10

  • RGB LED: PB1 (TIM3 CH4)

  • 5 V supply sense: PC5 (ADC1 channel 8), divided by 2

System Clock

The 24 MHz external oscillator drives PLL1, which runs the core at 480 MHz. PLL2 provides the 80 MHz FD-CAN and 48 MHz SDMMC kernel clocks. The internal HSI48 oscillator clocks the random number generator.

Serial Port

The Zephyr console is on SG3 (UART7) at 115200 baud, the port ArduPilot also uses for debug output. CTS and RTS are routed to UART7 but hardware flow control is off by default.

Programming and Debugging

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

flash debug debugserver reset rtt attach
blackmagicprobe ✅ ✅ ✅
jlink ✅ ✅ (default) ✅ ✅ ✅ ✅
stm32cubeprogrammer ✅ (default)

The module ships with the ArduPilot bootloader in its first 128 KB flash sector. Ground control stations use it to update ArduPilot or PX4, and the control_n1 board target links applications after it so that it keeps working. The control_n1/stm32h743xx/bare variant instead uses the whole flash and replaces the bootloader.

Flashing

The module is programmed over SWD: SWCLK, SWDIO and AP_nRST are on J200, and carrier boards bring them out to a debug connector. The default STM32CubeProgrammer runner needs an ST-LINK probe.

Here is an example for the Blinky application.

# From the root of the zephyr repository
west build -b control_n1 samples/basic/blinky
west flash

With the bare variant, the bootloader is erased. The PX4 source tree provides an image to restore it in boards/3dr/ctrl-n1/extras/.

Debugging

Debugging needs an SWD probe. You can debug an application in the usual way. Here is an example for the Hello World application.

# From the root of the zephyr repository
west build -b control_n1 samples/hello_world
west debug

References