Hi there.
I have stumbled to the interesting problem. Custom device is not always booted.
Problem is appeared at power on state and rebooting two. Just set at u-boot param bootcmd as reset. ~5% starting are broken. Cold reset is used(not warm reset). I have tried to find answer in this way:
https://community.nxp.com/t5/i-MX-Processors/Not-stable-boot-from-emmc-5-1/m-p/1594220
Shortly: looks like device is fall to USB downloader mode after booting data from mmc. Look at the topic above. It has a lot of interesting pictures. ))
Now I 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
And it is not only with iomuxc problem. Some times I see problems even with mmdc initialization. For example:
Above you can see registers after two different freezes. At right side mmdc registers even not set (I haven't compared with default).At right side another freeze but mmdc registers.
And for example register 0x021b08b8 must be 0x00000800. But here 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
Hi, Dhruvit .
I'm glad to hear from you.
1. Important moment: the problems appears from time to time on the same device without reprogramming.
2. It seems to me the problem is from quartz stability. I try to push my hw department to test external stable clock source.But now they decided it is not the most important problem. So I wait and remind them from time to time.
Hi @Kanstantsin1,
Hi @Kanstantsin1,
I hope you are doing well
Hi Dhruvit.
Yes. It falls to USB downloader.
At this mode I've read the register. I am used uuu to read the registers.
About "In your case does your board boot?"
Most of the power-ons it boots the board, but sometimes it doesn't boot and falls to USB downloader at these cases I am reading the registers. And see the strange picture. Sometimes all of them are in right value (like are set at DCD) and sometimes only part of them in right value (it crashes my mind).
In cases when the device boots it works really stable- no one test sees the problem.
BTW using secondary bootloader (with 0x00112233) pointed to the sector of the first bootloader reduces count of the falls to usb-downloader, but not fix the problem.
Hi @Kanstantsin1,