Position: Index > Unclassified >

Set up AVRStudio to use AVR-GCC compiler

2017-12-21 22:30  
Declaration:We aim to transmit more information by carrying articles . We will delete it soon, if we are involved in the problems of article content ,copyright or other problems.

After release of AVRStudio4 there is possible to integrate AVR-GCC compiler in to it. As you know AVRstudio is a powerful tool which has assembler compiler- debugger, programmer, etc. Integration of AVR-GCC to it makes this tool much more powerful and more complete playground for developer. Plugin which is built in AVRStudio detects AVR-GCC compiler by it self, so you dona€?t have to bother how to tie them together. And here we go – full set of good tools comparable to commercial. Convenient user interface, automatic makefile generation, visual debugging by watching processors register, or even you can flash the chip.

How to set up the working environment? This is simple. First of all you have to download WinAVR20060421 and install in you machine. Then download AVRStudio Version 4.12 and service pack Service Pack 3 and install it in your PC.

And… that’s it. You are set. Now open AVR Studio and select menu->Project Wizard->New project.


In a Welcome AvrStudio4 Screen select Project Type AVR GCC enter project name, select Create Initial file if you want to initial c file to be created. Select Create Folder to put project files in separate folder. Enter initial c file name. And browse to location where you want your project to be saved. Press Next and select debugging platform – Usually AVR simulator for computer simulation and select your device a€“ for instance Atmega8.


Press finish to start with you project.

Write a program in you code window, for instance:


Then go to Project menu->Configuration->General tab. There you can configure your makefile parameters. Usually they are set by default, but lets say you want to use external makefile instead of automatically generated, then you have to select it in these settings.


So then save and Press Build Active Configuration.

Debugging can be done in same way as it is done with AVR assembler.

More help can be found in AVRStudio Help->AVR GCC Plug-in Help

Good luck.

Reprinted Url Of This Article: