SDHC 4 bit driver?

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
Reply to
ded1549TOGLIMI
Loading thread data ...

you must send 0xC0FF0000 not 0x40000000

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

thats it :)

Antti

Reply to
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
Reply to
ded1549TOGLIMI

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.