Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling the USB cable makes InternetCE crash #9

Open
MathisLav opened this issue Jan 17, 2024 · 5 comments
Open

Pulling the USB cable makes InternetCE crash #9

MathisLav opened this issue Jan 17, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@MathisLav
Copy link
Owner

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.

@MathisLav MathisLav added the bug Something isn't working label Jan 17, 2024
@MathisLav MathisLav self-assigned this Jan 17, 2024
@acagliano
Copy link

Also experiencing the same issue under the same circumstances with ECM device connection.

@mateoconlechuga
Copy link

Make sure you guys are using usb_RefDevice otherwise freed structures are passed to usbdrvce which will cause it to crash.

@MathisLav
Copy link
Owner Author

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.

@Tom-GARNIER
Copy link

Hi,
Did you find a solution now?

@MathisLav
Copy link
Owner Author

MathisLav commented May 29, 2024

As I said on Ti-Planet, it seems to be more of an usbdrvce issue. See CE-Programming/toolchain#484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants