STM32MP257F - DDR3L Address Routing Issue
Hello ST Team,
I have developed a custom board based on the STM32MP257, using two DDR3L devices in a 32-bit fly-by configuration.
During board bring-up, I encountered a failure when running STM32DDRFW-UTIL. The DDR initialization and training completed successfully, and the initial data-bus tests passed, but the AddressBus test failed consistently.
After further investigation, I narrowed the issue down to the address/command mapping, specifically the following connection:
STM32MP257 DDR_A19 -> DDR3L A11
As a test, I modified the DDR configuration to disable/bypass A11, reducing the available DDR capacity from 2 GiB to 1 GiB. With this configuration, the complete STM32DDRFW-UTIL test 0 suite passes, including the AddressBus test and all subsequent tests. This suggests that the DDR_A19-to-A11 mapping is the source of the issue.
However, STM32CubeMX does not report any conflict or invalid configuration for this address/command mapping.
I am using STM32CubeMX 6.19.0. My DDR configuration is shown below:

When I generate the project, CubeMX reports no errors. However, the generated DTSI under: CA35/DeviceTree/test/tf-a does not reflect the mapping between A19 and A11.
Here is the swizzle registers that were generated:
#define DDR_UIS_SWIZZLE_0 0x00000003
#define DDR_UIS_SWIZZLE_1 0x0000000a
#define DDR_UIS_SWIZZLE_2 0x00000018
#define DDR_UIS_SWIZZLE_3 0x0000000e
#define DDR_UIS_SWIZZLE_4 0x00000014
#define DDR_UIS_SWIZZLE_5 0x00000002
#define DDR_UIS_SWIZZLE_6 0x0000000d
#define DDR_UIS_SWIZZLE_7 0x00000004
#define DDR_UIS_SWIZZLE_8 0x00000006
#define DDR_UIS_SWIZZLE_9 0x00000007
#define DDR_UIS_SWIZZLE_10 0x0000000f
#define DDR_UIS_SWIZZLE_11 0x00000009
#define DDR_UIS_SWIZZLE_12 0x00000001
#define DDR_UIS_SWIZZLE_13 0x00000010
#define DDR_UIS_SWIZZLE_14 0x00000013
#define DDR_UIS_SWIZZLE_15 0x0000001a
#define DDR_UIS_SWIZZLE_16 0x00000000
#define DDR_UIS_SWIZZLE_17 0x00000000
#define DDR_UIS_SWIZZLE_18 0x0000000c
#define DDR_UIS_SWIZZLE_19 0x00000008
#define DDR_UIS_SWIZZLE_20 0x00000019
#define DDR_UIS_SWIZZLE_21 0x00000000
#define DDR_UIS_SWIZZLE_22 0x00000000
#define DDR_UIS_SWIZZLE_23 0x00000005
#define DDR_UIS_SWIZZLE_24 0x0000000b
#define DDR_UIS_SWIZZLE_25 0x00000015
#define DDR_UIS_SWIZZLE_26 0x0e180a03
#define DDR_UIS_SWIZZLE_27 0x040d0214
#define DDR_UIS_SWIZZLE_28 0x090f0706
#define DDR_UIS_SWIZZLE_29 0x1a131001
#define DDR_UIS_SWIZZLE_30 0x19080c00
#define DDR_UIS_SWIZZLE_31 0x0b050000
#define DDR_UIS_SWIZZLE_32 0x00000015
#define DDR_UIS_SWIZZLE_33 0x00000000
#define DDR_UIS_SWIZZLE_34 0x00000000
#define DDR_UIS_SWIZZLE_35 0x00000000
#define DDR_UIS_SWIZZLE_36 0x00000000
#define DDR_UIS_SWIZZLE_37 0x00000000
#define DDR_UIS_SWIZZLE_38 0x00000000
#define DDR_UIS_SWIZZLE_39 0x00000000
#define DDR_UIS_SWIZZLE_40 0x00000000
#define DDR_UIS_SWIZZLE_41 0x00000000
#define DDR_UIS_SWIZZLE_42 0x00000000
#define DDR_UIS_SWIZZLE_43 0x00000000
Could you please clarify:
- Is DDR_A19 -> DDR3L A11 a supported address/command mapping on STM32MP257?
- Are there specific restrictions on which STM32MP257 DDR_Ax pins may be mapped to DDR3L address/command signals?
- Should STM32CubeMX validate these address/command swizzle restrictions?
- If DDR_A19 -> A11 is not supported, is there another STM32MP257 DDR address pin that can be mapped to DDR3L A11 while keeping the rest of the existing address routing unchanged?
- Is there a documented table showing the permitted DDR3L address/command swizzle combinations?
The current hardware is functional with A11 bypassed and 1 GiB of usable DDR, but I would like to determine the correct mapping required to restore the full 2 GiB capacity for the next PCB revision.
Thanks in advance.
