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

SDHC 4 bit driver?
Started by ●March 7, 2010
Reply by ●March 7, 20102010-03-07
On Mar 7, 10:01=A0pm, "ded1549TOGL...@iperbole.bo.it" <ded1549TOGL...@iperbole.bo.it> wrote:> 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! > > Lyou must send 0xC0FF0000 not 0x40000000 you OR the HSC to the normal value, not sending JUST the HSC bit alone.. thats it :) Antti
Reply by ●March 7, 20102010-03-07
Il 07/03/2010 21:07, Antti ha scritto:>> 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. > you must send 0xC0FF0000 > not 0x40000000 > you OR the HSC to the normal value, not sending JUST the HSC bit > alone..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
