-
Notifications
You must be signed in to change notification settings - Fork 147
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
Arduino Leonardo (ATmega32U4) as ISP problem under Windows (no problem under Linux) #971
Comments
More verbose log under Windows.
More verbose run log under Linux as a reference:
|
Hi @mcuee. I think the information here might provide the solution: arduino/ArduinoCore-avr#56 |
I actually tried to use Arduino and choose "Arduino as ISP (ATmega32U4)" as the programmer. But it failed no matter I want to upload the blinky sketch or try to burn the bootloader of the Uno's m328p. Error message from Arduino is similar.
|
@per1234 But it seems to work if I change the programmer type to "arduino".
Prorgamming a hex file seems to work as well.
|
I am not so sure if this is still revelant or not. But I was trying different older versions of Windows binary and they all seem to have the same error message.
The interesting output is from here
@mariusgreuel I guess this is not relevant now. Please confirm. |
So the question is whether "arduino" is the right programmer type or "avrisp" for "Arduino as an ISP (ATmega32U4)". |
I changed the title, as there is no issue under Windows, if I use the Uno as the ISP now that I have recovered it. Windows run log of using Arduino as ISP to program the ATmega32U4 on the Arduino Leonardo.
Interestingly it also works with "-c arduino". But I tend to believe that is not really using the Uno as an ISP, but rather the bootloader in the Arduino Leonardo.
|
Hm, not relevant to you, but to me. You broke my Leonardo auto-reset code! The heuristic looks for an Arduino, and when it is a composite devices, I assumed it needs resetting because it is running in sketch mode. That is true for your device as well, but you do not want to reset it but continue ISP programming. I guess I will need a custom switch for sketch resetting. I though I could get around that with a clever heuristic and not changing too much code. |
@mariusgreuel
Interesting. This is in your repo here (https://github.com/mariusgreuel/avrdude) and not in the main line avrdude, right? Going back to the reported issue (Arduino Leonardo as AVRISP does not work under Windows with I do not understand why The issue mentioned by @per1234 may shed some light as well -- it seems that they differentiate "Arduino as ISP" and "Arduino as ISP (ATmega32u4)". |
I think I will close this for now, as there is at least a work-around to use "arduino" as the programmer type. |
I accidentally erased the bootloader of my clone Arduino Uno (with CH340). And my AVRdragon is not with me right now.
So I am trying to use my other original Arduino Leonardo as avrisp programmer to program the Uno. Somehow it does not work under Windows 11 but works fine under Linux (Ubuntu 20.04) on the same laptop (dual boot).
HW connection is as per the following two pages.
https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP
https://aws1.discourse-cdn.com/arduino/original/4X/f/c/b/fcb9b63235272dfd987cb457d2de01c56026bb38.png
Windows run log (using official 7.0 Windows binary, but also same problem if using my own MSYS2 build binary).
Linux run log:
The text was updated successfully, but these errors were encountered: