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.
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 : PF1/PF0
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 |
|---|
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