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/a... "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.
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.
Rats, Arduino environment can do it. I thought perhaps they have a newer avrdude than WINavr but going to their directory with .\ before the command above gives the same result.
* Change the FTDI chip to COM1 then I get
avrdude -p atmega168 -P COM1 -c avrisp -U flash:w:main.hex avrdude: stk500_getsync(): not in sync: resp=0x00
* OK I forgot the serial rate
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
the frustrating thing id that it seemed to work once. I got the usual loading messages and no errors. Now I just get the errors above.