avrdude
avrdude copied to clipboard
[bug #44539] Avoid USB reconnect when running in VM
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
Interesting problem. With avrdude being cross-platform, I guess this is probably a niche use case.
Time has moved on, and we don't know whether this is still a desirable feature. Maybe close the issue for the time being?
Yes I agree.