Hi guys!
Been at this for a few hours now trying to get my Ender 5 3D printer to upgrade the latest Marlin firmware. I've been following this guide Ender 5 bootloader and Marlin update - YouTube and I'm stuck on the last section where i'm using Arudino IDE to upload it to my Ender5.
Here is the error messages that I have been getting.
Arduino: 1.8.10 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\mickb\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mickb\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mickb\OneDrive\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -ide-version=10810 -build-path C:\Users\mickb\AppData\Local\Temp\arduino_build_259691 -warnings=none -build-cache C:\Users\mickb\AppData\Local\Temp\arduino_cache_740171 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\mickb\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Users\mickb\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\mickb\AppData\Local\Temp\Rar$DIa7008.22900\Marlin\Marlin.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\mickb\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\mickb\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\mickb\OneDrive\Documents\Arduino\libraries -fqbn=Sanguino:avr:sanguino:cpu=atmega1284p -ide-version=10810 -build-path C:\Users\mickb\AppData\Local\Temp\arduino_build_259691 -warnings=none -build-cache C:\Users\mickb\AppData\Local\Temp\arduino_cache_740171 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=C:\Users\mickb\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=C:\Users\mickb\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\mickb\AppData\Local\Temp\Rar$DIa7008.22900\Marlin\Marlin.ino
Using board 'sanguino' from platform in folder: C:\Users\mickb\AppData\Local\Arduino15\packages\Sanguino\hardware\avr\1.0.3
Using core 'arduino' from platform in folder: C:\Program
Detecting libraries used...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega1284p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\mickb\\AppData\\Local\\Arduino15\\packages\\Sanguino\\hardware\\avr\\1.0.3\\variants\\sanguino" "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\sketch\\Marlin.ino.cpp" -o nul
Generating function prototypes...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega1284p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\mickb\\AppData\\Local\\Arduino15\\packages\\Sanguino\\hardware\\avr\\1.0.3\\variants\\sanguino" "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\sketch\\Marlin.ino.cpp" -o "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/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=atmega1284p -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_AVR_SANGUINO -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Users\\mickb\\AppData\\Local\\Arduino15\\packages\\Sanguino\\hardware\\avr\\1.0.3\\variants\\sanguino" "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\sketch\\Marlin.ino.cpp" -o "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\sketch\\Marlin.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\mickb\AppData\Local\Temp\arduino_cache_740171\core\core_Sanguino_avr_sanguino_cpu_atmega1284p_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together...
"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega1284p -o "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691/Marlin.ino.elf" "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691\\sketch\\Marlin.ino.cpp.o" "C:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691/..\\arduino_cache_740171\\core\\core_Sanguino_avr_sanguino_cpu_atmega1284p_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\\Users\\mickb\\AppData\\Local\\Temp\\arduino_build_259691" -lm
C:\Users\mickb\AppData\Local\Temp\cc35WKWS.ltrans0.ltrans.o: In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Sanguino.
If this is a really simple thing that I am missing then I apologise but any help would be greatly appreciated !