upload error help?

Basic / Standard Reef Angel hardware
Post Reply
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

upload error help?

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

Re: upload error help?

Post by rimai »

It could be either wrong COM port or wrong board selection.
Are you using the optiboot bootloader?
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

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

Re: upload error help?

Post 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.
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

Post 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.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: upload error help?

Post 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
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

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

Re: upload error help?

Post 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
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

Post 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.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

Post by ruckusman »

are there extensions for the float switches?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: upload error help?

Post by rimai »

No, you can use any type of wire to extend those.
Roberto.
Nikkwins
Posts: 20
Joined: Fri Nov 18, 2011 10:30 pm

Re: upload error help?

Post 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
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

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

Re: upload error help?

Post by rimai »

Does the controller reboot during the upload process?
It should happen right after
avrdude: ser_open(): setting dtr
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

Post by ruckusman »

It seems to, turns everything off and then comes back on.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: upload error help?

Post 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.
Roberto.
ruckusman
Posts: 34
Joined: Sun Nov 27, 2011 6:51 am

Re: upload error help?

Post 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...
Post Reply