2012-08-20 03:04 AM
I have just bought a Core407V STM32F407VET6 STM32 ARM Cortex-M4 Development Board
I want to use it to send data from my pc to the STM32 around 2048bytes 60 times a second.Im a bit confused what type of USB library i should be using HID or OTG or some other library? I basically just need bulk transfer.Would some one be able to point me in the right direction please :)Thank you :)2012-08-20 08:47 AM
Have you tried working through the ST USB examples?
\STM32_USB-Host-Device_Lib_V2.1.0\Project\USB_Device_Examples\HID The STM324xG-EVAL_USBD-FS uses the following options USE_STDPERIPH_DRIVER,STM32F4XX,USE_STM324xG_EVAL,USE_USB_OTG_FS The examples should be reasonably portable to other boards, I have the MSC and VCP working on STM32F4-Discovery boards.2012-08-20 09:35 AM
Sounds great :)
May i ask where you are downloading these examples from? I could not find a download section on the stm site.Thanks :)2012-08-20 10:12 AM
Should be off one of the chip resource pages via ''Design Support'' tab
2012-08-20 11:49 AM
2012-08-20 11:49 AM
2012-08-21 02:17 AM
thanks :)
2012-08-26 06:06 AM
I have tried the
stm32_f105-07_f2_f4_usb-host-device_lib\STM32_USB-Host-Device_Lib_V2.1.0\Project\USB_Device_Examples\VCPexample, i replaced the LCD log outs with printfs (so i can see what is going on)But it does not do much :(The code seams to setup all the usb stuff but only ever callsUSBD_USR_Initthe otherUSBD_USR_DeviceResetUSBD_USR_DeviceConfiguredUSBD_USR_DeviceSuspendedUSBD_USR_DeviceResumedetc.. never get calledand the pc just says 'unknown device' but im pretty sure thats just because i have enabled the usb on my dev board. nothing to do with the code running on the stm.I was kind of hoping a out of the box example would just work :( as there is so much code i have not got a clue where to look / figure out where it has gone wrong.im using the Core407V dev board from waveshare. Is there a better dev board i can use with examples that will just work?2012-08-26 07:16 AM
have bought the STM32F4DISCOVERY, im guessing this is the actual board the example code was written for so hopefully i have more luck with this :)
(+ only £9.99 from RS components!!!) :)2012-08-26 11:32 AM
The STM32F4-Discovery is not the target of the USB library, the target is the EVAL series boards the STM3240G-EVAL, etc
I have ported a number of the drivers to the STM32F4-Discovery board using GNU and Keil tool chains. Mainly the MSC and VCP, but others would be relatively straight forward. I've posted by GNU/GCC port herehttps://docs.google.com/open?id=0B7OY5pub_GfIdnREeExyRWNXbFE
I'd dig up the threads on the forum here if I could find them quickly. The on-point ones covered USB and porting to different chains, or boards. Functional forum software would permit you to click on my avatar and see all posts, and search them. This Microsoft forum software was coded by people who've never used forums before, just those who used Word/Office and thought it was awesome. Thank god they didn't add ribbons to make it more awesomer!