Page 1 of 1

eMMC not working with STM32F4

Posted: Fri Dec 20, 2013 10:38 am
by ucasano
Hello all,

I am trying to interface an STM32F4 with the eMMC N2M400FDB311A3C from Micron, with no success.
The protocol I am trying to use is best described in the document JESD84-A441 from JEDEC.

This is what I do:

send CMD0 short nocrc with no arguments and waiting for no answer;
send CMD1 short nocrc with argument 0x40ff8000, and I get the answer: 0x00ff8080
send CMD2 long crc with no argument, and I get CTIMEOUT in most of cases, and sometimes I get CTIMEOUT+CMDACT.

I am in serious trouble with this device: I am trying to fix it since weeks, but with no success.

Maybe I have to increase the timeout, but I see that DTIMEOUT register is already at maximum value (0xffffffff).

Please provide everything, even strange/paranormal suggestions, because I did ask Micron support and I am not confident they will contact me soon.
Thank you in advance for your time and consideration.

-g

Re: eMMC not working with STM32F4

Posted: Fri Dec 20, 2013 7:00 pm
by ucasano
Ok boys, finally I did it!

Thank you all very much.

Merry Christmas to everybody!

-g

Re: eMMC not working with STM32F4

Posted: Thu Feb 06, 2014 11:52 am
by flandroid
Hi,

Can you tell me how you solved this problem ?

I have the same problem working with the same eMMC.

Thanks you.

Sorry for my bad English.

Flandroid

Re: eMMC not working with STM32F4

Posted: Tue Sep 04, 2018 11:43 am
by porcupineg
Can you write your solution for that problem?

Re: eMMC not working with STM32F4

Posted: Wed Sep 12, 2018 12:16 am
by DeusExMachina
eMMC works fine with F4 (tested with 16.1.6)
Don't forget to add scratchpad buffer in SDCConfig structure