Hi FSL,
I use sd1 to mount our sdcard, when insert our sdcard, system will log:
[mmc3]mmc_wait_for_req: cmd 51
mmc3: Timeout waiting for hardware interrupt.
sdhci: =========== REGISTER DUMP (mmc3)===========
sdhci: Sys addr: 0x1faf6240 | Version: 0x00000002
sdhci: Blk size: 0x00000008 | Blk cnt: 0x00000001
sdhci: Argument: 0x00000000 | Trn mode: 0x00000000
sdhci: Present: 0xfff9820e | Host ctl: 0x00000001
sdhci: Power: 0x0000000d | Blk gap: 0x00000000
sdhci: Wake-up: 0x00000000 | Clock: 0x000010ff
sdhci: Timeout: 0x00000000 | Int stat: 0x00000000
sdhci: Int enab: 0x107f000b | Sig enab: 0x107f000b
sdhci: AC12 err: 0x00000000 | Slot int: 0x00000003
sdhci: Caps: 0x07eb0000 | Caps_1: 0x00000007
sdhci: Cmd: 0x0000333a | Max curr: 0x00ffffff
sdhci: Host ctl2: 0x00000000
sdhci: ===========================================
and I dump the register 0x30 and 0x24, it shows:
0x30: 0x00000001,
0x24: 0xfff9820e.
I send CMD55 before CMD51, it log :
0x30: 0x00000001,
0x24: 0xfff98088.
As your spec said: Read Transfer Active: A Transfer Complete interrupt is generated when this bit changes to 0(IMX6DQRM, p5484).
So, can you give me some suggestion?
BR,
Zoe
Hi Zoe
you can test basic SD operations and cmd55 execution with SDK usdhc test
i.MX 6Series Platform SDK : Bare-metal SDK
also suggest to check SD signals with oscilloscope.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igorpadykov,
I check our SD signals with oscilloscope , the wave of clock and cmd line is right, but after cmd 51 , the data line do not have any wave.
BR,
Zoe
please read part of RM below
~igor
Hi Igorpadykov,
Thanks for you reply first, there is some mistake in my description. It should be ACMD 51, get the value of SCR register.
BR,
Zoe
amcd51 is "application specific" command, not all cards may support it,
~igor
Yes, so I test my card in SD2 first, I am sure my card support ACMD51, but I can not use this card in SD1.
BR,
Zoe