2025-07-18 5:20 AM - last edited on 2025-07-18 6:11 AM by Andrew Neil
Dear sir/mam
We are currently working with a custom board based on the STM32MP257D processor and are attempting to boot Trusted Firmware-A (TFA) and U-Boot. For this purpose, we have used the defconfig of the STM32MP257F-EV1 development kit as a reference.
Our hardware configuration differs from the EV1 kit in the following key aspects:
To isolate the issue, we attempted to comment out the PMIC initialisation code located in the bl2_platSetup.c file. With this change, the boot process fails with the message ddr_power_init failed
Furthermore, when we bypass the stm32mp_board_ddr_power_init function, the boot log shows the following errors:
ERROR: ddrphy_phyinit_usercustom_g_waitfwdone_training has failed
ERROR: DDR PHY init
We would appreciate your guidance on how to proceed further to boot u boot in our custom board
Best Regards
Akshitha Pattem
2025-07-18 5:45 AM - edited 2025-07-18 5:45 AM
Hi @Aks ,
ERROR: ddrphy_phyinit_usercustom_g_waitfwdone_training has failed
ERROR: DDR PHY init
is typical for a problem with the DDR, either HW or SW.
For HW did you follow reference design provided in CAD resource in st.com?
https://www.st.com/resource/en/hw_model/examples-of-ddr-memory-routing-on-stm32mpus.zip
And related
AN5724 | Guidelines for DDR memory routing on STM32MP2 MPUs | AN5724.pdf |
Note that LPDDR4 is used in our STM32MP257F-DK board.
For SW configuration :
AN5723 | Guidelines for DDR memory configuration on STM32MP2 MPUs | AN5723.pdf |
and wiki How to setup the DDR configuration - stm32mpu
Did you carefully generate the DDR parameter device tree with CubeMX ?
Olivier