Skip to main content
Sindhu Vadde
Associate III
July 28, 2022
Question

Stm32mp157A DDR Initialization Source Code in Bare metal?

  • July 28, 2022
  • 3 replies
  • 1924 views

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.

3 replies

PatrickF
Technical Moderator
July 28, 2022

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
July 28, 2022

You could also look at u-boot source code

Sindhu Vadde
Associate III
July 29, 2022

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
July 29, 2022

Thanks for the reply.

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

Genadi Zawidowski
Senior
July 29, 2022

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