USB Programming Cable

Post Reply
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

USB Programming Cable

Post by Bryan »

Hi Roberto:

Managed to pick up a FTDI FT232RL USB to TTL Serial cable with the following output wires.

Red wire 5V
Black wire GND
White wire RXD
Green wire TXD
Yellow wire RTS
Blue wire CTS

Looking at the schematic I assume the only lines needed from the cable are the 5v ,GND, RXD and TXD lines.?

Cheers
-=Bryan=-
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: USB Programming Cable

Post by rimai »

You need rts too.
That's what will reboot the controller to kick in the bootloader.
Roberto.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: USB Programming Cable

Post by Bryan »

Thanks Roberto, will give it a try tonight, which pin does RTS go to on the board, don't see it on the schematic. I do see CTS, is RTS the first pin?
-=Bryan=-
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: USB Programming Cable

Post by rimai »

It's the one that goes to the jumper
Roberto.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: USB Programming Cable

Post by Bryan »

Hi Roberto:

Well no luck...trying from scratch to upload the bootloader. Tools-->Burn Bootloader. Selecting Reef Angel Controller/W optiboot. Port is Com 21, and device manager shows checkbox "Set RST on close" is selected.

Looking at the connector from left to right I have it wired as

NC, +5, RTS,RX,TX,NC,NC,GND


Tried reversing the rx and tx lines same thing. The RST jumper on the board just above the 8 pin connector is closed.

Code: Select all

C:\Reef_Angel\hardware/tools/avr/bin/avrdude -CC:\Reef_Angel\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM21 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xde:m -Ulfuse:w:0xff:m 

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:\Reef_Angel\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM21
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Recv: 
avrdude: stk500_getsync(): not in sync: resp=0x0c

avrdude done.  Thank you.
-=Bryan=-
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: USB Programming Cable

Post by Bryan »

Hi Roberto:

Just an update. Was successful in flashing the Optiboot to the RA using Atmel Studio and a ISP connection. All seems to be well now and I can upload sketches using the USB cable and Arduino. Don't know why i couldn't upload the boot-loader from Arduino though, perhaps the fuses were all messed up?
-=Bryan=-
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: USB Programming Cable

Post by rimai »

Cool!!
What about the behavior you were getting before?
Is it fixed too?
Roberto.
Bryan
Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.

Re: USB Programming Cable

Post by Bryan »

Programming issues have been resolved, I can upload the internalmemory sketch and follow it up with another sketch and no error. So it must have been a issue with Atmel Studio programming tool.

Only issue I am having is the T1-T3 and PH Error:
http://forum.reefangel.com/viewtopic.ph ... T1%3Aerror

Th\ink it might be board related, but that doesn't really make sense as the PH and temp circuitry are completely separate. Wanted to try and debug using Visual Micro but not having much success. What about you, any luck using the debugger?
-=Bryan=-
Post Reply