Question
OTG_FS_IRQHandler host fault when slave device removed during operation
Posted on January 09, 2012 at 17:14
Folks
has anyone come accross a fix for when the end user removes a USB slave device from a STM32F2XX while its part way through an read/write operation eg USB memstick plugged in and the user removes because they can. In testing I can now repeatadly cause a fault where the OTG_FS_IRQHandler is callled endlessly and this in effects locks up the system. At the moment I have a simple system that says if I get a certain number of consectutive ISR calls I reset the hardware but I am looking for a something a little more elegant. thanks Dan