avrdude icon indicating copy to clipboard operation
avrdude copied to clipboard

[bug #44539] Avoid USB reconnect when running in VM

Open avrs-admin opened this issue 3 years ago • 1 comments

Michael Lipp [email protected] Sat 14 Mar 2015 01:51:51 PM UTC

This is rather an enhancement request than a bug report.

When executing a sign off command, jtagmkII and dragion do a hard reset by default. This also implies re-discovery of the usb device. While this isn't a big problem when attaching those devices to your computer directly, it becomes a big problem when using avrdude in a Virtual Machine.

There, on every sign-off, the hosts detects the removal of a USB device, signals it to the guest, then detects a new USB device, and signals it to the guest. This can take up to 5 seconds.

Both devices offer the possibility to modifiy the behaviour of sign-off to a "soft reset", thus avoiding that lengthy cycle. The appended patch forces this by passing "-x soft-reset" on the command line.

file #33340: avrdude-soft-reset.patch

This issue was migrated from https://savannah.nongnu.org/bugs/?44539

avrs-admin avatar Dec 10 '21 22:12 avrs-admin

Interesting problem. With avrdude being cross-platform, I guess this is probably a niche use case.

mcuee avatar May 29 '22 03:05 mcuee

Time has moved on, and we don't know whether this is still a desirable feature. Maybe close the issue for the time being?

stefanrueger avatar Jun 12 '23 13:06 stefanrueger

Yes I agree.

mcuee avatar Jun 12 '23 13:06 mcuee