cancel
Showing results for 
Search instead for 
Did you mean: 

I created DTS files for my custom board, my DDR configuration is same as stm32mp157A-ev1 board and I am using same mpu. Why some of the CUBEMX generated TF-A DDR registers and Eval registers are different?

Gencay
Associate III
EVAL BOARD (stm32mp15-ddr.dtsi)
 
#define DDR_PCFGR_0 0x00010000
#define DDR_PCFGR_1 0x00010001
 
My Board (TF-A/stm32mp15-mx-dtsi)
 
#define DDR_PCFGR_0 0x00000000
#define DDR_PCFGR_1 0x00000000

Why are these registers different even though I have the same configuration?

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

HI @Gencay​ ,

Although impact should be very limited (linked to read/write ordering inside the DDR controller), I confirm that the value in official delivery are the recommended one (See also AN5168).

CubeMX generation will be aligned in future versions.

To sum up, both DDR_PCFGR_0 and DDR_PCFGR_1 should be set to 0x00010000

(I assume 0x00010001 in your post is a typo, if not please provide a link where you found this value)

Regards.

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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

1 REPLY 1
PatrickF
ST Employee

HI @Gencay​ ,

Although impact should be very limited (linked to read/write ordering inside the DDR controller), I confirm that the value in official delivery are the recommended one (See also AN5168).

CubeMX generation will be aligned in future versions.

To sum up, both DDR_PCFGR_0 and DDR_PCFGR_1 should be set to 0x00010000

(I assume 0x00010001 in your post is a typo, if not please provide a link where you found this value)

Regards.

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.