Error on Upload

The USBDroid provides USB Host functionality for use as an Android peripheral as an Open Android Development Kit board. [Product page]
Post Reply
monochrome
Posts: 2
Joined: Sat Jun 21, 2014 4:27 pm

Error on Upload

Post by monochrome » Sat Jun 21, 2014 4:34 pm

New USBDroid R3, static precautions taken etc.
Computer sees Arduino and correct driver loaded.
When uploading a sketch, TX & RX flash accordingly, red LED (D13) flashes but I receive the following (after enabling verbose logging in preferences):

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [0d]
avrdude: stk500_getsync(): not in sync: resp=0x0d

avrdude done. Thank you.

At least it's polite.
Much googling shows a more common error to be 0x00 (no response).
I have selected the Arduino Uno from within the IDE and the comm port is set correctly (COM3).
Can't seem to find any info on 0x0d as a return code.
Anyone have any light they shed on this?
Many thanks guys.

angusgr
Freetronics Staff
Freetronics Staff
Posts: 853
Joined: Tue Apr 09, 2013 11:19 pm
Location: Melbourne, Australia
Contact:

Re: Error on Upload

Post by angusgr » Sun Jun 22, 2014 9:47 pm

Hi monochrome,

0x0d is the hexadecimal value of the carriage return character CR that's usually used at the end of a line (ie when using Serial.println() or similar.) (Ref: http://www.asciitable.com/ )

This implies that possibly the USBDroid isn't resetting properly when the Arduino commences the upload cycle? Although if you see D13 flicker a bit then this is usually a sign of the reset occuring.

As a test, try holding down the Reset button on the USBDroid and choosing "Upload", releasing the button at the exact moment that you see the upload begin (ie when the line "Using Port:" appears, or similar.) This might take a couple of tries.

If that doesn't work after 2-3 tries then there's a strong chance your board is missing its bootloader from the factory, or is otherwise faulty. You can flash the bootloader yourself if you have a programmer, but otherwise email support@freetronics.com and we'll arrange a replacement (or you can return it to a reseller if you purchased it there.)

- Angus

monochrome
Posts: 2
Joined: Sat Jun 21, 2014 4:27 pm

Re: Error on Upload

Post by monochrome » Thu Jun 26, 2014 2:37 pm

Thanks for your response Angus.
I returned the device and exchanged it for another.
All is good now.
Cheers

Post Reply