Atmel

Dec 16, 2013
2 min read
May 31, 2023 18:15 EEST

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:

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.

 


Related Posts