Go Down

Topic: Board-change issues- Can't return to UNO (Read 324 times) previous topic - next topic

willPsi

Aug 04, 2016, 08:24 pm Last Edit: Aug 04, 2016, 09:33 pm by willPsi
Hi all, I've been burning some code to DigiSpark and then running an Arduino behind it to more easily get serial data.  However, I've found that once I choose the Board "Digispark (Default 16.5MHz)" and upload anything to it, the IDE cannot communicate with the UNO R3 anymore.  I get the error


C:\xxxxx\core\WInterrupts.c.o
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

exit status 1
Error compiling for board Arduino/Genuino Uno.


The only solution which works is to uninstall the IDE, delete all data from /Users/AppData/Arduino15/ and start over.  And that works fine, I'm back uploading to the Uno.. until I use DigiSpark.  Which for now is the center of my project lol.

Any help appreciated!  Would def like to use them in tandem

pert

Please do this:
  • Tools > Preferences > Show verbose output during > compilation
  • Sketch > Compile/Verify
  • When if fails click the "Copy error message" button on the right side of the orange bar
  • Paste the error messages in a message here using code tags(</> button on the toolbar).

willPsi

#2
Aug 04, 2016, 10:12 pm Last Edit: Aug 04, 2016, 10:20 pm by willPsi
Hi pert thanks.  Here's the full printout.  I also wanted to add, this happened during compilation, not uploading.  Thanks!
edit: also, digiSpark is working continually even after Uno hits this snag, and I switch back

Arduino: 1.6.10 (Windows 10), Board: "Arduino/Genuino Uno"

Code: [Select]
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\will\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\will\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\will\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\will\Documents\Arduino\photo1\photo1.ino"
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware "C:\Program Files (x86)\Arduino\hardware" -hardware "C:\Users\will\AppData\Local\Arduino15\packages" -tools "C:\Program Files (x86)\Arduino\tools-builder" -tools "C:\Program Files (x86)\Arduino\hardware\tools\avr" -tools "C:\Users\will\AppData\Local\Arduino15\packages" -built-in-libraries "C:\Program Files (x86)\Arduino\libraries" -libraries "C:\Users\will\Documents\Arduino\libraries" -fqbn=arduino:avr:uno -vid-pid=0X2A03_0X0043 -ide-version=10610 -build-path "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\will\Documents\Arduino\photo1\photo1.ino"
Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\sketch\photo1.ino.cpp" -o "nul"
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\sketch\photo1.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\sketch\photo1.ino.cpp" -o "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\sketch\photo1.ino.cpp" -o "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\sketch\photo1.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\core\wiring_pulse.S.o"
"C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5/bin/avr-gcc" -c -g -Os -w -std=gnu11 -ffunction-sections -fdata-sections -MMD -flto -fno-fat-lto-objects -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10610 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\WInterrupts.c" -o "C:\Users\will\AppData\Local\Temp\builda38bd34b8b5fd6c479a52b4467b51b6c.tmp\core\WInterrupts.c.o"
cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.

exit status 1
Error compiling for board Arduino/Genuino Uno.

pert

Delete the folder C:\Users\will\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.8.1-arduino5 and then restart the Arduino IDE.

The problem is there is a bug in all Arduino IDE versions using Arduino AVR Boards 1.6.12. When you install DigiSpark or most any other 3rd party boards it installs an older version of avr-gcc. Arduino AVR Boards 1.6.12 is incompatible with this version but the IDE uses it. By deleting the old version you force the IDE to use the new avr-gcc version.

willPsi

wow that's a big help!  Thanks for my Arduino back :)

Go Up