cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a DDR templete for STM32DDRFW-UTIL

ThinhNguyen
Associate III

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?

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pwxn
ST Employee

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.

View solution in original post

3 REPLIES 3
Adam5
Associate II

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).

Hi @Adam5,

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

Pwxn
ST Employee

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.