IMX6 At boot time registers are not always in default values. Is it causes freezes?

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

IMX6 At boot time registers are not always in default values. Is it causes freezes?

805 Views
Kanstantsin1
Contributor II

Hi there.

Description:

1. Custom device. Not a development board.

2. Use emmc 5.1 SANDISK https://datasheet.lcsc.com/lcsc/2006081112_SANDISK-SDINBDG4-8G_C577444.pdf

Problem: device falls down in usb-downloader-mode at 5% power-up. It boots fine At other 95%
What tried:

  • changed eFuses: Fast boot (BOOT_CFG1[4]), normal/fast speed (BOOT_CFG1[3]), enabled emmc HW reset (BOOT_CFG1[1]), DDR/SDR mode (BOOT_CFG2[5..7])
  • Made memory calibration,  stresstest  works fine overnight.
  • Looked at waveform of the signal lines. They are fine.

It looks like the imx6 reads first data including DCD and execute it. Then it load usb-downloader-mode.

 

KonstantinVitebsk_0-1675716340316.png

green - CMD
brown - CLK

Then we tested the device with boot_tester.exe
We have got the data:

KonstantinVitebsk_2-1675716701953.png

Can any one tell me what does the Device Init Fail  means?

Updated 13.02.2023:

Tried to read different registers with uuu. And found that some registers has not default values and not at the state I have set at DCD.
For example:
I set at DCD gpio  for SD4 at value  0x0001D020,but in time when the device fall to USB I have 0x000070F0. It is not a default value (0x0001B0B0). 

You can see diff of two registers (bmode usb VS freeze)

Kanstantsin1_0-1676296172894.png

 

And it is not only with iomuxc problem.  Some times I see problems even with mmdc initialization. For example:

Kanstantsin1_1-1676296173172.png

Above you can see registers after two different freezes. At the left side mmdc registers even are not set (I haven't compared with default).At the right side another freeze but mmdc registers are set almost properly. Look at the register 0x021b08b8 must be 0x00000800. But there none of them contain this value.

OSC looks  stable.
Powers - also stable. I reproduce the freezes even in cycle reset. 
Just set at u-boot param bootcmd as reset

 

Labels (2)
Tags (3)
0 Kudos
4 Replies

638 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @Kanstantsin1,

I hope you are doing well.
 

Yes. Sorry I haven't mentioned that my emmc on uSDHC4

=> You are correct, In that case, it is obvious that init will fail.
 
Regarding the Register values query, we are watching it in the other thread you raised.

 

If this query is resolved, can I mark this thread as a closed state?
 
Thanks & Regards
Dhruvit Vasavada

0 Kudos

607 Views
Kanstantsin1
Contributor II
Ha Dhruvit. 
Yeah.
 You can close  it. I don't know where the problem came from, but I am almost sure that it is from my HW. 
So close it. Thank you. 
0 Kudos

738 Views
ivan_113
Contributor II

MFG Mode USDHC device Init Fail looks like it's absent

0 Kudos

731 Views
Kanstantsin1
Contributor II

Yes. Sorry I haven't mentioned that my emmc on uSDHC4.
There are another devices on  uSDHC1 and uSDHC2 on the custom device. So MFG uSDCH INIT will not be passed anyway. 
Here is  written about uSDHC1 and uSDHC2:

Kanstantsin1_0-1676297675121.png

 

0 Kudos