LX2160A DDR4 Memory Configuration problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LX2160A DDR4 Memory Configuration problem

2,573 Views
DohwanAhn
Contributor II

Is it possible to set parameters with QCVS and obtain valid values through validation after target connection? I found a different item in QCVS DDR test by selecting a different device than when it was an lx2160a device. why different?

Is there a document that can set parameters of descrete DDR4 in Excel file for lx2160a? (Related parameters are automatically filled in)

What's the best way to get the parameters to make a custom board's Descrte ddr4 work? If you have any related data, please let me know.


Boot log and document about MT40A1G16 are attached. Please tell me the next steps.

Note. the boot log used NODIMM config / 1600MT/s

And We have a one more question.

Are the signals below OK?
Referring to the documentation of AN5097, the CKE signal should go HIGH after the RESET signal, but it doesn't seem to be the case.
In the case of the same DDR clock, the signal looks small.
Can you give us your opinion?

DohwanAhn_1-1672622222780.png

DohwanAhn_2-1672622492004.png

 

Thanks,

 

0 Kudos
8 Replies

2,526 Views
khushbur
NXP TechSupport
NXP TechSupport

Hi @DohwanAhn 

Please use CodeWarrior QCVS DDR Tool to configure validate the DDR controller settings.

See the following video:

https://www.nxp.com/video/configure-qoriq-ddr-in-3-minutes:QRIQ-DDR-CONFIGURATION

 

Thanks

Khushbu

0 Kudos

2,523 Views
DohwanAhn
Contributor II

I've iterated the solution you presented. However, centering the clock just like the video flickers and then passes without any indication. The second video fails to find the vref start value. READ/WRITE ODT also both fail. Booting was done in FLEXSPI boot mode.

Thanks, 

0 Kudos

2,503 Views
khushbur
NXP TechSupport
NXP TechSupport

Hi @DohwanAhn 

Please configure the Properties panel according to the DDR datasheet.Please make sure that valid RCW configuration is loaded on the board.

Can you please share custom board's schematic so that we can verify it?

Thanks

Khushbu

0 Kudos

2,494 Views
DohwanAhn
Contributor II

We've seen the problem occur through the console debug logs when perform `Centering the clock`. What can I check?

Thanks, 

 

 

#################### Result for: ddr_vref_searcher ###### Run 1 ###################################

Test result: [
Traceback (most recent call last):
File "C:\Freescale\CW4NET_v2020.06\Common\QCVS\Optimization\resources\QorIQ\ARMv8/ddr/ddr_vref_searcher.py", line 167, in ddr_phy_vref_searcher
if not checkConfiguration(params, session, ddr_ctrl_idx):
File "C:\Freescale\CW4NET_v2020.06\Common\QCVS\Optimization\resources\QorIQ\ARMv8/ddr/ddr_vref_searcher.py", line 68, in checkConfiguration
sys_init.init(params, session, False)
File "C:\Freescale\CW4NET_v2020.06\Common\QCVS\Optimization\resources\QorIQ\ARMv8\ddr\sys_init.py", line 150, in init
reset_out = utils.gdb_execute("cw_reset %d" % reset_delay)
File "C:\Freescale\CW4NET_v2020.06\Common\QCVS\Optimization\resources\QorIQ\ARMv8\common\utils.py", line 215, in gdb_execute
raise gdb.GdbError("ERROR: " + str(ex))
GdbError: ERROR: Target reset failed.
//
Additional error details:
[CCS: timeout during target operation]

0 Kudos

2,422 Views
khushbur
NXP TechSupport
NXP TechSupport

Hi @DohwanAhn 

 

Please make sure:

1) JTAG connection circuit is implemented exactly as shown in the AN5407 - Layerscape LX2160A and LX2162A Design Checklist, Figure 36. JTAG interface connection.

2) Reset to SDRAM devices is implemented as proposed in the AN5097 - Hardware and Layout Design Considerations for DDR4 SDRAM, Appendix B DRAM reset signal considerations.
Please provide a digital scope trace showing behaviour of PORESET_B, HRESET_B and SDRAM reset signals.

 

Thanks

Khushbu

0 Kudos

2,330 Views
DohwanAhn
Contributor II

We fixed a reset related issue. Then, we successfully performed validation and confirmed that there was no fail. However, I created an expert code and applied it to the source, but ddr does not work normally.

When performing clock validation, we saw that appropriate clock delay values were selected in write leveling and read gate training. What register is this value stored in? We can't see the relevant value in the generated ddr_init.c. For ls1046, wrlvl control register exists - (DDR1_DDR_WRLVL_CNTL/2/3) . However, it does not exist on the lx2160a. If the lx2160a doesn't support it, this test seems meaningless. What should we do? Looking forward to your reply. thank you

 

DohwanAhn_1-1676022714243.png

DohwanAhn_2-1676022737608.png

 

0 Kudos

2,304 Views
khushbur
NXP TechSupport
NXP TechSupport

Hi @DohwanAhn 

 

The LX2160 automatically calibrates 'write leveling' and 'clock adjust' parameters for the DDR4 PHY at start up.

 

"ddr does not work normally".

Can you please share log with log level INFO.

Thanks

Khushbu

0 Kudos

2,298 Views
DohwanAhn
Contributor II

Attach log file as below :

log.zip

p.s The lx2160ardb board log is included in teraterm.log, so delete it and upload it again.

Thanks

0 Kudos