cancel
Showing results for 
Search instead for 
Did you mean: 

USB interrupt storm

ababo
Associate II
Posted on January 06, 2014 at 13:38

Hi,

I am developing an USB HID device with a STM32F4xx microcontroller, using the ST USB stack version.

When there are some data to send to host (PC), the device just puts the data into the buffer endpoint. During the time between this step and until the host polls the IN endpoint, the USB ISR is permanently interrupting the MCU, and therefore is MCU stays stuck during this time!!

Is this a bug in USB stack or is there any solution for this problem???

Thanks :)

#stm32f4xx #hid #usb
4 REPLIES 4
os_kopernika
Associate II
Posted on January 06, 2014 at 15:19

USB triggers IRQ because of several configurable reasons. For example on receive, on transmit, on frame error, on 3 missed SOFs, on .......

Which ones did you enable? Which reason triggers so often?

os_kopernika
Associate II
Posted on January 06, 2014 at 15:20

Buggy forum software

ababo
Associate II
Posted on January 07, 2014 at 10:52

Hi chinzei.tsuneo

Thanks for your post!

It works perfectly.

Thank you :)