cancel
Showing results for 
Search instead for 
Did you mean: 

DDR device tree included in CubeMx is non existent

SKris
Associate III

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!

1 ACCEPTED SOLUTION

Accepted Solutions

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @SKris​ ,

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

Thanks

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SKris
Associate III

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