cancel
Showing results for 
Search instead for 
Did you mean: 

Booting TF-A and U-Boot on Custom STM32MP257D Processor

Aks
Associate III

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:

  • The PMIC on our custom board is connected to I2C4, whereas the EV1 kit uses I2C7.
  • Our board utilises LPDDR4 memory, while the EV1 kit is equipped with DDR4.
    We have made the necessary adjustments in the device tree and platform files to reflect these changes. Despite this, we are encountering a panic during the boot process from the SD card.

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

 

1 REPLY 1
Olivier GALLIEN
ST Employee

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 

Olivier GALLIEN
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.