Hello!
My computer runs Ubuntu 14.04 and I'm having issues uploading a program to my Arduino UNO R3.
The code I use is mostly written in C++ and uses cmake to create dependencies through a CMakeLists.txt file. Everything is compiling smoothly using simply "cmake". I then use the command "sudo make upload" to upload the program to my Arduino board, however I get an error message that looks like this:
valentine@valentine-ThinkPad-T420:~/Documents/ProjetGTE/projet-geothermie2A11/arduino/arduino/build$ sudo make upload
[sudo] password for valentine:
[ 28%] Built target ethernet_CORE
[ 91%] Built target ethernet_StandardCplusplus
[100%] Built target geothermie
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
avrdude done. Thank you.
make[3]: *** [CMakeFiles/geothermie-upload] Error 1
make[2]: *** [CMakeFiles/geothermie-upload.dir/all] Error 2
make[1]: *** [CMakeFiles/upload.dir/rule] Error 2
make: *** [upload] Error 2
I tested, with and without the Arduino plugged and I get the same error message so I assumed the computer didn't really recognize the Arduino board. I'm doing this for a school project that I'm taking on from a previous group, so I haven't written the actual Arduino code and I'm quite new to the whole thing. If you want me to execute any command and give you the output, I can do that.
Thanks for your help.