Hi,
I am currently using RPA version 24 for DDR calibration on my custom board, which uses 16EM16-M4JMW8A-GA01 Kingston memory. However, I am getting the following error:
[ERROR] DFI error(0x4)!!!
[INFO] Please check data bit mapping
Interestingly, when I run the same RPA tool on the EVK, I see the same error initially, but calibration works if I use the pre-built .ds file:
mx8ulp_ddr_tool/scripts/lpddr4x/evk9x9_mx8ulp_lp4x_2gb_528m_96m_48m_1cs_v24_debug.ds.
When I compared the .ds file generated from RPA v24 with the pre-built debug .ds file, I noticed differences in the following register values:
RPA v24 generated file:
memory set 0x2E062480 32 0x51113031 # DENALI_PI_288
memory set 0x2E062484 32 0x31400404 # DENALI_PI_289
memory set 0x2E062488 32 0x04511130 # DENALI_PI_290
memory set 0x2E06248C 32 0x34315224 # DENALI_PI_291
memory set 0x2E062490 32 0x04041111 # DENALI_PI_292
memory set 0x2E062494 32 0x11303140 # DENALI_PI_293
memory set 0x2E062498 32 0x40040451 # DENALI_PI_294
memory set 0x2E06249C 32 0x51113031 # DENALI_PI_295
memory set 0x2E0624A0 32 0x31522404 # DENALI_PI_296
memory set 0x2E0624A4 32 0x04111134 # DENALI_PI_297
Pre-built EVK debug file:
memory set 0x2E062480 33 0x51113031 # DENALI_PI_288
memory set 0x2E062484 34 0x31400404 # DENALI_PI_289
memory set 0x2E062488 35 0x04511130 # DENALI_PI_290
memory set 0x2E06248C 36 0x34315224 # DENALI_PI_291
memory set 0x2E062490 37 0x04041111 # DENALI_PI_292
memory set 0x2E062494 38 0x11303140 # DENALI_PI_293
memory set 0x2E062498 39 0x40040451 # DENALI_PI_294
memory set 0x2E06249C 40 0x51113031 # DENALI_PI_295
memory set 0x2E0624A0 41 0x31522404 # DENALI_PI_296
memory set 0x2E0624A4 42 0x04111134 # DENALI_PI_297
My questions:
- What is the significance of these increasing values (33, 34, 35 …) instead of 32?
I tried modifying my custom board’s .ds file in a similar way, but I still see the same error.
- I have verified the schematic and confirmed the data bit mapping is correct.
- On my custom board, the debug UART pins are different, so I updated the .ds file accordingly.
Could you please guide me on:
- What else I should check,
- Why this DFI error occurs, and
- How to resolve it?
Your guidance would be really helpful in resolving this issue.
Thanks for your support.