Skip to main content
Associate II
October 11, 2025
Question

DDR PHY Init Failure on STM32MP257 Custom Board (Based on stm32mp257f-ev1.dts)

  • October 11, 2025
  • 1 reply
  • 805 views

Hi ST Community,

I'm working with a custom board based on the STM32MP257F and using the stm32mp257f-ev1.dts as the base device tree for development.

After flashing the firmware and booting the board, I'm encountering a DDR initialization failure during the BL2 stage. Here's a snippet from the boot log (via UART, Docklight):

ERROR: ddrphy_phyinit_usercustom_g_waitfwdone Training has failed.ERROR: DDR PHY init: Error -1 BACKTRACE: START: stm32mp2_ddr_init
PANIC at PC : 0x0000000000e01f9fc

The specific error seems related to DDR PHY training failure:

ERROR: ddrphy_phyinit_usercustom_g_waitfwdone Training has failed.

We're using DDR4 2x16Gbits @ 1200MHz as indicated in the log:

and attached a image of boot log and the error what we are getting while booting with custom board, but boots successfully with stm32mp257f-ev1.

i performed the DDR utility test on the custom board , the image of ddr test report  also attached for you reference

 

how can i rectify this issue

1 reply

PatrickF
Technical Moderator
October 13, 2025

Hi @srinivas_mv 

If STM32DDRFW-UTIL run without issue, maybe double check:

  • if the DDR configuration used by TF-A is the same than the one used for STM32DDRFW-UTIL
  • for a possible issue with any supply enabling by TF-A (dts) Vs STM32DDRFW-UTIL.
    maybe measure each required supply presence during boot (particularly the DDR4 ones: on EV1, it is BUCK6, LDO5, LDO3 and VREFDDR)

 

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
Associate II
October 17, 2025

Yes we are also getting same problem, The board is passing utility but unable to boot. Getting ddr_training failure.

Can you help out us to identify the problem. The image is booting on evaluation board. Our custom board is having same hardware connections as evaluation board STM32MP257EV1. And the supplies lines are fine while booting.