Arduino wont update k200 firmware
I have tried to load several variations of the Repetier firmware into Arduino for uploading to my k200. I get the following error. I uninstalled Arduino IDE and reinstalled it with no change. What's wrong?
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
sketch\Eeprom.cpp: In function 'initalizeUncached':
sketch\Eeprom.cpp:522: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/Genuino Mega or Mega 2560.
Error compiling for board Arduino/Genuino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
"Show verbose output during compilation"
option enabled in File -> Preferences.
Comments
Alternatively install a older version (all 1.8.x should work) with a different gcc version included.
You can also go to Eeprom.cpp line 522 and reorder the eprSetFloat lines. Order does not matter here. This is all to make compiler use a different compile path preventing compiler error. The file it self is ok.