Skip to content

add initial delay before attempting connection#92

Open
rursprung wants to merge 1 commit intoPaulStoffregen:masterfrom
rursprung:workaround-for-libusb-resource-temporarily-unavailable-error
Open

add initial delay before attempting connection#92
rursprung wants to merge 1 commit intoPaulStoffregen:masterfrom
rursprung:workaround-for-libusb-resource-temporarily-unavailable-error

Conversation

@rursprung
Copy link

this is a workaround for "Resource temporarily unavailable" encountered when using PlatformIO which runs teensy_loader_cli right after teensy_reboot.

see also this forum post: https://forum.pjrc.com/index.php?threads/how-to-flash-from-docker-container.77132/

rursprung added a commit to rursprung/teensy_loader_cli that referenced this pull request Jul 9, 2025
note that this does not fix PaulStoffregen#92, but it might help in other cases where
soft reboot failed.

hard reboot on the other hand always kills the program if it fails, so
this hasn't been modified.
rursprung added a commit to rursprung/teensy_loader_cli that referenced this pull request Jul 18, 2025
note that this does not fix PaulStoffregen#92, but it might help in other cases where
soft reboot failed.

hard reboot on the other hand always kills the program if it fails, so
this hasn't been modified.
this is a workaround for "Resource temporarily unavailable" encountered
when using PlatformIO which runs `teensy_loader_cli` right after
`teensy_reboot`.

see also this forum post: https://forum.pjrc.com/index.php?threads/how-to-flash-from-docker-container.77132/
@rursprung rursprung force-pushed the workaround-for-libusb-resource-temporarily-unavailable-error branch from 944f790 to 1098ebd Compare July 18, 2025 12:07
@rursprung
Copy link
Author

i had to extend the delay from 0.5s to 1s as it still sometimes ran into issues.

note: i used the teensy GUI tool to update the bootloader to the latest version (1.07) and it still encounters this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant