Skip to content

Getting Started

Timo Kasper edited this page Jan 25, 2016 · 12 revisions

On Linux (Ubuntu)

Installing the AVR toolchain

  1. Download the most current avr8 gnu toolchain from Atmel
    cd ~
    wget http://www.atmel.com/images/avr8-gnu-toolchain-3.4.4.1229-linux.any.x86.tar.gz

  2. Untar
    tar -xzvf avr8-gnu-toolchain-3.4.4.1229-linux.any.x86.tar.gz

  3. Add necessary paths to PATH environment variable either by executing
    export PATH=$PATH:$HOME/avr8-gnu-toolchain-linux_x86/bin
    or if you want to make this change persistent between terminal sessions, execute
    echo "export PATH=\$PATH:\$HOME/avr8-gnu-toolchain-linux_x86/bin" >> ~/.profile
    Note that you have to log out and in again for this change to take effect.

Checkout and compile

  1. Checkout repository
    git clone https://github.com/emsec/ChameleonMini.git

  2. Compile the Chameleon-Mini sourcecode
    cd ChameleonMini/Firmware/Chameleon-Mini
    make

ChameleonMini Firmware Update

Example udev rule to allow members of chamdev group to work with the update bootloader:

echo 'ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2fe4", GROUP="chamdev"' > /lib/udev/rules.d/99-dfu-bootloader.rules

  1. Activate update bootloader either with the UPGRADE command or by holding down the button while connecting to USB
  2. Use "lsusb" to confirm "DFU bootloader" is available
  3. Use dfu-programmer or FLIP/BATCH ISP to flash the device

Example for dfu-programmer v0.7.2 and the atxmega32a4u MCU:

dfu-programmer atxmega32a4u erase dfu-programmer atxmega32a4u flash --eeprom Chameleon-Mini.eep dfu-programmer atxmega32a4u flash Chameleon-Mini.hex dfu-programmer atxmega32a4u reset

Once the process is complete, give the device a moment to bring up the serial interface and verify the new version has applied

Clone this wiki locally