Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« on: May 08, 2012, 06:18:21 pm » |
I have done a fairly lengthy post about how to make a breadboard "Arduino-compatible" setup ...  With the aid of an FTDI cable you can program your breadboard from the Arduino IDE, just like a normal board:  The post describes wiring, how to install the bootloader, and other details: http://www.gammon.com.au/forum/?id=11637
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #1 on: May 08, 2012, 06:22:17 pm » |
I just got a FTDI cable (yea behind the times) and read in some very old post that RTS wouldnt work for reset, is that changed? http://arduino.cc/playground/Hacking/FTDIAutoReset
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #2 on: May 08, 2012, 07:21:07 pm » |
You've got me worried now! It's working, but maybe it shouldn't be ... Well with the cable I have, which I think I got from Adafruit, this is what I see on the RTS and Reset lines (ie. before and after the capacitor):  It looks like RTS is going low (and stays low) which causes Reset to pulse low for about 1 mS.
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15310
Measurement changes behavior
|
 |
« Reply #3 on: May 08, 2012, 10:03:23 pm » |
I believe the very first arduino board designed to have a auto-reset function used the RTS signal. On later versions they changed the hardware to use DTR instead, but for legacy compatibility reasons had the IDE pulse both DTR and RTS. Not sure that is still the case or not as sometime in the version changes they handed off the activation of the control signal(s) from the IDE directly to AVRDUDE directly. But Nick's example implies the RTS is still pulsed.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #4 on: May 08, 2012, 10:59:00 pm » |
I couldn't get it to work at all if I moved the pin to the "free" spot on the FTDI header (the one I have labelled CTS). A check with the scope appears to show it is not pulsed.
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #5 on: May 09, 2012, 12:05:52 am » |
well yea CTS was never in the equasion, its been typically on DTR (or apparently RTS back in the day?), which is not broken out on FTDI cables
you would have to cut open the USB end of the cable and find DTR, I was lazy and reset never worked with my MCP2200 (or whatever microchips pic made USB bridge thing is) so I just got used to hitting the button since my POS dumpster computer does not have a serial header broken out (though the pad's are on the mobo, its wonky as it is and not worth messing with as its being replaced soon)
|
|
|
|
« Last Edit: May 09, 2012, 12:08:21 am by Osgeld »
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
France
Offline
Sr. Member
Karma: 5
Posts: 367
|
 |
« Reply #6 on: May 09, 2012, 04:47:27 am » |
That's a very nice set of instructions. Is the Programmer sketch based on other code such as Optiloader or Adaloader, or is it a new ground-up rewrite? I've been trying to use Adaloader to re-write an ATmega8U2 chip without success (I believe the problem is related to the flash page size). Do you think your Programmer sketch could be adapted to other chips?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #7 on: May 09, 2012, 04:58:47 am » |
It's a complete rewrite based on reading the datasheets.
Because it programs the Atmega2560 I believe it handles flash page sizes correctly (until you exceed 0xFFFFFF).
It should be adaptable to other chips because the programming information is in a table.
|
|
|
|
|
Logged
|
|
|
|
|
France
Offline
Sr. Member
Karma: 5
Posts: 367
|
 |
« Reply #8 on: May 09, 2012, 06:12:06 am » |
Hmm, very nice indeed! Time for a printout...
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #9 on: May 09, 2012, 06:19:21 am » |
Has this issue been resolved anywhere? regarding which pin to use RTS or DTR for auto Reset?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #10 on: May 09, 2012, 06:45:43 am » |
What I described on that page works for me, if that answers your question.
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3618
@ssh0le
|
 |
« Reply #11 on: May 09, 2012, 10:23:32 am » |
I will plug it in tonight and post what I find, if its working for nick I would bet it would work for me as well
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Greenville, IL
Offline
Edison Member
Karma: 11
Posts: 1288
Warning Novice on board! 0 to 1 chance of errors!
|
 |
« Reply #12 on: May 09, 2012, 11:37:27 am » |
Awesome write-up Nick! I learned a few things, and the pictures are excellent!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 240
Posts: 16451
Available for Design & Build services
|
 |
« Reply #13 on: May 09, 2012, 12:04:39 pm » |
How about a '1284 version Nick 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 218
Posts: 13896
Lua rocks!
|
 |
« Reply #14 on: May 09, 2012, 04:14:26 pm » |
Do you mean the bootloader, or the whole thing?
I've just ordered the processor, I'll give it a try.
|
|
|
|
|
Logged
|
|
|
|
|
|