cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32mp157A DDR Initialization Source Code in Bare metal?

Sindhu Vadde
Associate III

Hi,

We want to develop bare metal application for Stm32mp157A processor. So we need the DDR initialization Source code in bare metal for Stm32mp157A processor. Can you help us in this.

6 REPLIES 6
PatrickF
ST Employee

HI @Sindhu Vadde​ ,

ST did not have any bare-metal delivery for STM32MP15x.

You could check with existing DYI, 3rd party or partners.

If you are willing to do it by yourself, TF-A source code might be a good start point.

 https://github.com/STMicroelectronics/arm-trusted-firmware/tree/v2.6-stm32mp/drivers/st/ddr

TF-A mostly uses information from a DDR file generated by CubeMX https://wiki.st.com/stm32mpu/wiki/DDRCTRL_and_DDRPHYC_device_tree_configuration#Simple_example

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.
tehniksit
Associate

You could also look at u-boot source code

Hi,

Thanks for the reply.

We gone through Uboot source Code. We found DDR_init Code. But we are unable to extract it. when we are trying to extract the source we got lot of errors.

Thanks for the reply.

Which tool you are using for building and compiling this code?

arm-none-eabi-gcc last version,,,, Make. Check /build/stm32mp157axx of prolect for makefile and link scripts, /tools for sources of used tools and gnu-mcu-eclipse-build-tools-2.11-20180428-1604-win64.zip