-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[linux] Killing avrdude disables autoreset #3569
Comments
It seems it even happens when avrdude fails and then exits by itself,
(This was using an Arduino Uno and the Debian avrdude 6.1) Interestingly the avrdude source code doesn't mention HUPCL/hupcl at I wonder if this should be reported at avrdude instead? |
Assigning to @cmaglie as this goes a bit beyond my expertise |
It makes my 32u4 hang totally on some sketches. Its pretty weird. It seems that sometimes it doesnt put the magic key in ram and just reboots. I have to admit that I use my HoodLoader2 as bootloader but this shouldnt matter. If I cannot my arduino as ACM1 it works. ACM0 is broken. somehow avrdude breaks it totally if it hangs and get a force kill. I generated this problem with hyperion (ambilight program). I opened the serial port with this and then tried to upload. Sometimes it works, sometimes not. And over the days I got this error now. As said ACM1 has no such problem so its related to the avrdude failure. In this case, with a 32u4, the patch above does not work. You need to leave the avrdude process running to force the arduino connect under a new number or reboot. Putting the arduino manually into bootloader mode and then hitting upload works though. Just the reset not. I guess the dtr state is triggered badly so the watchdog will be reverted or whatever. |
@cmaglie, I think this is an issue we should also take up with avrdude upstream soon. I'm running into this issue pretty often lately, and seen it happen with other people as well. It wouldn't surprise me if a lot of persistent upload failures on Linux are caused by this. |
If you have an issue like #3568 where you have to kill the avrdude process it will disable autoreset.
You have to manually activate it again:
stty -F /dev/ttyACM0 hupcl
The text was updated successfully, but these errors were encountered: