-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
avrdude write/erase to USB MCU (using avr109) not working #87
Comments
I am pretty sure it is on your side. Check the arduino ide. You can turn on verbose mode and check their command line of avrdude and see what the ide uses to flash a sketch to the 16u2. You can compare that with your command. |
Using serial port named "Arduino Uno" COM30 immediately after fresh HEX HoodLoader2 upload I got this log and it is working, no problem here:
But then, if I use serial port "HoodLoader2 16u2" COM31, I got this error log:
I know that the speed of the 57600 serial port is for programming as stated in the documentation, and it works. Although I'm able to switch to "Arduino Uno" with a quick double reset and use avrdude with AVR109 and speed 57600, it's not the procedure described in documentation with the 1200 speed, which just doesn't work. What exactly should happen after opening the serial port at 1200? Can you provide me your logs please? |
1200 should reset the MCU as far as i know, so it will enter the bootloader mode. It turns out the reset does not work for you and you'd need to manually enter the bootloader mode. I currently also do not know why this happens to you. |
After successfully uploading the sketch to the USB MCU, I remember the RX LED on the Arduino flashing quickly. |
I tried to use this tutorial today, but without success.
Flash/erase firmwares(.hex files) with avrdude
HW:
SW:
Windows device details:
Windows device details after trying avrdude:
Linux device details:
Steps to reproduce (Windows):
avrdude.exe -C avrdude.conf -p atmega16u2 -c avr109 -b 1200 -P COM31 -e
from Flash/erase firmwares(.hex files) with avrdudeavrdude.exe: ser_drain(): read error: The I/O operation has been aborted because of either a thread exit or an application request.
Logs:
Notes:
Is the error on my side or does it work for someone else?
The text was updated successfully, but these errors were encountered: