Compile errors: timeout/time.h/COM prot in use error
Note: if you use MAC OS and seeing this error, I suggest you to try win7 agian, some people had the same problem in MAC but can upload it successfully in win7! Also if you use Mac and didn't disconnect the printer from the repetier host when uploading your firmware, the arduino will give you "time out" error too.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
1.1Check the board type and COM port. You should select the correct board type here(example: GT2560): 1.2 Unplug all the other parts on the board except the USB cable, then try to upload it again, sometimes the I/O pins will be occupied by the other parts.
1.3 Check the crystal oscillator, see if there's bad contact or not, you can try to resolder it. I have test it with my board, remove it and it will get the timeout error. And the LCD will show two blocks when it is removed. The crystal oscillator might be damaged during the transportation or have empty solder.
1.4 ATmega bootloader
The AVR is not executing the bootloader for some reason. If the programmer is not resetting the micro before attempting to connect, this might be the reason. Try to reset the AVR (press and release the button) while the programmer is attempting to connect. Sometimes software that runs in a tight loop will prevent the bootloader from connecting.
you can refer to the link here to reburn the bootloader:
https://www.arduino.cc/en/Tutorial/Ardu ... y2_QfldW_s
Error of time.h when compiled with GT2560：
“qr_solve.cpp:7:18: fatal error: time.h: No such file or directory
#include <time.h>compilation terminated.Error compiling.”
Choose board type arduino mega, and the correct COM port. Have tried different versions of arduino and windows, mac OS, the same result.
Possible reason: caused by the version of the arduino, losing the time.h file or something.
Try to use arduino1.0.1,it has the time.h library that others don’t, otherwise you must add it by yourself.
Download the arduino 1.0.1 here:
http://www.geeetech.com/forum/viewtopic ... 13&t=17181
3. "COM port already in use"
If you run into this error when compling, this means your COM port is occupied by some unknown softwares, you can try the following ways:
1. Since you didn't know which software is using the COM port, so we can use another way to connect to the COM port and disconnect it to unlock the COM port.
In most circumstances, you can open the repetier host, click “connect" to connect the printer, after the button turned green and then disconnect it agian, the COM port will be free now and you can try to reupload the firmware again.
2. If you have installed the server function of the repetier host, then it will cause this error, you need to close it on the menu bar.
3.Find a pure win7 PC that has little other softwares, maybe install a new win7 in the virtual machine to try it agian, see if it works.