Skip to main content
Visitor II
January 21, 2022
Solved

DDR device tree included in CubeMx is non existent

  • January 21, 2022
  • 2 replies
  • 1117 views

We are trying to bring up a custom board which used STM32MP157FACx processor.

The DDR memory model we use is W63AH2NBVABE which is a LPDDR3 32-bit. We use CubeMx to generate the device trees. We have chosen the configuration shown below in the picture in CubeMx which generated tf-a device trees and one of them (stm32mp157f-projectname-mx-fw-config.dts) included the following device tree, which is non-existent.

#include "stm32mp15-ddr-128m-fw-config.dts"

The above device tree is not available in the tf-a source in the developer package (Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/tf-a-stm32mp-2.4.r1-r0/tf-a-sources/fdts) or in the git.

How do we get this file? Does it expect the developer/user to create one? if so, why does the comment not let the user know that?

Any pointers would be much appreciated.

0693W00000JMuVVQA1.png 

Thanks!

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

    Sorry I read 5.10-dunfell-mp1-21-03-3, so Ecosystem 3.0.

    This bug is fixed in release 3.1. ( OSTL 5.10-dunfell-mp1-21-11-17 and CubeMX 6.4 )

    If you don't want to upgrade, you indeed need to create this file at you end taking exemple from the one provided by ST for DK and EV1 board ( 512m and 1G density )

    Olivier

    2 replies

    Technical Moderator
    January 24, 2022

    Hi @SKris​ ,

    Can you tell me which version of OpenSTLinux and CubeMX you are using ?

    Thanks

    Olivier

    Technical Moderator
    January 24, 2022

    Sorry I read 5.10-dunfell-mp1-21-03-3, so Ecosystem 3.0.

    This bug is fixed in release 3.1. ( OSTL 5.10-dunfell-mp1-21-11-17 and CubeMX 6.4 )

    If you don't want to upgrade, you indeed need to create this file at you end taking exemple from the one provided by ST for DK and EV1 board ( 512m and 1G density )

    Olivier

    SKrisAuthor
    Visitor II
    January 29, 2022

    Hi Oliver.

    Thank you for the information.

    We did see the latest tf-a patch which has a new file "stm32mp15-fw-config.dts" and configures DDR by including this file and the DDR size in a macro, making it simpler.

    We moved our code to latest tf-a tag and updated our CubeMx tool to latest and our issues is resolved.

    Thanks,

    Shalini