Offline
Newbie
Karma: 0
Posts: 8
|
 |
« on: November 08, 2012, 02:31:36 pm » |
I was wondering if you could use the usb2serial lite as a ISP and if so how would you go about doing it? Thanks for your help lads!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Offline
Shannon Member
Karma: 119
Posts: 10172
|
 |
« Reply #1 on: November 08, 2012, 03:01:17 pm » |
The what?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #3 on: November 08, 2012, 04:39:33 pm » |
Yes you can. What you end up doing is using some of the IO pins to connect to the SCK, MOSI, MISO, Reset pins, and "bit bang" the SPI interface to install a bootloader, or to install code with no bootloader. There is a geocities link floating around where 4 pins are added to a Duemilanove to allow connecting the FTDI chip outputs to the ICSP header to do this. http://www.geocities.jp/arduino_diecimila/bootloader/index_en.htmlSetup involves quote a few steps, but it does work. I still have my Duemilanove set up for this.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 23
|
 |
« Reply #4 on: November 08, 2012, 05:14:05 pm » |
I do not have any arduino board, I have just an USB to serial cable, the PC and avrdude.
Is there a software that allows avrdude to program directly an empty AVR (without any bootloader preloaded) using the RS232 signals CTS, DSR, DCD, RI as MISO, SCK, MOSI, RESET, respectively?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #5 on: November 08, 2012, 11:58:53 pm » |
I am not aware of any.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 8
|
 |
« Reply #6 on: November 20, 2012, 01:40:39 pm » |
To clarify, I have a http://arduino.cc/en/Main/USBSerial and I would like to use it as a AVR programmer. How do I go about doing that? (So i can upload boot loaders with it)
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #8 on: November 24, 2012, 11:13:56 am » |
@jtwhissel , I don't know that anyone has written any code that uses these pins on the ICSP header: +5, Gnd, SCK, MISO, MOSI, plus Reset from another pin, such as teh DTR pin, to allow the board to act as a programmer. I would think it is certainly doable.
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #9 on: November 24, 2012, 02:18:42 pm » |
I noticed on the avrdude-dev mail list a conversation about this. Someone tried using an SI CP2103 USB to TTL bridge and managed to bit bang (using some additional circuitry, I assume) some code to an AVR. However, they reported it too slow to be of use: Somewhat surprisingly, it worked, though it's indeed slow. I wonder if I'd have the patience to store a few KiB's in the MCU's memory. With the CP2103 being at least twice as fast as the FTDI chip on the Arduino USB2TTL, it would appear that if you could make it work, it would not be practical. As DirtBike suggested, it might be time to spring for a real programmer. There all sorts of them available for under $15.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2262
|
 |
« Reply #10 on: November 24, 2012, 04:11:26 pm » |
I do not have any arduino board, I have just an USB to serial cable, the PC and avrdude.
Is there a software that allows avrdude to program directly an empty AVR (without any bootloader preloaded) using the RS232 signals CTS, DSR, DCD, RI as MISO, SCK, MOSI, RESET, respectively?
No.
|
|
|
|
|
Logged
|
|
|
|
|
Wahiawa, Hawaii
Offline
Sr. Member
Karma: 11
Posts: 365
|
 |
« Reply #11 on: November 24, 2012, 04:54:09 pm » |
Like Crossroads said, it could be doable. The Arduino USB Serial Light adapter is based on the ATmega8U2 chip. And it has the DFU bootloader on it. So you could load a modified ArduinoISP on it with the Atmel FLIP software. The only thing would be to change to code to use the right pinouts on the 8U2 chip. Then it could run as a ArduinoISP.
|
|
|
|
|
Logged
|
|
|
|
|
Canada
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #12 on: November 28, 2012, 07:08:40 am » |
Looks like I missed the 'Light' bit. I thought he was referring to the older model.
So, I am forced to acquiesce. It should indeed be possible. Maybe something could be done with the LUFA library, and although it seems like a obvious thing to do, I am also not aware of anything that exists.
|
|
|
|
|
Logged
|
|
|
|
|
|