AnsweredAssumed Answered

Kinetis EHCI USB-Host 160ms Interrupt

Question asked by Johannes Schock on Jun 18, 2013
Latest reply on Sep 13, 2013 by Johannes Schock

I'm using USB-Host Mass Storage Device class of MQX 4.0.1. with K70 EHCI and I face the following problem:

When a memory stick is inserted, the function _usb_ehci_reset_and_enable_port is called by the ISR. Inside that function there are two loops which run for approximately 160ms (debounce for 100ms, wait for reset for 60ms). During that time the whole system is unresponsive because it stays inside an ISR.

I don't think it's a good idea to do 100ms debounce loops in RTOS interrupt routines.

Has someone already written a patch for that problem?

Perhaps we can use the uframe-interrupt...

 

Regards, Johannes

Outcomes