Problem uploading to board. Programmer not responding / not in sync.

Hey there! Wish You All A Happy New Year!

I recently bought a Pro Mini with a CP2102 Programmer. I am using Ubuntu 14.04. I have installed the Arduino IDE and the CP2102 drivers seem to be included with the Ubuntu version I am using but I am not sure whether the programmer is set up properly. Are there any additional drivers I need to install?

I am getting the errors mentioned in the title when uploading the Blink sketch.

This is how I have connected the programmer pins to the arduino:

  • Programmer----->Arduino
  • +5v -----> VCC
  • GND -----> GND
  • RX -----> TX
  • TX -----> RX
  • DTR ----->DTR
  • 3v3 ----->Not connected to any arduino pin.

IDE settings are as follows:

Tools > Board > Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328
Tools > Serial Port > /dev/ttyUSB0
Tools > Programmer> AVRISP mkII

This is the error text:

Binary sketch size: 1,056 bytes (of a 30,720 byte maximum)
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/build7703960194756301852.tmp/Blink.cpp.hex:i

avrdude: Version 6.0.1, compiled on Oct 21 2013 at 15:55:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/share/arduino/hardware/tools/avrdude.conf"
User configuration file is "/home/android/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.

I tried the fix mentioned here which included pressing the reset button on the arduino before packets are sent to the arduino. But, that does not seem to work. I am downloading the drivers for the programmer just to make sure that I have the latest one.

Btw, the TX led on the programmer flashes but there are no led flashes on the arduino. The arduino continues to blink the same way it does when connected to the PC before starting the IDE.

Can someone please help me solve this problem. Thanks for reading!

On Linux you need to be a member of the "right" groups to write to /dev/tty devices. On Arch it is both lock and uucp. You will need to check for your distribution.

You could also try the loopback test. Your wiring sounds OK though you don't actually say what you are connecting to, which is I presume a Pro Mini. Please confirm.

ChilliTronix:
On Linux you need to be a member of the "right" groups to write to /dev/tty devices. On Arch it is both lock and uucp. You will need to check for your distribution.

The TX led on the programmer flashes when the IDE tries to upload. Does this mean that the IDE is able to write and that I am a member of the "right" groups? Does "right" group mean being an admin because I am the Admin of the Ubuntu account I am using.

You could also try the loopback test. Your wiring sounds OK though you don't actually say what you are connecting to, which is I presume a Pro Mini. Please confirm.

I am connecting to the Pro Mini. Its not the original one by sparkfun. I will try the loopback test and let you know about the results.

I have no idea which groups you need to be a member of for Ubuntu, look it up. You can tell which groups you are a member of by going to s terminal window and typing groups.

I would strongly advise using Linux with users with root privileges. One of the main points of Linux is not having a hair trigger and no safety catch.

That said, the fact that LEDs blink may indicate that you have enough access. (Note "May").

ChilliTronix:
I have no idea which groups you need to be a member of for Ubuntu, look it up. You can tell which groups you are a member of by going to s terminal window and typing groups.

I would strongly advise using Linux with users with root privileges. One of the main points of Linux is not having a hair trigger and no safety catch.

That said, the fact that LEDs blink may indicate that you have enough access. (Note “May”).

Should I follow the instructions in this tutorial for the loopback test?

Sort of yes, but just don't connect the pro mini, just connect RX and TX together and that will check that you can use the serial part correctly.