Skip to main content
frank239955_stm1_stmicro_com
Associate II
October 16, 2012
Question

STM32F103RC SDIO

  • October 16, 2012
  • 6 replies
  • 1332 views
Posted on October 16, 2012 at 12:03

Hi,

I am using a STM32F103RC and successfully can access a 16GB SD card via SDIO.

Every single try on a 32GB SD card fails.

Is there some limitation? because any code I found (SDIO) works ok with <16GB and fails with 32GB...

Any ideas?

Thanks,

Frank
    This topic has been closed for replies.

    6 replies

    Tesla DeLorean
    Guru
    October 16, 2012
    Posted on October 16, 2012 at 15:37

    These would be SDHC Cards, they address differently, and a lot of ST's code has a 32-bit 4GB limitation as it tries to byte address the data rather than block address it.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    frank239955_stm1_stmicro_com
    Associate II
    October 16, 2012
    Posted on October 16, 2012 at 18:12

    Can you give me a link to a demo code that works with 32GB SDHC cards?

    Tesla DeLorean
    Guru
    October 16, 2012
    Posted on October 16, 2012 at 19:36

    I'd have to check what I have for the F2 and F4, nothing here for the F1 although you might be able to back port it.

    The last 32GB SanDisk Mobile Ultra microSDHC card is in my phone, will need to get some more.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    October 16, 2012
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    frank239955_stm1_stmicro_com
    Associate II
    October 16, 2012
    Posted on October 16, 2012 at 21:39

    Thank you for the links!

    But I have a F103 device :)

    Has anyone else implemented a access to a 32GB SD card with a F103 device?

    Is it possible or not?

    Tesla DeLorean
    Guru
    October 17, 2012
    Posted on October 17, 2012 at 02:25

    They are all more similar than they are different. I'm just not hugely invested in the F1 at this point.

    What are you using as the basis of your code?

    STM32F10x_StdPeriph_Lib_V3.5.0\Utilities\STM32_EVAL\Common\stm32_eval_sdio_sd.c

    Is there anything interesting about the hardware implementation, or card?

    How exactly is it failing? Are then any error codes?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..