Unable to update RA code

New members questions
Post Reply
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Unable to update RA code

Post 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!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Unable to update RA code

Post 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.
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Unable to update RA code

Post 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...
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Unable to update RA code

Post by rimai »

Which board do you have?
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Unable to update RA code

Post 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.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Unable to update RA code

Post 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?
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Unable to update RA code

Post by gaberosenfield »

I do not have wifi. The cable and connectors all look perfect and shiny; like new.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Unable to update RA code

Post by rimai »

Can you try a different computer?
If it still doesn't work, pm me for repair.
Roberto.
Post Reply