Uploading issues w/ compilation

Hi I’m super new to this and I’m just trying to get the board up and running but keep running into a brick wall. When I try to upload I keep getting the below message. Any direction or help would be great!

C:\Users\zkuhl\AppData\Local\Temp\ccinNTr4.ltrans0.ltrans.o: In function read': C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:26: undefined reference to Serial’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:26: undefined reference to Serial' C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:26: undefined reference to HardwareSerial::read()’
C:\Users\zkuhl\AppData\Local\Temp\ccinNTr4.ltrans0.ltrans.o: In function available': C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:22: undefined reference to Serial’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:22: undefined reference to Serial' C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:22: undefined reference to HardwareSerial::available()’
C:\Users\zkuhl\AppData\Local\Temp\ccinNTr4.ltrans0.ltrans.o: In function write': C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:11: undefined reference to Serial’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:11: undefined reference to Serial' C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:11: undefined reference to HardwareSerial::write(unsigned char)’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:12: undefined reference to Serial' C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:12: undefined reference to Serial’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/SimavrSerial.cpp:12: undefined reference to HardwareSerial::flush()' C:\Users\zkuhl\AppData\Local\Temp\ccinNTr4.ltrans0.ltrans.o: In function global constructors keyed to 65535_0_Axis.cpp.o.5002’:
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/Axis.h:21: undefined reference to String::String(char const*)' C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/Axis.h:21: undefined reference to String::String(char const*)’
C:\Users\zkuhl\AppData\Local\Temp\ccinNTr4.ltrans0.ltrans.o: In function __static_initialization_and_destruction_0': C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/GCode.cpp:25: undefined reference to String::~String()’
C:\Users\zkuhl\OneDrive\Desktop\Firmware-1.26\cnc_ctrl_v1/GCode.cpp:24: undefined reference to String::~String()' c:/users/zkuhl/appdata/local/arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/lib/avr6/crtatmega2560.o:(.init9+0x0): undefined reference to main’
collect2.exe: error: ld returned 1 exit status

Compilation error: exit status 1

Looks like you are using windows and you are compiling code for the arduino Mega 2560 controller.

Is this error within the arduino IDE or are you trying to use platformIO in vscode?

If arduino IDE, often the dependency error occurs when the firmware .ino file is opened from within a zip file. If you extracted the zip file and are still having this error, then it may be that you have selected the wrong compile target or have not selected one and it is defaulting to the uno. Do you have arduino mega 2560 selected as the device to compile to? There is a guide in the wiki area that walks through step by step how to do most of this here.

If you are using an M2 controller, this firmware version won’t work.

1 Like

sounds as if you don’t have the proper comm port defined to communicate with the
maslow.

David Lang