I´ve read the tutorial explaining how to use an Arduino board to burn the bootloader onto an AVR using the Arduino IDE. I´ve also read that it is based on the mega-isp code written by someone else and had a look at it too.
So, is it possilbe to use that same sketch and AVRdude to directly program any supported microcontroller? Should I make any changes?
I would recommend that you add two (-v -v) verbose output specifiers to the avrdude command line, at least while testing. It adds very useful output that can help diagnose problems.
wanderson:
I would recommend that you add two (-v -v) verbose output specifiers to the avrdude command line, at least while testing. It adds very useful output that can help diagnose problems.
Luciano_Carcagno:
I got a bit confused with this. I thought that the idea of using an Arduino board with the ArduinoISP example was to work as AVRISP. :~
...a programmer. "AVRISP" is a specific kind of programmer. It is also a protocol. The -c option tells avrdude which protocol to use. For an Arduino running the ArduinoISP sketch, the correct protocol is stk500 or arduino.
The best advice: Whatever works is the correct option.
Agreed, cause STK500 is just an error generator for me, have yet to get it to do anything though an arduino as an ISP, I dont remember what arduino did, its been awhile.