cancel
Showing results for 
Search instead for 
Did you mean: 

STM32DDRFW-UTIL failed

jcalvo
Associate II

 

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.

 
1 ACCEPTED SOLUTION

Accepted Solutions
jcalvo
Associate II

Hello,

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

Thank you.

View solution in original post

5 REPLIES 5
jcalvo
Associate II

Hello,

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

Thank you.

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.

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.

Hi @jcalvo ,

I confirm the "NotWorking" file has some inconsistancies which might make it failing.

Did you use latest CubeMx release ?

Did you try using the "Working" one for DDRFW-UTIL compilation ?

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.

Hi,

Yes, my current version MX is 6.15.0.
I can confirm that the "Working" file pass all test and connects with DDRFW-UTIL though stm32cubeide tool, and through compiling source code from github and flashing with STM32CubeProgrammer.

Regards.