Skip to main content
Associate III
August 21, 2025
Solved

How to generate a DDR templete for STM32DDRFW-UTIL

  • August 21, 2025
  • 2 replies
  • 836 views

I am going to rebuild STM32DDRFW-UTIL Firmware to do DDR Test on my custom hardware. I looked at this document: https://github.com/STMicroelectronics/STM32DDRFW-UTIL/blob/main/README.md

in section 1.2.3.3 Customization, it mentions about using STM32CubeMX to generate the DDR Templete (stm32mp2xx-ddr4-2x16Gbits-2x16bits-template.h). Unfortunately, I tried the device tree generation function from STM32CubeMx; there was no DDR templete was generated. Is there any instruction to generate the DDR templete?

 

 

 

 

Best answer by Pwxn

Hello @ThinhNguyen 

 

The file you mention can be found in the STM32DDRFW-UTIL source files:

https://github.com/STMicroelectronics/STM32DDRFW-UTIL/blob/main/DDR_Tool/STM32MP257F-DK/Inc/stm32mp2xx-ddr4-2x16Gbits-2x16bits-template.h

 

When you generate code with CubeMx, the DDR configuration is located in:

/Workspace/{Project Name}//CA35/DeviceTree/{Project Name}/tf-a/stm32mp25-mx.dtsi

(this is a path example)

 

I hope this will help you,

Regards.

2 replies

August 21, 2025

You maybe using the wrong part of STM32CubeMX. You need to use the special DDR Configurator Tool to get a C Header file (.h file).

Associate III
August 21, 2025

Hi @unknown,

I really can't find it. Can you take a screenshot for me?

Pwxn
PwxnBest answer
ST Employee
August 22, 2025

Hello @ThinhNguyen 

 

The file you mention can be found in the STM32DDRFW-UTIL source files:

https://github.com/STMicroelectronics/STM32DDRFW-UTIL/blob/main/DDR_Tool/STM32MP257F-DK/Inc/stm32mp2xx-ddr4-2x16Gbits-2x16bits-template.h

 

When you generate code with CubeMx, the DDR configuration is located in:

/Workspace/{Project Name}//CA35/DeviceTree/{Project Name}/tf-a/stm32mp25-mx.dtsi

(this is a path example)

 

I hope this will help you,

Regards.