System reboot when SD CARD insert

Hi,

We found that insert some SD Card cause system reboot.
schematic as same as design guide.
You can see the photo as below, we measure waveform when SD card insert.
Waveform is: SD CLK/SD DATA0/ SD POWER CONTROL
while we plug-in SD card, we can see that voltage of channel 3 from 1.8V(un-insert) drop to 0V(inserted)
It seems system reboot when CLK voltage change from 3.3V to 1.8V(orange arrow)

Attached is UART log while SD card inserted, please check it.
If you need more information, please let us know.
SD_2.txt (14.3 KB)

Does this 100% happen or just randomly happen?

Hi Wayne,

This symptom is 100% happen.
In addition, we use standard SD not micro-SD card slot.
Not sure, do we need to do extra setting for standard SD?

Thanks,
Jeremy

Hi,

Could you try to attach log from the beginning? Also, when you don’t do “hotplug” but directly leave the sdcard in jetson and boot up, will you hit this issue?

Hi Wayne,

Attached is log when we insert SD card.
SD_2.txt (14.3 KB)

Besides, reboot issue also happened when we insert SD in jetson then boot up

Thanks,
Allison

Could you share your device tree and schematic?

Hi Wayne,

Please refer attached
V0.1_SD.pdf (267.5 KB)

Thanks,
Allison

And the device tree…?

Hi Wayne,

please refer attached
device_tree.7z (30.3 KB)

Thanks,
Allison

Hi,

Could you convert the dtb file back to dts file by using dtc tool and attach it?

Oh. I see it in the tarball.

Hi,

I am a little confused by your design. Do you use a GPIO to control your VDD SD or not?

Hi Wayne,

I use GPIO07 to control VDD SD,
Combine Q16 and Q17, this part just like a IC to swtich

Thanks,
Allison

Hi,

If you have a GPIO to control the VDD SD, then always-on setting should not be added to devicetree.

Hi Wayne,

But I observed from waveform, SD VDD will supply after SD CARD insert.
We’ll also check this devicetree is correct or not.
On the other hand, is it cause system reboot?

Thanks,
Allison

The error you hit is CPU error and the CBB says the error code is “SLV”. Generally, it means “Accessing any clock gated IO”.

So yes, the power supply timing may affect the reboot here.

Hi Wayne,

I think our schematic is meet your requirement, could you describe more details about “Accessing and clock gated IO”?

Thanks,
Allison

Hi,

I mean you should correct your device tree first…

Dear Wayne,

According you mention “always-on setting should not be added to devicetree”.
Did you just meaning the vmmc-always-on?
Or the both that include vmmc and vqmmc’s always-on should be remove?
p.s. the vqmmc-always-on is exist in the tegra194-soc-sdhci.dtsi default.

nvidia,vmmc-always-on;
nvidia,vqmmc-always-on;

Best Regards,
MOMO Chen

You can delete both.