cancel
Showing results for 
Search instead for 
Did you mean: 

USB Device using SDHC through SPI in STM3210C-eval

gustavo2
Associate II
Posted on July 02, 2013 at 22:09

Hi,

I am working in a USB Device project. The idea is plugging the device in the PC via USB cable in order to mount a drive unit. Data is storaged in a SD card through SPI interface. I am using STM3210C-Eval board and started from ''STM32_USB-Host-Device_Lib_V2.1.0''. This example works fine to 2GB SD card, but when I use 4 ou 8 GB SDHC card it just doesn't work. The file stm2310c_eval_spi_sd.c does not take account SDHC cards.

Do you know any example to STM3210C-Eval using SPI interface that works for SDHC cards?

#spi #sdhc #stm3210c-eval-board
3 REPLIES 3
Posted on July 02, 2013 at 22:24

Even the new ST firmwares don't deal with >4GB cards properly, I had to fix that for the STM32F4-DISCOVERY + SDIO demos (FATFS and MSC)

The SPI mode used by the STM32F107 is painfully slow. I don't have an STM3210E-EVAL, but rather an STM32CMICOS-EVAL. I have some time buried in an SDHC demo (16-32GB Ultra), but nothing releasable.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
gustavo2
Associate II
Posted on July 03, 2013 at 18:37

Hi, Clive.

Could you provide me your fixed version that you mentioned for MSC, even for STM32F4-DISCOVERY? It could be helpful.

Thanks.

Posted on July 03, 2013 at 20:18

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32%20sdio%20sdhc%204gb%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=102]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32%20sdio%20sdhc%204gb%20problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=102

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