Cortex-M Trace Reference Board V1.2
Overview
The Cortex-M Trace Reference Board V1.2 (SEGGER-TRB-STM32F407 for short) board is a reference board, based on the ST Microelectronics STM32F407VE ARM Cortex-M4 CPU, to test hardware tracing with the SEGGER Trace-Pro debuggers. It is not meant for general prototype development because it is extremely limited when it comes to IO, and only has 3 LEDs.
Hardware
Information about the board can be found at the SEGGER website . The ST STM32F407VE website contains the processor’s information and the datasheet.
Supported Features
The segger_trb_stm32f407
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.
Type |
Location |
Description |
Compatible |
---|---|---|---|
CPU |
on-chip |
ARM Cortex-M4F CPU1 |
|
ADC |
on-chip |
STM32F4 ADC1 |
|
on-chip |
STM32 ADC2 |
||
CAN |
on-chip |
STM32 CAN controller2 |
|
Clock control |
on-chip |
STM32 RCC (Reset and Clock controller)1 |
|
on-chip |
STM32 HSE Clock1 |
||
on-chip |
|||
on-chip |
STM32F4 Main PLL1 |
||
on-chip |
STM32F4 PLL I2S1 |
||
on-chip |
STM32 Microcontroller Clock Output (MCO)2 |
||
Counter |
on-chip |
STM32 counters12 |
|
DAC |
on-chip |
STM32 family DAC1 |
|
DMA |
on-chip |
STM32 DMA controller (V1)2 |
|
Ethernet |
on-chip |
ST STM32 Ethernet1 |
|
Flash controller |
on-chip |
STM32 Family flash controller1 |
|
GPIO & Headers |
on-chip |
STM32 GPIO Controller9 |
|
I2C |
on-chip |
STM32 I2C V1 controller3 |
|
I2S |
on-chip |
STM32 I2S controller2 |
|
Interrupt controller |
on-chip |
ARMv7-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
STM32 External Interrupt Controller1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
Memory controller |
on-chip |
STM32 Battery Backed RAM1 |
|
MMC |
on-chip |
STM32 SDMMC Disk Access1 |
|
MTD |
on-chip |
STM32F4 flash memory1 |
|
PHY |
on-chip |
This binding is to be used by all the usb transceivers which are built-in with USB IP2 |
|
Pin control |
on-chip |
STM32 Pin controller1 |
|
PWM |
on-chip |
STM32 PWM12 |
|
Reset controller |
on-chip |
STM32 Reset and Clock Control (RCC) Controller1 |
|
RNG |
on-chip |
STM32 Random Number Generator1 |
|
RTC |
on-chip |
STM32 RTC1 |
|
Sensors |
on-chip |
STM32 quadrature decoder6 |
|
on-chip |
STM32 family TEMP node for production calibrated sensors with two calibration temperatures1 |
||
on-chip |
STM32 VREF+1 |
||
on-chip |
STM32 VBAT1 |
||
Serial controller |
on-chip |
STM32 USART4 |
|
on-chip |
STM32 UART2 |
||
SMbus |
on-chip |
STM32 SMBus controller3 |
|
SPI |
on-chip |
STM32 SPI controller4 |
|
SRAM |
on-chip |
Generic on-chip SRAM description1 |
|
Timer |
on-chip |
ARMv7-M System Tick1 |
|
on-chip |
STM32 timers14 |
||
USB |
on-chip |
STM32 OTGFS controller1 |
|
on-chip |
STM32 OTGHS controller1 |
||
Watchdog |
on-chip |
STM32 watchdog1 |
|
on-chip |
STM32 system window watchdog1 |
Pin Mapping
LED
LED0 (green) = PA8
LED1 (green) = PA9
LED2 (green) = PA10
External Connectors
JTAG/SWD debug
PIN # |
Signal Name |
Pin # |
Signal Name |
---|---|---|---|
1 |
VTref |
2 |
SWDIO/TMS |
3 |
GND |
4 |
SWCLK/TCK |
5 |
GND |
6 |
SWO/TDO |
7 |
— |
8 |
TDI |
9 |
NC |
10 |
nRESET |
11 |
5V-Supply |
12 |
TRACECLK |
13 |
5V-Supply |
14 |
TRACEDATA[0] |
15 |
GND |
16 |
TRACEDATA[1] |
17 |
GND |
18 |
TRACEDATA[2] |
19 |
GND |
20 |
TRACEDATA[3] |
System Clock
SEGGER-STM32F407-TRB has one external oscillator. The frequency of the main clock is 12 MHz. The processor can setup HSE to drive the master clock, which can be set as high as 168 MHz.
Programming and Debugging
The SEGGER-TRB-STM32F407 board is specially designed to test the SEGGER Trace-Pro debuggers, so this example assumes a J-Trace or J-Link is used.
Flashing an application to the SEGGER-TRB-STM32F407
Connect the J-Trace/J-Link USB dongle to your host computer and to the JTAG port of the SEGGER-TRB-STM32F407 board. Then build and flash an application.
Here is an example for the Blinky application.
# From the root of the zephyr repository
west build -b segger_trb_stm32f407 samples/basic/blinky
west flash
After resetting the board, you should see LED0 blink with a 1 second interval.
Debugging
Here is an example for the Blinky application.
# From the root of the zephyr repository
west build -b segger_trb_stm32f407 samples/basic/blinky
west debug