i.mx6 sometimes goes to serial downloader

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

i.mx6 sometimes goes to serial downloader

跳至解决方案
1,709 次查看
ivan_113
Contributor II

Custom board.

Normally boot from emmc, but sometimes goes to USB downloader.

Normal boot log:

Normal boot logNormal boot log

Failed boot log:

Failed boot logFailed boot log

Difference in entry #19: Jump to the boot image or Jump to the SDP

 

upd: this problem appears with boot from eMCC and SD too

 

Sometimes boot fails with following log:

Failed 2Failed 2

标签 (1)
0 项奖励
回复
1 解答
1,531 次查看
ivan_113
Contributor II

Thanks to all.

Reset of MMDC before loading u-boot fixed the problem.

在原帖中查看解决方案

0 项奖励
回复
8 回复数
1,532 次查看
ivan_113
Contributor II

Thanks to all.

Reset of MMDC before loading u-boot fixed the problem.

0 项奖励
回复
1,657 次查看
ivan_113
Contributor II

Hi. Thank for reply.

We have several versions of HW. On earlier versions it's all right. On current version was changed emmc and ddr. However, in case of load from SD errors occurs, problem may be in ddr. Stress test passing.

Previous ddr is EDB8132B4PM-1D-F-D

Current ddr is AS4C128M32MD2A-18BIN

Configuration in DCD are made

0 项奖励
回复
1,596 次查看
Harvey021
NXP TechSupport
NXP TechSupport

This kind of problem that sometimes starts normally and sometimes is not normal needs to be considered when doing ddr calibration first. I forgot to mention it earlier. 

@Mestkim  thanks for bringing up, you are correct.

 

Best regards

Harvey

0 项奖励
回复
1,634 次查看
Mestkim
Contributor III
  • If the board hardware is set to use internal ring oscillate as you mentioned, it could not be the ERR009678.

 

  • If you believe it could be ddr issue, you can check if you have finished the mass production  ddr stress test for i.MX6Solox and for this lot of the boards you made. 

  But still suggest to monitor the power ramping up of emmc and sdcard. 

 

  • Several years ago, I followed this document for mass production ddr stress test.  The document is to find a smallest window of ddr configuration to fit all the boards of a lot. 

i.MX6 DDR calibration/stress for Mass Production
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX6-DDR-calibration-stress-for-Mass-Pr...

 

0 项奖励
回复
1,670 次查看
Mestkim
Contributor III

It could be  ERR009678 ROM: SD/EMMC/NAND prematurely times out during boot. 

And also suggest you to check the power sequence including emmc power on timing. 

2023-08-01_204415.png

0 项奖励
回复
1,659 次查看
ivan_113
Contributor II
32kHz crystal is removed and RTC_XTALI connected to GND
0 项奖励
回复
1,680 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi @ivan_113 

The problem caused can be various.

Does this issue happen same image? 

From ROM log, which seems telling the address in the signature is invalid, you can dump HAB log then share the HAB event.

If not the case above, what BSP you are using, it'd be better to share your schematics to (harvey.yu_1@nxp.com) me for further troubleshooting.

 

Best regards

Harvey

 

 

0 项奖励
回复
1,668 次查看
Mestkim
Contributor III

NXP expert,

"The problem caused can be various."  In fact, it cannot be HAB issue in those "various".

The log shows it is an open device.  Dump HAB log and share the HAB event of an open device? For what? 

Here is a description in reference manual. 

If it is an open device, it always gets authenticated error because "All HAB functions are executed as for a closed device." 

On the contrary, what you said "telling the address in the signature is invalid" is a normal ROM log. 

Is there any misunderstanding below? 

2023-08-01_204549.png

 

0 项奖励
回复