Unable to upload sketch to Due

I obtained my first Arduino yesterday and I am unable to upload a sketch.

I am using a Due which I think is genuine. The chip is marked Atmel ATSAM3X8E.

I am using version 1.6.5 of the IDE.

Under Tools, the IDE is set to Due.

The device drivers are right up to date.

The PC is running XP-Pro.

After successfully compiling the Blink sketch, it fails to upload.

I can see it trying to send as the Rx LED flashes then backs off
then after 10 attempts it gives up. The Tx LED does not light.

I then get the 10 error messages of the form:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x60

.....

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x60

The mini-USB is plugged into the programming port.

This is set to Port 14 in the IDE and I have checked in the device manager
and can see it is the correct device (Port 14 - Arduino Due programming port).

The baud rate is set to 9600, 8 bits, no parity, no flow control and 1 stop bit.

I have run the loopback test and it performs fine with data being sent back
to the serial monitor and both Tx & Rx LEDs flashing as expected.

Normally I do not have the Serial Monitor open when I am trying to upload.

I am totally new to the Arduino, but have worked on old computers for nearly 40 years.

Any help would be appreciated.

Andrew

Hello,

Welcome to arduino and the forums!

Weird, although I don't own any due there shouldn't be any problems uploading a working sketch. The problem you are getting is the same problem I am getting sometimes. I solve it simply by restarting th IDE. Also, are you sure it is genuine, just because the chip has the markings doesn't mean it's genuine.

Someone with a due would probably be able to respond and help you more but at least maybe this helps :slight_smile:

Have a great day!

Samuel

Just a few points I missed in the first post:

I get very similar results on my son's laptop (same version of IDE).

My PC tower is USB 1.2 and the laptop USB is 2.0.

I am powering the Arduino from the USB port. Is this OK?

When I first plug in the USB cable, the green "On" LED is solid on and
the yellow "L" Led also on solid on.

Once the upload is attempted the Rx flashes a couple of times and the
"L" LED starts to flash about 3 times per second. This continues until
power is removed from the board or the reset is pressed. After releasing
the reset the "L" LED carries on flashing at the same rate.

Is all of this normal with the Due?

With verbose errors messages switched on I get a message about
overriding the baud rate to 57600, followed by the "not responding message".

Thanks,

Andrew

Yes, it is totally fine using the USB port for power.

Weird problem you got, have you tried loopback? Instructions can be found at the top of the sub forum (a sticky thread) or here:

http://forum.arduino.cc/index.php?topic=73748.0

Samuel

Finally sorted the problem:

As a newbie, I confused the Due with the Duemilanove; I thought they were
the same board.

The Due was missing from the list of supported boards, but I noticed
the option for Board Manager undr Tools.

I had to download and install a separate package (about 85mB).

After this the Due board appeared in the list of supported boards.

Everything has been fine since.

Thanks for everyone's help and support.

Andrew

bouhamoum:
Unable to Upload sketch to my arduino BT :

I have an Arduino BT has no USB ports .when I upload my sketch through the bluetooth . I get this messge:

avrdude: stk500_getsync(): not in sync: resp=0x00

help me please !!

Make a new topic in the forums, then other people will help you.

ScarrAC:
Finally sorted the problem:

As a newbie, I confused the Due with the Duemilanove; I thought they were
the same board.

The Due was missing from the list of supported boards, but I noticed
the option for Board Manager undr Tools.

I had to download and install a separate package (about 85mB).

After this the Due board appeared in the list of supported boards.

Everything has been fine since.

Thanks for everyone's help and support.

Andrew

Haha I would never have thought about that. Good luck with your due!