Pages: [1]   Go Down
Author Topic: Can you use the arduino usb2serial lite as a ISP  (Read 1645 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Shannon Member
*****
Karma: 212
Posts: 13085
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The what?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the AVR has a bootloader already uploaded then with an USB to Serial adapter like this
http://www.ebay.com/sch/sis.html?_nkw=TRIPPLITE+U209+000+R+TRIPP+LITE+USB2+SERIAL+ADAPTER+
you can program your micro controller.
You will also need (most probable) a MAX232 level convertor ( http://en.wikipedia.org/wiki/MAX232 ).
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.html
Setup involves quote a few steps, but it does work. I still have my Duemilanove set up for this.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 23
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not aware of any.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Windy City
Offline Offline
Jr. Member
**
Karma: 0
Posts: 90
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I bought one of these: http://www.ebay.ca/itm/AVR-Programmer-Works-with-AVRdude-and-Arduino-IDE-/280890704478?pt=LH_DefaultDomain_2&hash=item416664025e

Cheap, fairly versatile and works pretty good using a serial connection, but it needs a real RS232 port.

Otherwise, there are tons of USB based AVR ISP clones out there pretty cheap too.  Some better than others.  Like this: http://www.ebay.ca/itm/New-USB-51-AVR-ISP-Programmer-Downloader-USBASP-usbisp-/261111862849?pt=LH_DefaultDomain_0&hash=item3ccb7ad641

Never used one though, so can't vouch for it, but you can't beat the price.
Logged

Dirt Biker

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 27425
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@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

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Canada
Offline Offline
God Member
*****
Karma: 7
Posts: 602
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
Quote
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

Facts just don't care if you ignore them.

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 152
Posts: 5744
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 36
Posts: 668
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
God Member
*****
Karma: 7
Posts: 602
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Facts just don't care if you ignore them.

Pages: [1]   Go Up
Jump to: