Hello,
I have an Arduino Uno WiFi Rev2 that I am trying to upload code to. This board was updated to the new firmware version (1.5.0). I did a fresh install of Arduino on my computer and I am using the Arduino megaAVR Board that was installed when I connected my board to the computer.
Every time I try to verify a simple code or upload it to the board, I always get an error. I tried the basic examples like the Blink, but I still get the error. I have tried every single option in the basic examples and still can't seem to find the problem. I have already changed the cable I am using to connect to the board, but still nothing. I have also reset the board multiple times.
(Sorry if this is not in the right category)
ERROR:
FQBN: arduino:megaavr:uno2018
Using board 'uno2018' from platform in folder: C:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8
Using core 'arduino' from platform in folder: C:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8
Detecting libraries used...
C:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/deprecated -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\variants\uno2018 C:\Users\pedro.moreira\AppData\Local\Temp\arduino\sketches\64382F96FCE5A0508669838416BD5C71\sketch\Blink.ino.cpp -o nul
Generating function prototypes...
C:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/deprecated -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino -IC:\Users\pedro.moreira\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\variants\uno2018 C:\Users\pedro.moreira\AppData\Local\Temp\arduino\sketches\64382F96FCE5A0508669838416BD5C71\sketch\Blink.ino.cpp -o C:\Users\pedro.moreira\AppData\Local\Temp\3984212690\sketch_merged.cpp
C:\Users\pedro.moreira\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\pedro.moreira\AppData\Local\Temp\3984212690\sketch_merged.cpp
Compiling sketch...
"C:\\Users\\pedro.moreira\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO_WIFI_REV2 -DARDUINO_ARCH_MEGAAVR -DUNO_WIFI_REV2_328MODE -DMILLIS_USE_TIMERB3 "-IC:\\Users\\pedro.moreira\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.8\\cores\\arduino/api/deprecated" "-IC:\\Users\\pedro.moreira\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.8\\cores\\arduino" "-IC:\\Users\\pedro.moreira\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.8\\variants\\uno2018" "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71\\sketch\\Blink.ino.cpp" -o "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71\\sketch\\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\pedro.moreira\AppData\Local\Temp\arduino\sketches\64382F96FCE5A0508669838416BD5C71\core\variant.c.o
Using precompiled core: C:\Users\pedro.moreira\AppData\Local\Temp\arduino\cores\arduino_megaavr_uno2018_mode_on_20b77de573fc40e2f6d91683de4ac6a7\core.a
Linking everything together...
"C:\\Users\\pedro.moreira\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino5/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -Wl,--section-start=.text=0x200 -mmcu=atmega4809 -o "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71/Blink.ino.elf" "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71\\sketch\\Blink.ino.cpp.o" "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71\\core\\variant.c.o" "C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71/..\\..\\cores\\arduino_megaavr_uno2018_mode_on_20b77de573fc40e2f6d91683de4ac6a7\\core.a" "-LC:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71" -lm "-Wl,-Map,C:\\Users\\pedro.moreira\\AppData\\Local\\Temp\\arduino\\sketches\\64382F96FCE5A0508669838416BD5C71/Blink.ino.map"
c:/users/pedro.moreira/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avrxmega3/crtatmega4809.o:../../../../crt1/gcrt1.S:310: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1