Trying to work with the APC220, arduino stopped working:
avrdude: stk500_getsync(): not in sync: resp=0x00
Cannot download anything, including blink…
When did it happen: I was trying the APC220 sample program I found on the web (arduino.cc/cgi-bin/yabb2/…num=1278120259) , and opened the serial monitor. Nothing happened. While everything connected I change the baud rate on the serial monitor (between 19,200 to 9,600) trying to see if it makes any change. A few more tries, and then when I tried to download the program again - the above message appeared.
I checked the port for the USB in the device manager and that it is the same as in the Arduino IDE, I unplugged all cables, and then connected again, I tried pressing “reset” just after compilation complete – nothing happen, still the same error.
I reset the computer, and connected the usb cable to different usb port, changed port on device (and on arduino IDE) – still nothing.
The arduino is part of the Nexus 4WD mecanum wheel robot kit.
Currently I am stuck and cannot do anything with it.
Yes, I need help.
The APC is disconnected from the both the module and the computer. Also when downloaded the sample program for APC, the APC was not connected until after the download completed and the USB cable was disconnected.
Anyhow, now I cannot download anything, including even the simple “blink” program.
I verified the port number using tools>port and the device manager. I also changed the port on the device manager, and then changed accordingly on the arduino IDE.
I tried reset for the arduino, and later tried reset for the computer.
if the same thing happens to you - what helped me was to download what is called bootloader, and it can be done with the unit itself without the need for any special hardware.
It is important to note that you cannot program the Arduino while the APC220 module is connected (because it interferes in the serial lines), nor can you program the Arduino directly through the module.
If we understand correctly, you have been able to upload you sample code and now you cannot upload any other code.
It seems your code is interfering with the programming. You will need to keep trying to reset it just after the compilation is done in order to get it to program properly again.
Also, make sure all jumpers and any additional connections are not interfering with the RX and TX lines.