Is it possible to program an atmega328P which has an arduino bootloader in it, using AVRISP mkII programmer?
Programming using AVRISP mkII
Yes, the AVR ISP mkII can easily program a Mega328.
However, your board would need to have the standard 6-Pin ISP header, with the appropriate pins from the micro brought out to the header.
Note that using the AVR ISP mkII to program the micro might well erase the bootloader which is currently installed in the micro.
If you have a copy of the bootloader, however, that isn't a problem as you could always use the mkII to put the bootloader back in the chip.
JC
Thanks for your reply.
Note that using the AVR ISP mkII to program the micro might well erase the bootloader which is currently installed in the micro.
The AVR ISP mkII does that automatically, or should i manually erase the bootloader?
It depends on the fuse settings IIRC.
Are you using Studio to program the device or something else?
Are you using Studio to program the device or something else?
I am currently using an arduino dumilanalov board to program the chip, so it has an arduino bootloader in it. I need to switch to an ISP programmer like the AVR ISP mkII and program the same microcontroller with the arduino bootloader.
You can use your Duemilanove to program another AVR using the ArduinoISP sketch. The target AVR can be programmed with a regular application or a bootloader.
If you want to put a different bootloader into your Duemilanove, you need an ISP programmer e.g. AVRISP-2 or even another Arduino.
The Arduino IDE has a menu command for installing a new bootloader via ISP. Note that this does not work for a Dragon. (you need a separate BAT file or Bash script)
David.