Skip to main content
Associate II
September 15, 2025
Solved

STM32DDRFW-UTIL failed

  • September 15, 2025
  • 1 reply
  • 945 views

 

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.

 
Best answer by jcalvo

Hello,

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

Thank you.

1 reply

jcalvoAuthorBest answer
Associate II
September 16, 2025

Hello,

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

Thank you.

PatrickF
Technical Moderator
September 17, 2025

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 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
jcalvoAuthor
Associate II
September 17, 2025

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.