i have two arduino leonardos, one original and one from keyestudio. The original one has a broken bootloader, so i followed the tutorial for using an arduino as a programmer for another arduino.
When i go to upload the example to the keyestudio leonardo, it says error compiling for board arduino leonardo with this error message:
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino Leonardo"
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\CDC.cpp: In member function 'available':
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\CDC.cpp:187:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files/windowsapps/arduinollc.arduinoide_1.8.19.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Leonardo.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Mm, I might be wrong about using it to burn a Leonardo. I was confusing it with a SAM board. If the ArduinoISP sketch works on it, don't know.
What I do see is the use of the AppStore version of the Arduino IDE. And it would not be the first time that version is just messed up / broken... Try uninstalling it and downloading the version from here.
i tried it again with the arduino ide from the website, and it uploaded, but when burning the bootloader it said this:
Arduino: 1.8.8 (Windows 10), Board: "Arduino Leonardo"
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
Error while burning bootloader.