Skip to main content
Visitor II
November 10, 2021
Solved

How to configure 512MB*2 DDR ram in u boot?

  • November 10, 2021
  • 1 reply
  • 1412 views

Hi,

We are using stm32mp157a processorin Ubootv2018.11-stm32mp1-r2.1 version. In this DDR has 512MB of memory. We want to change DDR size 512MB to 1 GB ,how can we do that? and what are the files we need to modify for changing ddr size in uboot?

Please help us.

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    Hi @Sindhu Vadde​ ,

    As all HW related parameter this is managed through Device Tree.

    So the DDR with 512MB you reported for your uboot is related to a specific board config/ device tree.

    See DDRCTRL and DDRPHYC device tree configuration - stm32mpu

    Pay attention that it should be handle in TF-A also and first.

    You can refer to ST EV1 board configuration which as 1GB density.

    STM32CubeMX also provide easy way to configure DDR size ( and all other design related aspect ) .

    Hope it help,

    Olivier

    1 reply

    Technical Moderator
    November 10, 2021

    Hi @Sindhu Vadde​ ,

    As all HW related parameter this is managed through Device Tree.

    So the DDR with 512MB you reported for your uboot is related to a specific board config/ device tree.

    See DDRCTRL and DDRPHYC device tree configuration - stm32mpu

    Pay attention that it should be handle in TF-A also and first.

    You can refer to ST EV1 board configuration which as 1GB density.

    STM32CubeMX also provide easy way to configure DDR size ( and all other design related aspect ) .

    Hope it help,

    Olivier

    Visitor II
    November 11, 2021

    Thank you ,Its working with ST EV1 board configuration.