LX2160a processor DDR configuration in ATF source code

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

LX2160a processor DDR configuration in ATF source code

258 Views
Nikhiln
Contributor III

Hi,

I'm trying to bring up a custom LX2160a based SBC board. I'm getting initial BL2 prints, and DDR initialization is failing. What are the things I have to modify for DDR initialization?

I'm using 4GB DDR4 memory on each controller with x32 bit data width. My application is data rate of 2600MTps. What are the things I have to modify for these settings to work?

I'm flashing bl2_flexspi_nor.pbl and fip_uboot.bin files only. Do I need to flash any other images for DDR to initialize and boot the processor properly.

Below is the UART log I'm getting.

NOTICE:  BL2: v2.4(release):LSDK-21.08-0-g340b20bcb-dirty
NOTICE:  BL2: Built : 08:36:13, Jul 23 2024
ERROR:   Invalid DIMM combination.
ERROR:   Parsing DIMM Error
ERROR:   DDR init failed.
NOTICE:  Incorrect DRAM0 size is defined in platform_def.h

Tags (2)
0 Kudos
Reply
6 Replies

126 Views
June_Lu
NXP TechSupport
NXP TechSupport

Have the value of phy_vref been optimized? you can use the QCVS tool to find the optimized value of the phy_vref, only select "Auto search and detect for DDR VREF start value then run the test first.

0 Kudos
Reply

120 Views
Nikhiln
Contributor III

I am not able to find an option only to enable: "Auto search and detect for DDR VREF start value". But when the test is run it is only doing the VREF search test and error is coming as given in the previously shared logs in the attachment.

How to get DDR firmware image to flash in the following location: 0x00800000. While building image using, it is not building the new fip_ddr_all.bin (settings modified for our board in atf source file: plat/nxp/soc-lx2160 is not reflecting in this binary).

Also is this binary file required to be flashed for running QCVS tool.

Tags (1)
0 Kudos
Reply

152 Views
June_Lu
NXP TechSupport
NXP TechSupport

Need to confirm all the information and investigate the issue, will update it later.

0 Kudos
Reply

219 Views
June_Lu
NXP TechSupport
NXP TechSupport

Would you kindly share the  SBC board.

LX2160ARDB is a recommended reference for the LX2160A reference design board provides design and evaluation of the LX2160A or LX2162A processors.

https://www.nxp.com/design/design-center/software/qoriq-developer-resources/layerscape-lx2160a-refer...

It is possible that the issue is caused by improper operation of the DRAM memory.

Have you used CodeWarrior QCVS DDR Tool to validate the DRAM operation?

QCVS_DDR_User_Guide

Thanks

0 Kudos
Reply

195 Views
Nikhiln
Contributor III

We have referred LX2160ARDB files for our design. Also, for schematic and layout we followed recommendation in "AN5407_Design checklist" and "AN5097_DDR layout guide".

Attaching the SBC board schematic for your reference.

In BL2 UART log I shared it is saying DIMM configuration, we are discrete ICs on our board. Where I have to change these settings?

It is possible that the issue is caused by improper operation of the DRAM memory.

>>> Also, MRST from the processor is not driven high from processor. We have used the same DDR memory with other devices it is working so I doubt the issue related to DRAM memory.

Have you used CodeWarrior QCVS DDR Tool to validate the DRAM operation?

>>> Yes, I tried running CodeWarrior QCVS DDR Tool validation in default settings with only different data width and frequency of operation. error log of the tests is attached. Tried multiple validation as tests available in QCVS tool. In all the tests error is Firmware has failed.

During the QCVS DDRv tool validation test MRST was going high.

My doubt is configuration issue. Where can I find the configuration setting while building the images using LSDK 21.08?

1. Operational DDR tests: Write-read-compare

2. Centering the clock: Auto search and detect for DDR VREF start value

3. Read ODT and Driver: Read ODT and Driver

0 Kudos
Reply

181 Views
Nikhiln
Contributor III
Any update on the same?
0 Kudos
Reply