Skip to main content
Associate II
Sep 15, 2025 2:11 PM UTC
Solved

STM32DDRFW-UTIL failed

 

Hello,

I am testing a custom board based on STM32MP257FAK3 with two DDR4 MT40A1G16RC-062E_B devices, for a total of 4 GB (32-bit width).

I have correctly set up the main configuration files to work with the PMIC and UART. I also exported the PCB layout of the Ax pins using CubeMX and re-imported them into the DDR configuration file. The .stm32 image is successfully generated and uploaded through CubeProgrammer. I can also access the console and successfully complete steps 0 and 1.

However, when reaching step 2, the initialization fails.
After some investigation, it seems that the failure occurs during training after the PHY configuration, specifically in the function:

 

ddrphy_phyinit_usercustom_g_waitfwdone()

At this point, the call to get_major_message() always returns 0xFF, which causes the program to enter the failed state.

My questions are:

  • Could this be related to incorrect training values not being properly written into the RAM?

  • Or is it more likely that the PHY is not synchronized and therefore cannot perform the test successfully?

  • This is like hardware timming issue? Or could it be software related?

Pin configuration of RAM is like on the DDR-Examples that STM32 provide for STM32MP257FAKX.

jcalvo_0-1757945405655.png

I had also tryied to upload it though CubeIde on the ddr test tool option. Uploading it to sysRAM.

At the moment I am stuck and unsure how to proceed. Any insights or suggestions would be greatly appreciated.

Thank you.

 
This topic has been closed for replies.
jcalvoBest answer
Associate II
Sep 16, 2025 2:33 PM UTC

Hello,

After open a ticket on support it seems like a bug on STM32CubeMX that will be solved on next release.

Thank you.

5 replies

jcalvoAuthorBest answer
Associate II
Sep 16, 2025 2:33 PM UTC

Hello,

After open a ticket on support it seems like a bug on STM32CubeMX that will be solved on next release.

Thank you.

PatrickF
ST Employee
Sep 17, 2025 6:32 AM UTC

Hi @jcalvo 

maybe share your stm32mp25-mx.dtsi file. There was some trouble in CubeMx generation I could double check.

Regards

 

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
jcalvoAuthor
Associate II
Sep 17, 2025 10:48 AM UTC

Hi,

Seems that there is some error when Ax pins are modified, project is saved and you want to modified them another time. This is the file that works for me on tfa, swizzles are generated by one of your partner with your internal excel. I will share you what is my cube mx generating and what you partner shares me.

Regards.