I am hoping to use the Arduino Bootloader (on a ATmega168) but not use the Arduino environment. I am running WinAVR-20080430
I am getting nearly nowhere.
Details of what I am trying to do:
* Arduino docs say they use avrdude. Cool
* I can not find the avrdude command line that the Arduino environment invokes.
* According to http://www.ladyada.net/library/arduino/bootloader.html "The bootloader is an 'stk500'-compatible, which means you can use good ol' AVRDUDE to program the arduino"
Details of what I have done:
* I can program the chip in the Arduino environment. No Problems.
*
Code: Select all
avrdude -p atmega168 -P COM12 -c avrisp -U flash:w:main.hex
avrdude: ser_open(): can't open device "COM12": The system cannot find the file specified.
* Change the FTDI chip to COM1 then I get
Code: Select all
avrdude -p atmega168 -P COM1 -c avrisp -U flash:w:main.hex
avrdude: stk500_getsync(): not in sync: resp=0x00
Code: Select all
avrdude -p atmega168 -P COM1 -b19200 -c avrisp -U flash:w:main.hex
avrdude: stk500_getsync(): not in sync: resp=0x18
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
Any Ideas??
Thanks
Kirk