cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Mp257 - DDR4 configuration for swizzle bit

Vijay_V2225
Associate II

Hi Community,

I am working with an STM32MP257  interfaced with 16 bit DDR4 of 2 number (16 bit  * 2  = 32 bit = 1 word). I would like to clarify whether the swizzle bit register values actually affect the DQ pin bit-swapping in hardware.

If they do, I need some guidance on how to determine the correct swizzle bit register values. Are there specific calculations or methods recommended for this ?

I have attached my schematic showing the DQ bit swapping with the processor. Any assistance or reference material would be greatly appreciated

Thank you in advance!!

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan SZYMANSKI
ST Employee

Hello @Vijay_V2225 ,
Did you already check this DDR configuration Application Note : https://www.st.com/resource/en/application_note/an5723-guidelines-for-ddr-configuration-on-stm32mp2-mpus-stmicroelectronics.pdf ? 

I think it can give you great inputs for all the questions you have concerning DDR configuration.

Kind regards,
Erwan.

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
Erwan SZYMANSKI
ST Employee

Hello @Vijay_V2225 ,
Did you already check this DDR configuration Application Note : https://www.st.com/resource/en/application_note/an5723-guidelines-for-ddr-configuration-on-stm32mp2-mpus-stmicroelectronics.pdf ? 

I think it can give you great inputs for all the questions you have concerning DDR configuration.

Kind regards,
Erwan.

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.

@Erwan SZYMANSKI Thanks for the reply.

@Erwan SZYMANSKI 
Thank you for the reference of the AN5723. However it is not clear to me how the following HEXADECIMAL numbers are derived. Can you please help with an example to derive these numbers. If I change the pin mapping from default, my understanding is these values will change. Please let me know is this understanding is correct.

#define DDR_UIS_SWIZZLE_0 0x0000000C
#define DDR_UIS_SWIZZLE_1 0x00000005
#define DDR_UIS_SWIZZLE_2 0x00000013