From: Chuck M. <chu...@gm...> - 2017-11-27 19:38:54
|
There are four things that must be correct for USB to work 1) You must set the proper USB peripheral (FS, HS, OTG) and have the appropriate code for that peripheral 2) You must set the proper I/O pins (enable the clocks, set their alternate function) 3) You must enable the clocks for both the GPIO ports where the pins are, and the USB peripheral you are using 4) You must call usb_poll() often enough for it to service any requests coming from the host. I recommend that you read through the USB section of the Reference Manual (RM0383 : http://www.st.com/resource/en/reference_manual/dm00119316.pdf). --Chuck On Mon, Nov 27, 2017 at 6:50 AM, Zygmunt Ptak <zyg...@gm...> wrote: > Hi, > > I have a dev platform based on stm32f411ce. > > I'm trying to get working USB, but I doesn't work. > I copied code from f4 examples (my build for blinking LED example > works), but somehow USB is dead. > > I don't see any USB example for stm32f411re or near. > Is there some reason why example is not implemented for stm32f411re? > > Do I have to implement driver? > I tried both: otgfs_usb_driver, otghs_usb_driver. Other are not > included in build. > > What I have to do to get USB on my stm32f411ce? > > Best Regards > Zygmunt Ptak > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > libopencm3-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libopencm3-devel > |