DDR on custom PCB (i.MX 8M Plus)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DDR on custom PCB (i.MX 8M Plus)

3,856 次查看
melon87
Contributor I

Custom PCB with DDR Tool reporting "Dbyte 0 couldn't find the rising edge of DQS during RxEn Training".

I have followed the advice on other forum posts:

- Account for DQ swaps

- Use spreadsheet to calculate correct parameters

- Following debugging advice in the manual. We werent entirely show how to tune the design...

Please what can we do next?

0 项奖励
回复
14 回复数

3,842 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello, I hope you are doing well.

According to internal team, when this issue is presented on DDR Tool, is recommended to check the conditions for DQS0 signals or maybe a DDR configuration that is not supported on the device (usually is the first).

Best regards.

0 项奖励
回复

3,837 次查看
melon87
Contributor I

@JorgeCas  thank you - I am well. You too I trust. Check the condition i.e. measure it on hardware?

0 项奖励
回复

3,834 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Yes, measure it on hardware.

Best regards. 

0 项奖励
回复

3,809 次查看
melon87
Contributor I

@JorgeCas it does look bad. Has a poor slew rate. What can we change on the NXP device?

@JorgeCas For DDR4 is CK_t_A the right thing to use or should it be CK_t_B?

 

Thank you

0 项奖励
回复

3,795 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Could you please share me your DDR schematic? If there is no hardware issue you could try to fine tune.

ATxImpedance/ODTImpedance/TxImpedance parameters to find a reasonable window.

Please refer to RPA tool for the details and available options of the above parameters.

Best regards.

0 项奖励
回复

3,750 次查看
melon87
Contributor I

@JorgeCas  Sorry I can not share those. We have made some progress - there was a power supply issue with the PCB. So we now have RPA tool reporting a read skew error - are there parameters we can tune to resolve this? Thank you

 

0 项奖励
回复

3,736 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Got it, thank you for the feedback.

Which error are you getting?

Best regards.

0 项奖励
回复

3,731 次查看
melon87
Contributor I

@JorgeCas  error dbyte 0 lane 0 failed read deskew

0 项奖励
回复

3,724 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Thank you.

Essentially, the error message is saying that byte lane 0 bit-0 cannot pass fine turn adjust when running the training period for Read DQS. The trace itself is either too long or too short, and there are not enough calibration adjustments that can be made to bring it back in line, or there could be skew problem or noise.

Also, there is a possibility that the initialization file could has errors. I suggest you take a look on your RPA parameters or use config tools for i.MX with the parameters according for your DDR configuration.

Best regards.

0 项奖励
回复

3,699 次查看
melon87
Contributor I

@JorgeCas we managed to get u-boot working at DDR-1066 using the eval kit image for DDR4 default. Fails are higher speeds.

The MSCALE tool doesn't seem to work at speeds lower than 1200MHz - it just hangs on the first command. Is that a known issue or a sign that we have the wrong parameters? 

标记 (1)
0 项奖励
回复

3,693 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

That behavior makes me think on signal integrity issues, as you mentioned before on your measures.

Since it is a custom board design and manufacturing technology are different from NXP reference board, and board related parameters may differ from initial DDR script, so please try tunning:

ODTImpedance

Desired ODT impedance in Ohm. Valid values for DDR4=240,120,80,60,40. Valid values for DDR3L=high-impedance,120,60,40. Valid values for LPDDR4=240,120,80,60,40

TxImpedance

Write Driver Impedance for DQ/DQS in ohm (Valid values for all DDR type= 240, 120, 80, 60, 48, 40, 34)

ATxImpedance

Write Driver Impedance for Address/Command (AC) bus in ohm (Valid values for all DDR type = 120, 60, 40, 30, 24, 20)

Did you check signal integrity with a lower clock speed?

Best regards.

0 项奖励
回复

3,601 次查看
melon87
Contributor I

@JorgeCas we have uboot running robustly at 533MHz clock (DDR-1066). It is a shame we cant get MSCALE to work at 533 so we can calibrate. Do we have any other options to generate the calibration data?

0 项奖励
回复

3,587 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Available options to generate it are:

- MSCALE DDR Tool.

- Config Tools for i.MX.

Best regards.

0 项奖励
回复

3,436 次查看
melon87
Contributor I

@JorgeCas  Config Tools for i.MX seems a positive step forward. However, we find u-boot crashes when we add these training files. Is there a specific version of u-boot that is supported? We have taken the evaluation kit image - perhaps a mismatch?

0 项奖励
回复