STM32U5G9J Discovery Kit
Overview
The STM32U5G9J-DK2 Discovery kit is a complete demonstration and development platform for the STM32U5G9ZJT6Q microcontroller, featuring an Arm® Cortex®‑M33 core with Arm® TrustZone®.
Leveraging the innovative ultra-low power-oriented features, 3 Mbytes of embedded SRAM, 4 Mbytes of embedded flash memory, and rich graphics features, the STM32U5G9J-DK2 Discovery kit enables users to prototype applications with state-of-the-art energy efficiency, as well as providing stunning and optimized graphics rendering with the support of a 2.5D Neo-Chrom accelerator, chrom-ART Accelerator, and Chrom-GRC™ MMU.
The STM32U5G9J-DK2 Discovery kit integrates a full range of hardware features that help the user evaluate all the peripherals, such as a 5” RGB 800x480 pixels TFT colored LCD module with a 24‑bit RGB interface and capacitive touch panel, USB Type-C® HS, Octo‑SPI flash memory device, ARDUINO®, and STLINK-V3EC (USART console).
The STM32U5G9J-DK2 Discovery kit integrates an STLINK-V3EC embedded in-circuit debugger and programmer for the STM32 microcontroller with a USB Virtual COM port bridge and comes with the STM32CubeU5 MCU Package, which provides an STM32 comprehensive software HAL library as well as various software examples.
More information about the board can be found at the STM32U5G9J-DK2 website. More information about STM32U5G9ZJT6Q can be found here:
Supported Features
The stm32u5g9j_dk2
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-M33 CPU1 |
|
ADC |
on-chip |
||
CAN |
on-chip |
STM32 FDCAN CAN FD controller1 |
|
Clock control |
on-chip |
STM32U5 RCC (Reset and Clock controller)1 |
|
on-chip |
STM32 HSE Clock1 |
||
on-chip |
|||
on-chip |
|||
on-chip |
STM32 LSE Clock1 |
||
on-chip |
STM32U5 PLL3 |
||
on-chip |
STM32 Microcontroller Clock Output (MCO)1 |
||
Counter |
on-chip |
STM32 counters5 |
|
Cryptographic accelerator |
on-chip |
STM32 AES Accelerator1 |
|
DAC |
on-chip |
STM32 family DAC1 |
|
Display |
on-chip |
STM32 LCD-TFT display controller1 |
|
DMA |
on-chip |
STM32U5 DMA controller1 |
|
Flash controller |
on-chip |
STM32 Family flash controller1 |
|
GPIO & Headers |
on-chip |
STM32 GPIO Controller10 |
|
on-chip |
Serial Wire - JTAG Connector1 |
||
I2C |
on-chip |
||
Input |
on-board |
Group of GPIO-bound input keys1 |
|
Interrupt controller |
on-chip |
ARMv8-M NVIC (Nested Vectored Interrupt Controller)1 |
|
on-chip |
STM32G0 External Interrupt Controller1 |
||
LED |
on-board |
Group of GPIO-controlled LEDs1 |
|
Memory controller |
on-chip |
STM32 Flexible Memory Controller (FMC)1 |
|
on-chip |
STM32 Flexible Memory Controller (NOR Flash/PSRAM/SRAM controller)1 |
||
MMC |
on-chip |
STM32 SDMMC Disk Access2 |
|
MMU / MPU |
on-chip |
ARMv8-M MPU (Memory Protection Unit)1 |
|
MTD |
on-chip |
STM32 flash memory1 |
|
on-board |
Fixed partitions of a flash (or other non-volatile storage) memory1 |
||
OCTOSPI |
on-chip |
STM32 OSPI Controller2 |
|
PHY |
on-chip |
STM32U5 OTG HS PHY1 |
|
Pin control |
on-chip |
STM32 Pin controller1 |
|
Power management |
on-chip |
STM32 power controller1 |
|
PWM |
on-chip |
||
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 family TEMP node for production calibrated sensors with two calibration temperatures1 |
|
on-chip |
|||
on-chip |
|||
Serial controller |
on-chip |
||
on-chip |
STM32 UART2 |
||
on-chip |
STM32 LPUART1 |
||
SMbus |
on-chip |
STM32 SMBus controller6 |
|
SPI |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM1 |
|
USB Type-C Port Controller |
on-chip |
STM32 USB Type-C / Power Delivery1 |
|
Timer |
on-chip |
ARMv8-M System Tick1 |
|
on-chip |
STM32 low-power timer (LPTIM)4 |
||
on-chip |
|||
USB |
on-chip |
STM32 OTGHS controller1 |
|
Watchdog |
on-chip |
STM32 watchdog1 |
|
on-chip |
STM32 system window watchdog1 |
Pin Mapping
For more details please refer to STM32U5G9J-DK2 board User Manual.
Default Zephyr Peripheral Mapping:
USART_1 TX/RX : PA9/PA10 (ST-Link Virtual Port Com)
USART_2 TX/RX : PA2/PA3
LD2 : PD2
LD3 : PD4
User Button: PC13
I2C1 SCL/SDA : PG14/PG13
I2C2 SCL/SDA : PB10/PB11
SPI1 SCK/MISO/MOSI/CS : PA5/PA6/PB5/PA3
ADC1 : channel5 PA0, channel12 PA7
ADC4 : channel4 PC3
SDMMC1/LTDC conflicting pins: PC6, PC7, PC8, PC9, PB9
SDMMC1_CK : PC12
SDMMC1_CMD : PD2
SDMMC1_D0 : PC8
SDMMC1_D1 : PC9
SDMMC1_D2 : PC10
SDMMC1_D3 : PC11
SDMMC1_D4 : PB8
SDMMC1_D5 : PB9
SDMMC1_D6 : PC6
SDMMC1_D7 : PC7
LTDC_R0 : PC6
LTDC_R1 : PC7
LTDC_R2 : PE15
LTDC_R3 : PD8
LTDC_R4 : PD9
LTDC_R5 : PD10
LTDC_R6 : PD11
LTDC_R7 : PD12
LTDC_G0 : PC8
LTDC_G1 : PC9
LTDC_G2 : PE9
LTDC_G3 : PE10
LTDC_G4 : PE11
LTDC_G5 : PE12
LTDC_G6 : PE13
LTDC_G7 : PE14
LTDC_B0 : PB9
LTDC_B1 : PB2
LTDC_B2 : PD14
LTDC_B3 : PD15
LTDC_B4 : PD0
LTDC_B5 : PD1
LTDC_B6 : PE7
LTDC_B7 : PE8
LTDC_DE : PD6
LTDC_CLK : PD3
LTDC_HSYNC : PE0
LTDC_VSYNC : PD13
System Clock
The STM32U5G9J-DK Discovery 2 kit relies on an HSE oscillator (16 MHz crystal) and an LSE oscillator (32.768 kHz crystal) as clock references. Using the HSE (instead of HSI) is mandatory to manage the DSI interface for the LCD module and the USB high‑speed interface.
Serial Port
The STM32U5G9J Discovery 2 kit has up to 4 USARTs, 2 UARTs, and 1 LPUART. The Zephyr console output is assigned to USART1 which connected to the onboard ST-LINK/V3.0. Virtual COM port interface. Default communication settings are 115200 8N1.
Programming and Debugging
The stm32u5g9j_dk2
board supports the runners and associated west commands listed below.
flash | debug | attach | debugserver | rtt | |
---|---|---|---|---|---|
openocd | ✅ | ✅ (default) | ✅ | ✅ | ✅ |
stm32cubeprogrammer | ✅ (default) |
STM32U5G9J Discovery 2 kit includes an ST-LINK/V3 embedded debug tool interface. This probe allows to flash and debug the board using various tools.
Flashing
The board is configured to be flashed using west STM32CubeProgrammer runner, so its installation is required.
Alternatively, OpenOCD can also be used to flash the board using
the --runner
(or -r
) option:
$ west flash --runner openocd
Flashing an application to STM32U5G9J_DK2
Connect the STM32U5G9J Discovery 2 board to your host computer using the USB port, then run a serial host program to connect with your Discovery board. For example:
$ minicom -D /dev/ttyACM0 -b 115200
Then, build and flash in the usual way. Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b stm32u5g9j_dk2 samples/hello_world
west flash
You should see the following message on the console:
Hello World! stm32u5g9j_dk2
Debugging
Default debugger for this board is openocd. It could be used in the usual way with “west debug” command. Here is an example for the Blinky application.
# From the root of the zephyr repository
west build -b stm32u5g9j_dk2 samples/basic/blinky
west debug