Skip to main content
Sindhu Vadde
Associate III
Jul 28, 2022 10:17 UTC
Question

Stm32mp157A DDR Initialization Source Code in Bare metal?

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.

This topic has been closed for replies.

6 replies

PatrickF
ST Employee
Jul 28, 2022 11:49 UTC

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 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent
tehniksit
Associate
Jul 28, 2022 12:35 UTC

You could also look at u-boot source code

Sindhu Vadde
Associate III
Jul 29, 2022 05:13 UTC

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.

Sindhu Vadde
Associate III
Jul 29, 2022 09:21 UTC

Thanks for the reply.

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

Genadi Zawidowski
Senior
Jul 29, 2022 09:25 UTC

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