Skip to content

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

Open
@NonaSuomy

Description

@NonaSuomy

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions