You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with an ST NUCLEO -F 446ZE (STM32F446ZE microcontroller) development board and I'm a complete beginner when it comes to USB. My goal is make a VCP (Virtual Com Port) tunnel, where PA11/PA12 (OTG_FS) act as device and PB14/PB15 (OTG_HS) act as a host. I'm using FreeRTOS and the problem I'm seeing is that OTG_HS_IRQHandler goes crazy (10-39 microseconds in between consecutive interrupts) whenever I plug in a device to PB14/PB15, which means there is no CPU cycles left to do any other work. As soon as I unplug the device from PB14/PB15, then my microcontroller, including the USB device on PA11/PA12, works great again. The interrupts flags that are set in OTG_HS_IRQHandler are OTG_HS_HCINT, OTG_HS_SOF and OTG_HS_RXFLVL. Can someone please give me some advice on how I should tackle this or perhaps point me to a similar example that I use as a basis?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working with an ST NUCLEO -F 446ZE (STM32F446ZE microcontroller) development board and I'm a complete beginner when it comes to USB. My goal is make a VCP (Virtual Com Port) tunnel, where PA11/PA12 (OTG_FS) act as device and PB14/PB15 (OTG_HS) act as a host. I'm using FreeRTOS and the problem I'm seeing is that OTG_HS_IRQHandler goes crazy (10-39 microseconds in between consecutive interrupts) whenever I plug in a device to PB14/PB15, which means there is no CPU cycles left to do any other work. As soon as I unplug the device from PB14/PB15, then my microcontroller, including the USB device on PA11/PA12, works great again. The interrupts flags that are set in OTG_HS_IRQHandler are OTG_HS_HCINT, OTG_HS_SOF and OTG_HS_RXFLVL. Can someone please give me some advice on how I should tackle this or perhaps point me to a similar example that I use as a basis?
Beta Was this translation helpful? Give feedback.
All reactions