2011-06-06 08:11 AM
Hello,
I want to do a USB transfert from my computer to an USB. I am working with IAR embedded workbench with a stm32f107vct6. All the examples given with the software can't help me because it is for doing a USB mouse... Is there anybody who can help me for this? (functions or everything) thanks to all2011-06-07 06:46 AM
I have found these 4 .txt.
in the GPIO it's for all the ports in usb hw it's for all the init, reset etc.. of the usb in usb buffer it's for prepare and send as they say. in flahs it's for write data I want to create a file into my flash memory and transfert it to an usb device (with D+ and D- at PA10 and PA12). I want to see the st.txt into my usb device. Could someone just have a look on the attached file, for helping me to know if i can use this? If yes please tell me how. Thanks to all ________________ Attachments : fonction.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0b9&d=%2Fa%2F0X0000000bax%2FOnQZot8GfXCOO99.3A1.PThDkDdEAQrOqxDIm1H3AxA&asPdf=false2011-06-07 09:12 AM
Hello ,
You need Mass storage example for this. Pls download the ''STM32F10x and STM32L1xx USB full-speed device library'' from below link. Refer Mas storage example. You can find this for different compiler. For IAR also they have provided the mass storage exmple. Pls read the ''readme.txt''. You will find the full firmware here. This will help you to resove your problem.2011-06-07 10:08 AM
He said he wants to transfer the data
to
a USB Device - which would mean that his application must be a USB Host. If that's what he really means, then the Mass Storage example will be no use...2011-06-09 09:12 AM
if USB host is the requirement then pls go through the below link.
USB host firmware is available for STM32F107 controller .2011-06-14 02:18 AM
Ok thank you all.
If I have well understand I must use my MCU as a Host and the USB key as a device... I will have look on it...2011-06-14 05:03 AM
''I must use ... the USB key as a device''
Yes, you must - you have absolutely no choice whatsoever in that matter. Given that the USB Key has to be the Device (''slave''), it follows directly that your MCU must be the Host.
2011-06-16 04:45 AM
ok it's clear.
I have look the USB host and there is a function call: /* Host Task handler */ USBH_Process(); I have attached what it does. I don't understand what this do. And for my problem if I have to use something in it or adding something else (that I actually don't know) ________________ Attachments : usb_process.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0b4&d=%2Fa%2F0X0000000bav%2FopHoHXAsfvQZ0awczquKTEpjjUQFoRJcLjMLIQ9JU3U&asPdf=false2011-07-05 11:19 PM
Hi,
As mentioned in above mentioned post if you want to send some data from your device to PC you have to be in host mode. If you do not want to make a host device. the CDC class (V com port example) can also be help. You can try it. Its example available at and install the required driver from