Skip to main content
Visitor II
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

    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.

    Visitor II
    July 28, 2022

    You could also look at u-boot source code

    Visitor II
    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.

    Visitor II
    July 29, 2022

    Thanks for the reply.

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

    Visitor II
    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