eMMC not working with STM32F4

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
ucasano
Posts: 57
Joined: Mon Aug 06, 2012 1:05 pm
Has thanked: 1 time

eMMC not working with STM32F4

Post 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
ucasano
Posts: 57
Joined: Mon Aug 06, 2012 1:05 pm
Has thanked: 1 time

Re: eMMC not working with STM32F4

Post by ucasano »

Ok boys, finally I did it!

Thank you all very much.

Merry Christmas to everybody!

-g
flandroid
Posts: 1
Joined: Wed Feb 05, 2014 10:52 am

Re: eMMC not working with STM32F4

Post 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
porcupineg
Posts: 1
Joined: Tue Sep 04, 2018 11:21 am

Re: eMMC not working with STM32F4

Post by porcupineg »

Can you write your solution for that problem?
User avatar
DeusExMachina
Posts: 223
Joined: Tue Apr 03, 2012 5:08 am
Has thanked: 3 times
Been thanked: 3 times

Re: eMMC not working with STM32F4

Post by DeusExMachina »

eMMC works fine with F4 (tested with 16.1.6)
Don't forget to add scratchpad buffer in SDCConfig structure
Post Reply