Cross Compile under Gentoo
crossdev avr
sudo crossdev --b 2.19.51.0.8 --g 4.4.1 --without-headers --target avr
Atmel Studio 6
Download and install:
- Atmel Studio 6 Release installer (743MB, updated 2012/05)
- Atmel Studio 6.0 Patch 2 (25MB, updated August 2012) Patch update für Atmel Studio 6.0 (build 1843) und (6.0.1863) kleinere Bugfixes und Upgrade auf 6.0.1882.
- WinAVR 20100110
Set WinAVR as Toolchain
Start Atmel Studio 6 and select Tools -> Options. Go to Toolchain Flavour Configuration. Add Flavour and fill in:
Flavour Name: WinAVR 20100110
Toolchain Path: C:\WinAVR-20100110\bin
Make Path: C:\WinAVR-20100110\utils\bin
If you like you can select the new toolchain as default.
AVRDude as One Click Flash Button
To have the possibility to flash our controller with one click and do not have to always go to Device Programming and all other following steps required, I use avrdude from Atmel Studio 6. Go to Tools -> External Tools. Add a new one with the information:
Title: Flash 8-out
Command: avrdude.exe
Arguments: -c stk600 -p m328p -P usb -U flash:w:Debug/app-8-out-full.hex
Initial directory: $(ProjectDir)
Select Use Output window
Select a toolbar group where you want a flash button and click on the small rectangle button -> Add or Remove Buttons -> Customize. Click Add Command, Tools, External Command 1. Put it with the Move Up and Move Down buttons to the position you want it. If you now click on the button it start avrdude and flash the hex file directly to the controller.
Dec 16 | Compiling a kernel | 1 min read |
Dec 16 | Distcc and ccache | 4 min read |
Dec 16 | LVM2 | 3 min read |
Dec 16 | Layman | 1 min read |
Dec 16 | Portage | 1 min read |