Go Down

Topic: Can an ISP be used without FTDI to program an AVR? (Read 691 times) previous topic - next topic

memotick

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!

johnwasser

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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

fungus


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


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

memotick

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?

memotick


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

Go Up