cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F217 USB HS in FS mode - Mass Storage Device

gmentrak
Associate
Posted on November 14, 2011 at 21:30

Hello

Has anybody tried to run Mass Storage Device example from ST with embedded phy? When I'm connecting my board (with SD card and SDIO) to PC I'm able to copy small files to/from PC but when I'm trying to copy large file (~500MB) it's only possible from PC to SD. During transmision from SD card to PC communication is hanging out after transmit few MB. When I run my code on STM3220G eval board with ULPI everything works fine. Any suggestions?

TIA

Grzegorz Mentrak

#usb #stm32f2
8 REPLIES 8
rosarium
Associate II
Posted on November 15, 2011 at 11:11

not tried that much of bulky data. But yes tried upto 13 MB of data. It's working both the ways ok.

Can you describe more about your pronlem??

root
Associate II
Posted on November 21, 2011 at 20:03

Hello,

Are you using OTG1 or OTG2 ?

What is your hardware ?

I'm having a lot of issues with OTG2 embedded phy and I'd like to have more infos on working hardware.

Thomas.
valvo
Associate II
Posted on April 20, 2012 at 16:29

Hi,

I'm experiencing the same problems. I can't figure out where it comes from. Apparently it gets stuck somewhere. Any luck with your design?

Vince

alok472
Associate II
Posted on April 21, 2012 at 05:06

What is yr card capacity and OS on PC side ?

valvo
Associate II
Posted on April 23, 2012 at 12:00

Hi,

I'm using a 2Gbyte SD card and windows 7 on the host PC. 

I get stuck for no obvious reason in a middle of a long read, sometimes write. 

I'm having a look at it, trying to debug. It does crash, the main loop is still running ok. It is even still going to the USB interrupt, just not doing anything there.

 

alok472
Associate II
Posted on April 24, 2012 at 03:15

Hi, I have recently seen some problem with Win7. Did not dig into it though. Can you try any other OS ?

valvo
Associate II
Posted on July 09, 2012 at 12:32

It was definitely a bug in the Library. It has been fixed in the new release by ST (STM32_USB-Host-Device_Lib_V2.1.0).

And they even improved a bit the read speed. I peak at 5MB/s when it was 3 before. 

Posted on July 09, 2012 at 12:56

It was definitely a bug in the Library. It has been fixed in the new release by ST (STM32_USB-Host-Device_Lib_V2.1.0).

It is still woefully busted when it comes to SDHC card >4GB

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Attachments/23167/stm32f4_discovery_msc_sdhc_release_1.zip

Getting class 6 or 10 cards will also speed things up significantly.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Where is the UsbMassStorage Examples Supt for stm32f4xx&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=369]Related Thread

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