RA not found on COM5

Basic / Standard Reef Angel hardware
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

RA not found on COM5

Post by ahmedess »

recently I upgraded from reef angel controller versioon 0.8.3.1 to version 0.8.3.11. I uninstalled the old one then i restarted and installed the new one. after I ve done that I was unable to communicate with my board using the ftdi cable. I had the ftdi cable installed successfully and the serial port is set to COM5. Even during installation when i came to the step where it asks you to connect the ftdi cable to the RA it kept saying RA not found.

I tried uploading code to the RA and this is what I got:

Code: Select all

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\\.\COM5 -b57600 -D -Uflash:w:C:\Users\Ahmed\AppData\Local\Temp\build2361283832433358734.tmp\RA_122411_1909.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            : \\.\COM5
         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 yo
I m using hte old bootloader. Any clues how to fix this?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: RA not found on COM5

Post by binder »

What "board" is selected under "Tools --> Board"?
Is the "ReefAngel Controller w/ Optiboot" selected?

In the newer versions, the default is the "Optiboot" board. You should change that back to just be "ReefAngel Controller". Then try to communicate.

curt
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

done that same error.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: RA not found on COM5

Post by binder »

Do you have RAGen installed? If you do, I would suggest running the "Find Controller" and see if it can detect the controller.

curt
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

I also tried to reinstall the old version of reef angel controller 0.8.13.1 and I still couldnt get the RA to communicate with the PC. I tried the RAgen test also it says COM5 - none
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

I thinking about upgrading to optiboot now I have the programmer. but i m worried cause i currently have the RA running on my tank if I upgrade the bootloader then I will have to reload my code. if upgrading the bootloader wont fix the problem then I wont be able to use my RA on my tank unless i figure a solution to the problem.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

i kept trying to upload several times until it actually uploaded successfully, what does that mean?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: RA not found on COM5

Post by binder »

Hmm...I'm not sure about that one.

curt
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

now i connected my programmer to the board its an AVRISP and I m trying to burn the new bootloader using the instructions on the RA website and I m getting the same error again
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

What is the error you are getting?
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

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\\.\COM15 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

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 : \\.\COM15
Using Programmer : stk500v1
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
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

is it related to the file boards.txt? because now i m running RA controller version 0.8.13.11 which is the latest version which has the boards.txt already edited
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

If you are trying to burn the new bootloader, you are not doing it correctly.
You should go to menu Tools-> Burn Bootloader -> w/AVR ISP.
If you are trying to upload and you are getting this error, most likely is because something went slightly not accordingly when updating the drivers.
Please go to Control Panel->System->Device Manager
Then expand "Ports (COM & LPT)" and double-click the "USB Serial Port (COM15)"
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.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

thats what I m exactly doing. Also I have RTS on Close checked and I m still getting the same error

I have aurdino open i goto menu Tools-> Burn Bootloader -> w/AVR ISP and I get the error posted before
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

Are you using a modified AVR chip as AVR ISP or you have a real programmer?
If you have the real programmer, you need to go with "w/ AVRISP mkII"
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

I have this programmer AVR AVRISP V2.0 STK500 USB ISP

http://ram-e-shop.com/oscmax/catalog/pr ... ts_id=1464
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

I tried the avrisp mkII it said usb device not found
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

I've never used AVRISP, but there are some posts that mention wrong drivers.
What do you have on your device manager list?
More ifo:
http://www.arduino.cc/cgi-bin/yabb2/YaB ... 1228502992
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

some ppl on this link http://www.arduino.cc/cgi-bin/yabb2/YaB ... 1228502992
were having the same problem that i m having.

Quoted from Mark in Arduino forums from the link above
"Are you sure it is a MKII or is it a v2 ?

Today I received from a HK company (via eBay) a STK500 USB clone.

It uses an USB serial chip to make it look like a com port. It took me about an hour to figure out what was going on because it arrived with ZERO documentation.

I determined that I had to edit the boards.txt file and add these lines:

avrisp.name=HK-AVR ISPv2
avrisp.communication=serial
avrisp.protocol=stk500v2

Do an eBay search for "ATMEL STK500 Programmer for Arduino & Freeduino Board" to see what I got.

FYI: Switch 1 should be off, Switch 2 should be ON."
I have added the three lines above to teh file programmer.txt in the arduino directory. but i do not understand what he means by switch 1 should be off and switch 2 should be on
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

I think he means a dip switch. Does yours have a dip switch in it? You may need to open the case.
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

rimai wrote:I've never used AVRISP, but there are some posts that mention wrong drivers.
What do you have on your device manager list?
More ifo:
http://www.arduino.cc/cgi-bin/yabb2/YaB ... 1228502992
Thats the same link I was reading. in device manager I have the device named " USB serial port (COM15)" and the driver is FTDI
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

Isn't that your USB-TTL cable?
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

nope my usb ttl cable is COM5
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

i opened the programmer and there were no switches at all inside.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

Ok, if COM15 is your programmer, we can say for sure that you should not use "w/ AVRISP mkII".
It should be "w/ AVRISP" indeed.
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

ok what about the stk500 should i choose v1 or v2? I have tried V1 and it kept giving me this error:

Code: Select all

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\\.\COM15 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m

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 : \\.\COM15
Using Programmer : stk500v1
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
also I keep getting this error "avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51" alot during uploading code using the TTL usb cable. I have to keep trying by unplugging the usb plug from the pc and plugging it back in while the RA is connected to the cable. it used to happen once in a while before but now it happens a lot. I thought it might be related to the upgrade i made to the RA controller files but then i reverted to the old RA controller installer version 0.8.13.1 and i still get this error. sometimes it uploads normally and sometimes it just keeps bugging me with this error. but for the programmer case i kept trying several times with the AVRISP programmer choice in arduino but it never went through. do you think these two errors might be related?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

I don't think they are related and according to the post, you should use v2 for the programmer
Roberto.
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

it worked! at last. thank you for your support. Now I have optiboot bootloader. I m trying to upload the internal memory PDE and I keep getting the error :

Code: Select all

Binary sketch size: 7194 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\\.\COM5 -b115200 -D -Uflash:w:C:\Users\Ahmed\AppData\Local\Temp\build3707626226319611616.tmp\Memory_060111_0150.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            : \\.\COM5
         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.

I tested the COM port using ragen find controller option and it found the controller but i m unable to upload sketches

the red LED now is blinking 3 times then off for a sec then blinks again continuously
ahmedess
Posts: 174
Joined: Sun May 22, 2011 2:29 pm

Re: RA not found on COM5

Post by ahmedess »

okay here is what i found. when i chose in the arduino program reef angel controller instead of reef angel w/optiboot the upload worked fine!! does that mean the bootloader i uploaded was not optiboot? how come, i followed the instructions on this link http://forum.reefangel.com/viewtopic.php?f=2&t=113 exactly?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: RA not found on COM5

Post by rimai »

Sorry, my fault.
I had the wrong procedure.
You need to select the Reef Angel Controller w/ optiboot under Tools->Boards, prior to burning the bootloader.
Whichever board is selected is the bootloader that will be burned.
Roberto.
Post Reply