-
Notifications
You must be signed in to change notification settings - Fork 399
Getting Started
-
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 -
Untar
tar -xzvf avr8-gnu-toolchain-3.4.4.1229-linux.any.x86.tar.gz -
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 repository
git clone https://github.com/emsec/ChameleonMini.git -
Compile the Chameleon-Mini sourcecode
cd ChameleonMini/Firmware/Chameleon-Mini
make
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
- Activate update bootloader either with the UPGRADE command or by holding down the button while connecting to USB
- Use "lsusb" to confirm "DFU bootloader" is available
- 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