Pages: [1]   Go Down
Author Topic: Can an ISP be used without FTDI to program an AVR?  (Read 609 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 156
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I just got my AVR_ISPv2 and have successfully programmed a stand-alone AVR without using arduino libraries.  I did this with ONLY the ISP and not the FTDI chip common to arduino boards.  I did this via a command line as well as Xcode on a Mac.

When I read this great writeup on standalone AVR programming (http://arduino.cc/en/Main/Standalone), it appears that I need both the ISP AND the FTDI interface to program using Arduino libraries.  Is this correct or can I just use the ISP alone to program a standalone AVR chip and use the arduino libraries? 

I was able to use the Arduino IDE to burn the bootloader with my ISP, however I was not able to burn the program to the AVR with it.  Can it be done?

Thanks so much for your time!
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8665
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino libraries do not rely on the bootloader so you can program an Arduino using the ICSP interface instead of a serial cable.  Be sure to "Burn Bootloader" at least once to set the fuses correctly.  After that you can use "File->Upload using Programmer" to upload your sketch.

Note that doing so erases the bootloader so if you do it on an Arduino you wont be able to do the normal Upload sing the serial bootloader until you re-burn the bootloader.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 142
Posts: 5292
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

....it appears that I need both the ISP AND the FTDI interface to program using Arduino libraries.  Is this correct

No.
Logged

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

Offline Offline
Full Member
***
Karma: 0
Posts: 156
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the reply.

Just realized one of the AVR's I have is an atmega8515 which (I don't think) is listed in one of the board options of the Arduino IDE.  Can the IDE be used in this case?
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 156
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the reply.

Just realized one of the AVR's I have is an atmega8515 which (I don't think) is listed in one of the board options of the Arduino IDE.  Can the IDE be used in this case?

Got past that with this awesome website for additional ATMEL chips:  http://www.avr-developers.com/corefiles/index.html

I love the internet smiley
Logged

Pages: [1]   Go Up
Jump to: