WinAVR + CodeBlocks
- WinAVRTM (pronounced "whenever") is a suite of executable, open source software development tools for the Atmel AVR series of RISC microprocessors hosted on the Windows platform. It includes the GNU GCC compiler for C and C++.
- WinAVR installs AVRGCC compiler and other important things for us we can also use it for our programs but we will use code blocks for compilation
>>Installation
>>Use
You can use it as it have programmer note pad but to compile its code you need to make a make file from
>> How to make make file and first code
>> How to use it with CodeBlocks
- Code blocks is a simple ide you can download it from here www.codeblocks.org/
- Now you can use it with WinAVR to use it follow these steps
- Open Codeblocks..
- Make new project
- Choose AVR and go like this
- Chose next like this
- Name your project
- Choose next only take care of red area which says GNU GCC for AVR
- Choose your controller and click finish
- Now click on setting/compiler
- Choose compiler like this
- Now confirm all in circles
- Click ok write your code and compile it then go to folder where you saved it and then go to bin and debug like this CodeBlocks\qwq\bin\Debug you will find your hex file..
>>Problems
- Some time WinAVR will say no rule to make this file, it means make file is either not present or not in same folder where your code is located.
- Some time it will make file did'nt find then you need to see your system enviorment variables On start write var and click on edit system variables then
No comments:
Post a Comment
Thank you for your response.