2012-07-02 01:03 AM
Hello everyone!
I want to create a new topic for incremental learning with usb for beginners. I've started to learn usb library, seen examples, but I have many questions. First of all, I can't undestand, how to configure pins VBUS, ID, DP,DM fot host.2012-07-02 05:57 AM
Use the Host example directly. The USB library has example for Host-HID and Mass-Storage.
See for UM1021() At link below Search= Host (2012-07-05 05:39 AM
2012-07-05 05:55 AM
I try efsl using example from st stm32f105_107_usb_fw. When I use usb flash storage 16 Gb capacity I had problems with efsl initialization bacause of fs_varifySanity returns 0 (BytesPerSector>512). When I try mobile phone sd card (2Gb capasity) with FAT I have succeed. When I make partitions on flash, one partition is 2Gb capacity, and formate it with FAT or FAT32 I have fs_varifySanity=0 because of SectorsPerClaster=128(supported only 2,4,6,8,16,32,64). When I make partition 1Gb capacity on usb flash storage, formatted with FAT or FAT32 I have succeed. Where is problem? What can I do to use any usb flash storage with any capacity?
2012-07-17 05:28 AM
2012-07-17 06:44 AM
Can anybody help me?
Probably not a lot. The USB and SD examples posted by ST pass addresses as 32-bit values, you'll clearly have problems with media >4GB in these situations. It is important to use BLOCK NUMBERS and not OFFSET ADDRESSES. I've posted a fixed version of the SD/MSC code for the STM32F4-Discovery board. Suggest you review that.
2012-07-18 10:46 PM
Where can I find it?
2012-07-19 04:24 AM
[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¤tviews=445]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FWhere%20is%20the%20UsbMassStorage%20Examples%20%20Supt%20for%20stm32f4xx&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=445