Programming using AVRISP mkII

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is it possible to program an atmega328P which has an arduino bootloader in it, using AVRISP mkII programmer?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your reply.

Quote:
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?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It depends on the fuse settings IIRC.

Are you using Studio to program the device or something else?

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
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.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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.