internetce
internetce copied to clipboard
Pulling the USB cable makes InternetCE crash
The program crashes when the USB connection is closed unexpectedly (cable pulled...).
It only happens after the calculator called usb_SetConfiguration(). From that moment, pulling the cable causes the stack to be corrupted.
It seems that it's more of an USBDRVCE issue but still, it would be nice to find a workaround for this.
Also experiencing the same issue under the same circumstances with ECM device connection.
Make sure you guys are using usb_RefDevice otherwise freed structures are passed to usbdrvce which will cause it to crash.
I tried to use it but it didn't fix the issue unfortunately. Actually, I'm not even receiving a disconnected event as for me. The calculator crashes just after the cable is pulled, in the next execution of usb_handleEvents() I would say.
Hi, Did you find a solution now?
As I said on Ti-Planet, it seems to be more of an usbdrvce issue. See https://github.com/CE-Programming/toolchain/issues/484