Page 1 of 1
upload error help?
Posted: Thu Dec 01, 2011 1:24 pm
by ruckusman
I get this error when trying to upload the software to the controller
Binary sketch size: 29544 bytes (of a 30720 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 -cstk500v1 -P\\.\COM7 -b57600 -D -Uflash:w:C:\DOCUME~1\BRADHA~1\LOCALS~1\Temp\build2608742998993132637.tmp\ReefAngelSimple.cpp.hex:i
avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005
System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM7
Using Programmer : stk500v1
Overriding Baud Rate : 57600
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
avrdude done. Thank you.
any help?
Re: upload error help?
Posted: Thu Dec 01, 2011 2:21 pm
by rimai
It could be either wrong COM port or wrong board selection.
Are you using the optiboot bootloader?
Re: upload error help?
Posted: Fri Dec 02, 2011 6:28 am
by ruckusman
Yes, using optibot. It automatically chose com port 7. It said that was what it was when I plugged the cord in. I suppose I can try and reboot and use a different one and see if it changes.
Re: upload error help?
Posted: Fri Dec 02, 2011 8:55 am
by rimai
If you are using the optiboot, make sure that you have "Reef Angel Controller w/ optiboot" selected under Tools->Board.
According to the error code, it seems you have another board selected.
Re: upload error help?
Posted: Sat Dec 03, 2011 6:18 am
by ruckusman
I tried it with all three options. This may have been the error from one of the others. Trying some other things today. Looking online it seems some folks with xp get this sometimes. May try a different machine if I can't get it to work after a bit this am.
Re: upload error help?
Posted: Sat Dec 03, 2011 6:46 am
by binder
ruckusman wrote:I tried it with all three options. This may have been the error from one of the others. Trying some other things today. Looking online it seems some folks with xp get this sometimes. May try a different machine if I can't get it to work after a bit this am.
One of the keys that you have/had the wrong board selected is this one:
Binary sketch size: 29544 bytes (of a 30720 byte maximum)
With the optiboot controller, that value is 32256. Also, the fact that the COM port is being overridden with baudrate 57600 is another one because the optiboot controller uses baudrate 115200. This line tells us that the baudrate is being overridden:
Overriding Baud Rate : 57600
So those are the keys that make us think that the wrong board is being selected under the Tools menu.
I don't think it is just an XP error. Just some thoughts and comments.
curt
Re: upload error help?
Posted: Tue Dec 06, 2011 7:07 am
by ruckusman
It was the wrong board in this error, but I got it with the right board as well. That said, after re-booting the machine and closing all other applications I got it to upload to the controller.
I just uploaded the simple code. The controller still says demo on the screen though. Is that normal when you use the simple code with no changes?
Re: upload error help?
Posted: Tue Dec 06, 2011 9:03 am
by rimai
Great. That's a good start.
Yes, the preloaded code is just a demo software.
Even being demo, many other reefers still find it very complete and use it just like that as they don't require any changes.
If you would like more customization that the preloaded code offers, I'd recommend you looking into RAGen:
http://forum.reefangel.com/viewtopic.php?f=15&t=60
Re: upload error help?
Posted: Wed Dec 07, 2011 2:32 pm
by ruckusman
Its working well. I will check out the other stuff after I get everything up and running. Got to buy some longer cables for ph probe and temp prob's. My sump is plumbed to another room than tank.
Re: upload error help?
Posted: Wed Dec 07, 2011 2:35 pm
by ruckusman
are there extensions for the float switches?
Re: upload error help?
Posted: Wed Dec 07, 2011 2:56 pm
by rimai
No, you can use any type of wire to extend those.
Re: upload error help?
Posted: Mon Dec 26, 2011 5:12 pm
by Nikkwins
ruckusman wrote:It was the wrong board in this error, but I got it with the right board as well. That said, after re-booting the machine and closing all other applications I got it to upload to the controller.
I just had the exact same problem with my XP machine, everything appeared to be set correctly but it just wouldn't take the code. I tried rebooting after reading this thread and it worked. Thanks!
-Nick
Re: upload error help?
Posted: Sun Jan 08, 2012 1:55 pm
by ruckusman
back to this error and rebooted about 10 times. Tried it with the usb cord in and out, just won't send it up....trying to upload the wifi code to get it to broadcast. Can't upload the regular library that I got to go up fine before after rebooting either....
Binary sketch size: 29306 bytes (of a 32256 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 -cstk500v1 -P\\.\COM7 -b115200 -D -Uflash:w:C:\DOCUME~1\BRADHA~1\LOCALS~1\Temp\build9152611718273512517.tmp\sketch_jan08a.cpp.hex:i
avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean,
http://www.bdmicro.com/
System wide configuration file is "C:\Program Files\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM7
Using Programmer : stk500v1
Overriding Baud Rate : 115200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
avrdude done. Thank you.
Re: upload error help?
Posted: Sun Jan 08, 2012 2:14 pm
by rimai
Does the controller reboot during the upload process?
It should happen right after
avrdude: ser_open(): setting dtr
Re: upload error help?
Posted: Sun Jan 08, 2012 2:18 pm
by ruckusman
It seems to, turns everything off and then comes back on.
Re: upload error help?
Posted: Sun Jan 08, 2012 3:31 pm
by rimai
Can you check if "Set RTS on Close" is check marked?
Please go to Control Panel->System->Device Manager
Then expand "Ports (COM & LPT)" and double-click the "USB Serial Port (COM7)"
Click tab "Port Settings" and click "Advanced" button
Make sure that checkbox "Set RTS on Close" is checked and click "OK" on all opened windows.
Re: upload error help?
Posted: Sun Jan 08, 2012 5:27 pm
by ruckusman
It is/was. Still getting same error. Seems to turn the control on/off 3 times when it fails. Once when you mentioned it should, then a few seconds later, then a bit after it fails....How fast should it re-boot. The lights and all go off, but come back on in a matter of a couple seconds...