USB Programming Cable


Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.
PostPosted: Thu Sep 20, 2012 11:25 pm
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=-

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Sep 21, 2012 7:58 am
You need rts too.
That's what will reboot the controller to kick in the bootloader.
Roberto.

Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.
PostPosted: Fri Sep 21, 2012 8:48 am
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=-

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Sep 21, 2012 8:51 am
It's the one that goes to the jumper
Roberto.

Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.
PostPosted: Fri Sep 21, 2012 11:57 pm
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=-

Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.
PostPosted: Sat Sep 22, 2012 2:37 am
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=-

Posts: 12424
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Sep 22, 2012 8:23 am
Cool!!
What about the behavior you were getting before?
Is it fixed too?
Roberto.

Posts: 147
Joined: Wed Jul 06, 2011 1:49 am
Location: Vancouver, B.C.
PostPosted: Sat Sep 22, 2012 1:31 pm
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.php?f=7&t=1762&hilit=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=-

Return to Ask anything here

Who is online

Users browsing this forum: No registered users and 1 guest

cron