SDHC 4 bit driver?

Mar 07, 2010 2 Replies

Hello,



I'm trying to add SDHC support to a STM32 4 bit mode driver (not SPI) which works fine with normal SD. Before ACMD41 I added CMD8 with 0x01AA as a parameter; the answer is the same (0x01AA) which is OK. In the following ACMD41 I set HSC bit (arg is 0x40000000), but in the STM32 SDIO controller the timeout flag is set.



Did someone write a SDIO 4 bit driver for SDHC, please?



Thanks to all!



L

you must send 0xC0FF0000 not 0x40000000

you OR the HSC to the normal value, not sending JUST the HSC bit alone..

thats it :)

Antti

Il 07/03/2010 21:07, Antti ha scritto:

Thanks Antti,

I tried also to OR old param with HSC with no success. I tried also with your ACMD41, but it doesn't work. Timeout flag is still set into STM32 SDIO controller.

Thanks for your help!!!

L

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required