I have been trying to update the firmware on my Creality CR-10 mini following this video.
The bootload went great that I know of, but when I go to upload the sketch I get an "Error compiling for board Sanguino." when it is compiling, here's the error message.
Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\Danielle\AppData\Local\Temp\arduino_cache_593877\core\core_Lauszus-Sanguino-4aa3893_avr_sanguino_cpu_atmega1284p_2d130bcb3f6db4d95b86ab65400f8448.a
Linking everything together...
"C:\Users\Danielle\Documents\ArduinoData\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega1284p -o "C:\Users\Danielle\AppData\Local\Temp\arduino_build_560667/Marlin.ino.elf" "C:\Users\Danielle\AppData\Local\Temp\arduino_build_560667\sketch\Marlin.ino.cpp.o" "C:\Users\Danielle\AppData\Local\Temp\arduino_build_560667/..\arduino_cache_593877\core\core_Lauszus-Sanguino-4aa3893_avr_sanguino_cpu_atmega1284p_2d130bcb3f6db4d95b86ab65400f8448.a" "-LC:\Users\Danielle\AppData\Local\Temp\arduino_build_560667" -lm
C:\Users\Danielle\AppData\Local\Temp\ccepRe7f.ltrans0.ltrans.o: In function `main':
C:\Users\Danielle\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Users\Danielle\Documents\ArduinoData\packages\arduino\hardware\avr\1.6.21\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.
I removed a lot of the error message to fit the 9000 characters limit, tell me if you need any more of it. I found the "main.cpp" file and opened it in a text editor and I did find the the undefined setup and loop but I didn't know what to change.
#include <Arduino.h>
// Declared weak in Arduino.h to allow user redefinitions.
int atexit(void (* /func/ )()) { return 0; }
// Weak empty variant initialization function.
// May be redefined by variant files.
void initVariant() attribute((weak));
void initVariant() { }
void setupUSB() attribute((weak));
void setupUSB() { }
int main(void)
{
init();
initVariant();
#if defined(USBCON)
USBDevice.attach();
#endif
setup();
for (;; ) {
loop();
if (serialEventRun) serialEventRun();
}
return 0;
}
I have tried changing the Arduino AVR version to 1.16.21 and it didn't fix the problem.
I know that I probably shouldn't put this on here being a Arduino forum due to it not being a Arduino board and I greatly appreciate any help or recommendations. Thanks
main.cpp (1.34 KB)