This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMDX654GPEVM: Boot issue with DDR4

Part Number: TMDX654GPEVM

Datasheet_EMIF.zipHi Team,

We are working on a custom platform based on the TI's AM6548 reference platform TMDX654GP EVM. The custom platform has the DDR4 (MT40A512M16LY-062E) part which has a few different configurations from that of the reference design.The software is based upon the latest release from Texas instruments PROCESSOR-SDK-LINUX-AM65X  06_00_00_07. 

In-spite of the difference in DDR4, we attempted to load the software on the custom platform and observed the software fails at very early stages of the booting process.  We tried SD Card boot and UART boot and observed the booting process was not successful. Pasted the respective console logs here.

1) SD Card Boot :-

U-Boot SPL 2019.01-g8b90adfb16 (Aug 12 2019 - 06:20:06 +0000)
SYSFW ABI: 2.6 (firmware rev 0x0013 '19.4.1-v2019.04a (Curious Crow)')
i2c_write: error waiting for data ACK (status=0x116)
Reading on-board EEPROM at 0x50 failed -121

Trying to boot from MMC2

2) UART Boot Logs from Host:-

mistral@CPU665U:~/yocto/evm/test$ ./uart-boot.sh 

stty configuration
sending tiboot3
Sending tiboot3.bin, 949 blocks: Give your local XMODEM receive command now.
Bytes Sent: 121600   BPS:3724                            

Transfer complete
sending sysfw
Sending: sysfw.itb
Bytes Sent: 265856   BPS:7077                            
Sending:
Ymodem sectors/kbytes sent:   0/ 0k
Transfer complete
sending tispl
Sending: tispl.bin
Ymodem sectors/kbytes sent:   0/ 0kRetry 0: Got 75 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 72 for sector ACK
Retry 0: NAK on sector
Retry 0: Got 4b for sector ACK
Retry 0: NAK on sector
Retry 0: NAK on sector
Ymodem sectors/kbytes sent: 496/62k

So, we went back to the EMIF tool to modify the DDR timing settings based on the datasheet (both attached here) and generated the new dts files and reloaded the software. This time the DDR initialization failed at write levelling adjustment routine. 

U-Boot SPL 2019.01-00353-gc9a9812-dirty (Oct 25 2019 - 18:09:07 +0530)
SYSFW ABI: 2.6 (firmware rev 0x0013 '19.4.1-v2019.04a (Curious Crow)')
i2c_write: error waiting for data ACK (status=0x116)
Reading on-board EEPROM at 0x50 failed -121
rest_training: ERROR: Write Leveling adjustment failed
DRAM init failed: -22

Could you please have a look at the AM65x_DRA80xM_EMIF_Tool_1.5 sheet, the DDR4 datasheet and provide your comments on the timing values.  

Warm Regards,

Navya

  • Navya, a few things to try

    -can you download the latest EMIF tool.  The latest version is 1.95 on the web

    -are you able to connect JTAG and try initializing with GELs?  It will be much easier to debug any DDR issues that way.  That way we can separate any DDR issues with other booting issues.

    -one main thing that i noticed is that on the Address Mapping tab, you only have 9 column bits defined , yet the datasheet shows 10.  I think you need to add col9 at HIF Address Bit 9, and then shift the other left.

    Regards,

    James