From: ded1549TOGLIMI on
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
From: Antti on
On Mar 7, 10:01 pm, "ded1549TOGL...(a)iperbole.bo.it"
<ded1549TOGL...(a)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!
>
> 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

From: ded1549TOGLIMI on
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