2025-09-08 6:47 AM
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!!
Solved! Go to Solution.
2025-09-08 6:59 AM
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.
2025-09-08 6:59 AM
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.
2025-09-09 11:48 PM
@Erwan SZYMANSKI Thanks for the reply.
2025-09-11 6:41 AM - edited 2025-09-11 9:41 PM
@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