cancel
Showing results for 
Search instead for 
Did you mean: 

8GB Sd Card is not working

dhaval
Associate II
Posted on May 16, 2016 at 09:00

Hi,

I am using STM32L4x6 MCU in our custom board. I developed the firmware with FatFs to add support of SD card using SDMMC1 interface. I am successfully able to interface the 2GB micro SD card and able to write files onto it.

But when I tried with 8GB (Micro SDHC) SD card in the same setup and with same firmware, it didn't work!! I tried SD card of different manufacturers like SanDisk, Transcend and Samsung, but none of them worked.

Do I need to modify the firmware to add support of 8GB card?

Please help.

Thanks,

Dhaval

#stm32l4 #hal #fatfs #microsd
5 REPLIES 5
Posted on May 16, 2016 at 11:31

SDHC uses slightly different commands and block addressing

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dhaval
Associate II
Posted on May 17, 2016 at 06:00

Hi Clive,

Thanks for you quick reply.

I also have the Eval board of STM32L1 and it has micro SD card connector. In that the 8GB sd card is working fine with Demonstration Sample Code. So I compared that code with my code and find it same.

So can you please let me know what changes are required? Is there any working sample code available for the reference?

Thanks,

Dhaval

dhaval
Associate II
Posted on May 18, 2016 at 09:09

Hi Clive,

Can you please help me here?

Thanks,

Dhaval

Posted on May 18, 2016 at 13:44

I'm not using L4 parts and no one has provided boards with SD card interface. I have my own work to do.

The command sequencing and parameters have changed to accommodate the larger media, if you have an implementation that works vs one that doesn't then instrument and review interaction.

Review initialization, block size selection and block numbers passed in read/write.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
dhaval
Associate II
Posted on June 07, 2016 at 07:38

Hi Clive,

Thanks for your support. Now the 8GB card is working fine.

Previously I was using Discovery board and the SD card adapter was connected to the board using cables. But after having our own custom board, the 8GB card works perfectly fine without any change!! So it was the cables who were culprit!!

Regards,

Dhaval