Set up AVRStudio to use AVR-GCC compiler
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 don’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 – 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.
Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post | TrackBack URI for this post
New on WinAVR Tutorial
Running TX433 and RX433 RF modules with AVR microcontrollers,Sometimes in embedded design you may want to go wireless. Might be you will want to log various readi …Programming AVR ADC module with WinAVR,Most of AVR microcontrollers have Analog to Digital Converter (ADC) integrated in to chip. Such solut … |
New on WinARM Tutorial
What are differences between WinARM and WinAVR,Everyone who is working with AVR microcontrollers knows this powerful tool – WinAVR (http://win …LPC2000 watchdog timer,As in all microcontrollers watchdog timers purpose isto reset microcontroller after reasonable amount … |
