Re: [libopencm3-devel] USB with stm32f411ce

2017-12-02 Thread Zygmunt Ptak
Hi, Ok, from what I see, funtion: stm32fx07_poll is called. But bit OTG_GINTSTS_RXFLVL is never set and finally USB_TRANSACTION_SETUP is not called. Best Regards Zygmunt 2017-11-30 22:50 GMT+01:00 Zygmunt Ptak : >> Looks pretty reasonable. What sort of debugger are you using? > > Yeah, that is f

Re: [libopencm3-devel] USB with stm32f411ce

2017-11-30 Thread Zygmunt Ptak
> Looks pretty reasonable. What sort of debugger are you using? Yeah, that is for now the problem. I tried use eclipse, but I have some problem with setup. BTW are you working with libopenmc3 and eclipse? If yes then what is your setup? PS: I don't know comad line gdb;-/ Regards 2017-11-27 22:

Re: [libopencm3-devel] USB with stm32f411ce

2017-11-27 Thread Chuck McManis
Looks pretty reasonable. What sort of debugger are you using? --Chuck On Mon, Nov 27, 2017 at 1:27 PM, Zygmunt Ptak wrote: > Hi, > > Thank you for your response. > > USB works on my board, I tested it with code generated by: STM32CubeMX. > STM32CubeMX generates only one USB interface code, and

Re: [libopencm3-devel] USB with stm32f411ce

2017-11-27 Thread Zygmunt Ptak
Hi, Thank you for your response. USB works on my board, I tested it with code generated by: STM32CubeMX. STM32CubeMX generates only one USB interface code, and it is not possible use few USB interfaces;-/ That is why I'm trying use libopenmc3:) I reused settings from STM32CubeMX rcc tab, and I'v

Re: [libopencm3-devel] USB with stm32f411ce

2017-11-27 Thread Karl Palsson
F411 simply didn't exist when those examples were written. As far as I can tell, you should be using the ogffs_usb_driver, and you'll probably have to do some things to configure your RCC clocks properly, I imagine there may have been some changes, but a cursory check over RM0383 seems to the sam

Re: [libopencm3-devel] USB with stm32f411ce

2017-11-27 Thread Chuck McManis
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