Skip to content

Leonardo 32U4: Injecting extracurricular delays caused by outside influences unbeknownst to the Arduino IDE suffers timeout. #9353

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

Open
NonaSuomy opened this issue Oct 25, 2019 · 0 comments
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug

Comments

@NonaSuomy
Copy link

NonaSuomy commented Oct 25, 2019

Running Arduino IDE on Linux is not an issue, everything seems to work good there.

It's pretty much similar to the issue here: #3495 except with the addition of extracurricular delays caused by outside influences unbeknownst to the Arduino IDE causing a timeout.

I've yet to test a regular Arduino with the 2 methods here: http://nonasuomy.github.io/Arduino-Remote-Upload/

The 32u4 with it's special case of the delay way it connects to serial with the IDE seems to be the issue.

Maybe having definable delays as an option. If you know it takes X time for USB/IP and Services to reconnect. Instead of hardcoded wait timeouts.

I tried to recompile the IDE by manually changing the delays set, but then hit another error about the butterfly programmer failing as I wasn't really sure what I was doing to begin with... trial and error.

It found the port again though after massively increasing the hardcoded delays to 20000 maybe I increased another delay that dealt with how it picks up the butterfly programmer.

I edited these three values to 20,000 leagues under the sea.

https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java#L213

https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java#L232

https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java#L269

Any suggestions in getting USBIP https://wiki.archlinux.org/index.php/USB/IP and or QEMU/Libvirt working with the Leonardo 32U4 are welcome!

Originally posted by @NonaSuomy in #3495 (comment)

@NonaSuomy NonaSuomy changed the title Lenardo 32U4 Injecting extracurricular delays caused by outside influences unbeknownst to the Arduino IDE suffers timeout. Leonardo 32U4: Injecting extracurricular delays caused by outside influences unbeknownst to the Arduino IDE suffers timeout. Oct 25, 2019
@per1234 per1234 added the Component: Uploading Uploading programs to an Arduino board label Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Uploading Uploading programs to an Arduino board Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants