Page 1 of 1

"Error Uploading" whenever trying to upload

Posted: Mon Nov 18, 2013 2:37 pm
by oconnellp
I have seen multiple users complain of this issue, but I haven't seen a fix yet.

I am trying to upload custom code using the wizard, but I get this message every time I attempt to upload:
The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Binary sketch size: 25,122 bytes (of a 258,048 byte maximum)
C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P\\.\COM3 -b115200 -D -V -Uflash:w:C:\Users\Paul\AppData\Local\Temp\build4166232450658356248.tmp\InitialInternalMemory.cpp.hex:i

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM3
Using Programmer : stk500v2
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.
I have a ReefAngel Plus and I have Arduino set to "ReefAngel Plus Controller" and "COM3". I have tested using the other controller board settings, but they don't work either.
I have tried using different USP slots but I still get the same result.
I have the USP cable connected just as it shows in the manual.

Can anyone help me figure out what's going on? This is getting very frustrating.
Thanks,
Paul

Re: "Error Uploading" whenever trying to upload

Posted: Mon Nov 18, 2013 2:52 pm
by rimai
Does the controller reboot a few seconds after you hit upload?

Re: "Error Uploading" whenever trying to upload

Posted: Mon Nov 18, 2013 4:09 pm
by oconnellp
Yes, it does.

Re: "Error Uploading" whenever trying to upload

Posted: Tue Nov 19, 2013 5:26 pm
by oconnellp
Any idea what's going on?

Re: "Error Uploading" whenever trying to upload

Posted: Sat Nov 23, 2013 12:49 pm
by oconnellp
Anyone?

One thing I noticed is that my cable is not wired exactly like to cable in the picture. The cable in the picture is wired Green - Yellow - Orange - Red - Brown - Black. My cable is wired Green - Orange - Yellow - Red - Brown - Black. Could this be what the issue is?

Re: "Error Uploading" whenever trying to upload

Posted: Sat Nov 23, 2013 1:32 pm
by rimai
I may very well be.
The cable may have been assembled wrong. Can you switch?

Re: "Error Uploading" whenever trying to upload

Posted: Sun Nov 24, 2013 5:14 am
by oconnellp
I'm not quite sure how. Will I need any sort of crimping tool to do it?

Re: "Error Uploading" whenever trying to upload

Posted: Sun Nov 24, 2013 10:15 am
by rimai
No, no need to crimp anything. They are already crimped.
If you look at the black plastic connector, in the back, there are some latches that prevent the metal pin from sliding off. You can lift that latch and the pin will be free to slide off. Do this for both wires and reverse their order when you slide them back in.

Re: "Error Uploading" whenever trying to upload

Posted: Tue Nov 26, 2013 6:35 am
by oconnellp
Yep, that was the issue. I switched the wires into the correct sequence and it works fine now. Thanks for the help.