Skip to content

How to program with AVRISP mkII

slurdge edited this page Apr 17, 2019 · 4 revisions

See also Recovering-from-bootloader-and-code-overlap

Setup

You will need:

  • A bricked or non functioning Chameleon-mini, otherwise use the regular flashing tools
  • A copy a firmware with bootloader included, or else you will flash only the program and not the bootloader
  • A AVRISP mkII or clone
  • Some cables if you don't buy the Adaptor on Rfxsecure

AVRISP mkII - Chameleon Pin layout

Here is the overall pin you need to connect together. The pins are written in little characters on the back of the Chameleon-mini.

AVR Chameleon
VCC VCC
GND GND
MISO DAT
RST(SCK) CLK

Example of wiring

Here is an example of wiring without a special adapter. Disregard the LED, which is here for convenience.

wiring

Upload in Atmel 7

Open Atmel 7, and to Tools->Device Programming

You should have the following

AtmelStudio

Flash a full hex file or ITS_A_CARD.hex and your Chameleon will work again! You can create a full hex file with the following:

srec_cat.exe RevE-atxmega32a4u_104_modified.hex -intel Chameleon-Mini.hex -intel -o Full.hex -intel

Clone this wiki locally