Page 1 of 1

error uploading

Posted: Tue Jul 24, 2012 6:18 pm
by dtzreef
So, out of the gate. I'm trying to upload initial memory and first i get a "can't find com0" so I use COM3. Then I get "error uploading" message. Please help!!

Re: error uploading

Posted: Tue Jul 24, 2012 7:47 pm
by rimai
Do you have any other port available?
Which RA do you have?
You have to make sure to select the correct one on Tools->Boards.
Reef Angel w/ optiboot for the standard RA and Reef Angel Plus for RA+

Re: error uploading

Posted: Tue Jul 24, 2012 7:58 pm
by dtzreef
Just showing COM3 and pretty sure RA optiboot.

Re: error uploading

Posted: Tue Jul 24, 2012 8:55 pm
by rimai
Can you double check one setting?
Control Panel->System->Device Manager->Ports(COM & LPT)
Double-click "USB Serial Port (COM3)"
Go to "Port Settings" tab
Click "Advanced" button
Make sure that "Set RTS on Close" is checked.
This is usually taken care by the RA installer, but by the way you mentioned COM0 was initially selected, indicates that this may not have been correctly set by the RA installer.

Re: error uploading

Posted: Wed Jul 25, 2012 9:39 am
by dtzreef
I already checked that. I'm good there. Could it be that I have to generate the settings in RAGen before I upload the code in Aduino. If that is the case it was not very clear in the Tutorials or maybe I'm just an idiot. (the later is probably the case). Should I just Unistall and reinstall then generate in RAGen then upload in Aduino. Thanks

Re: error uploading

Posted: Wed Jul 25, 2012 2:20 pm
by rimai
You don't need RAGen to upload code.
Does your controller reboot when the message "Rebooting Reef Angel Controller" shows on the screen?

Re: error uploading

Posted: Wed Jul 25, 2012 5:15 pm
by dtzreef
I haven't received a reboot message.

Re: error uploading

Posted: Wed Jul 25, 2012 5:25 pm
by rimai
When you click upload, there is a log of what is happening at the bottom in red.
Can you copy and paste here?

Re: error uploading

Posted: Wed Jul 25, 2012 7:17 pm
by dtzreef
Okay, how do I do that? I can copy and paste the program but I cannot copy the bottom part. I can tell you the last couple of lines.
using port:\\.\COM3
Using programmer:arduino
rebooting Reef Angel Controller
overriding baud rate: 115200
avrdude: send: 0 [30] [20]
avrdude: send: 0 [30] [20]
avrdude: send: 0 [30] [20]
avrdude:recv:
avrdude stk500_get sync():not in sync:resp=0x64

Re: error uploading

Posted: Wed Jul 25, 2012 7:31 pm
by rimai
You see where it says rebooting Reef Angel Controller.
That's what I was asking.

Re: error uploading

Posted: Wed Jul 25, 2012 7:53 pm
by dtzreef
I do see it. Should it reboot?

Re: error uploading

Posted: Wed Jul 25, 2012 8:14 pm
by rimai
Yes, it should reboot the controller when that message shows up. Does it do it?

Re: error uploading

Posted: Wed Jul 25, 2012 10:26 pm
by dtzreef
No, I get a flashing red led for a few seconds, nothing else.

Re: error uploading

Posted: Wed Jul 25, 2012 10:29 pm
by rimai
Yes, it is rebooting then.
Have you tried to used any other board?

Re: error uploading

Posted: Thu Jul 26, 2012 2:30 am
by dtzreef
No

Re: error uploading

Posted: Wed Aug 01, 2012 7:31 am
by dtzreef
Just wanted to post that Roberto tried to help me out remotely (freakin cool!!). But the problem ended up being the USB cable. He sent me a new one, received it in about two days, and now I'm up and running like a champ. VERY impressed so far!!!!!!!

Re: error uploading

Posted: Sat Aug 04, 2012 6:33 am
by Thavngr98
Roberto I got my RA yesterday and tried installing it today and I am having the same issues.

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Simple Menu
Binary sketch size: 6,812 bytes (of a 32,256 byte maximum)
C:\Program Files\Reef Angel Controller\hardware/tools/avr/bin/avrdude -CC:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -carduino -P\\.\COM3 -b115200 -D -Uflash:w:C:\Users\DMCJF\AppData\Local\Temp\build3283570312751371588.tmp\InitialInternalMemory.cpp.hex:i

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 : \\.\COM3
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.




Ive tried both the wizard and installer and got the same error



Hmm maybe my cable is ok. I was able to connect the WiFi module to my router.

Re: error uploading

Posted: Sat Aug 04, 2012 8:42 am
by rimai
Which RA did you order?
Make sure you have the correct board in menu Tools->Board

Re: error uploading

Posted: Sat Aug 04, 2012 8:45 am
by Thavngr98
The regular RA (not +) Im selecting RA cont w/optiport

Re: error uploading

Posted: Sat Aug 04, 2012 8:54 am
by rimai
Ok, you are good in there.
Can you check if you have multiple serial ports?
menu Tools->Serial Ports
If you have more than one, try the other ones.

Re: error uploading

Posted: Sat Aug 04, 2012 9:02 am
by Thavngr98
I tried com1 also but its shouldnt be that anyways. It recognized the cable on port 3 during the installation.

Re: error uploading

Posted: Sat Aug 04, 2012 11:03 am
by Thavngr98
Id like to again thank Roberto for helping me on his day off!