Page 1 of 1

Unable to update RA code

Posted: Mon Jun 04, 2012 7:25 pm
by gaberosenfield
I've had my reef angel for about 4 months now. I've updated the code on it many times. Now, for some unknown reason, I can no longer upload any code to the controller. I recently unplugged my RA and plugged it back in, but that is all I have changed. When I try to upload code to the controller, the status light blinks, stays on, blinks again, and goes off before the code is uploaded. Here is the output I get from the command window:

Code: Select all

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

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

         Using Port                    : \\.\COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
Rebooting Reef Angel Controller
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: stk500_getsync(): not in sync: resp=0x64

avrdude done.  Thank you.

I have tried changing COM ports, unplugging the serial to USB cable and plugging it back in, and restarting my computer. What's going on? Help please!

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 7:47 pm
by rimai
Are you trying to upload in the same computer you had sucessfully uploaded in the past?
How many COM ports do you have?
The easiest way to find out which port you need to use is to write down the port, unplug the USB-TTL cable and check which one has been removed.
The one that was removed is the one you need to select to upload to the controller.

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 7:53 pm
by gaberosenfield
I did what you suggested, and it is COM 5, which is the port I was trying to use previously and have successfully used in the past. I have not changed computers...

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 8:05 pm
by rimai
Which board do you have?

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 8:26 pm
by gaberosenfield
I'm not sure, I've always selected reefangel with optiboot...more than that, I'm not sure. I bought it four months ago and there was only one option of head unit.

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 8:30 pm
by rimai
Yes, the board without optiboot is about 2 years old.
Could it be that the cable or connector got corrosion?
Do you have wifi?

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 8:45 pm
by gaberosenfield
I do not have wifi. The cable and connectors all look perfect and shiny; like new.

Re: Unable to update RA code

Posted: Mon Jun 04, 2012 9:53 pm
by rimai
Can you try a different computer?
If it still doesn't work, pm me for repair.