Prev: CFP with Extended Deadline of Mar. 21, 2010: The 2010 International Conference on Computer Design (CDES'10), USA, July 2010
Next: Call for papers: HPCS-10, USA, July 2010
From: ded1549TOGLIMI on 7 Mar 2010 15:01 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 7 Mar 2010 15:07 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 7 Mar 2010 15:27
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 |