What is ECLIPSE?
The software that
I'll be using is eclipse.
It’s a freeware. The
standard version that is available on net does not has that "AVR
plug-in" that is required to upload program in a microcontroller.
You can download the
required version of eclipse from here.
eclipse.7z Link Broken? Post a comment, i'll renew it.
Steps after downloading eclipse.rar
Use any software
like winRar or 7zip to extract the files.
Before running the
eclipse for the first time make sure you have java_runtime_environment (JDE) and WinAVR installed.
You can download 7zip, JDE
and WinAVR from here.
7zip JRE WinAVR Link Broken? Post a comment, i'll renew it.
Open eclipse.exe you
can see the window like this.
Eclipse Welcome Window |
Creating first project in Eclipse
Since you are using a particular MCU, programmer, and other things so u need a particular settings for first time.
- File-> Switch Workspace-> Other. Click on Browse. Choose C drive and create a new folder named BRICS or whatsoever.
- File-> new-> C Project. Enter a project name like "Led Blinking". Click next. Click again next. Choose your MCU whatever you are using and change the frequency to 4000000 for better performance. Click finish.
- In the Project explorer you can see your project. Its like a folder you can copy-paste any file in-from it.
- Right click on the folder (Led blinking)->properties.
- Double click AVR. AVRDude->programmer->new.
- From the long list choose your programmer hardware like usbtiny or STK500 (For BRiCS students choose USBtiny simple……. ). Click OK. Click APPLY.
7. Click Target Hardware. Connect your programmer to MCU,
then click "Load from MCU" it'll automatically detect which MCU
you have attached. Selecting
a MCU manually does not help if a error is coming while clicking on load
button. Click APPLY.
8. Under C/C++
Build-> settings on right side choose first 4 boxes.
9. In tool settings->AVR compiler-> Optimazation, choose size optimization from "Optimazation level". Click APPLY. Click OK.
So your first
project ready to start with. Now you can either copy any .c file in that folder
or create yourself (right click on folder->new->source file).Double click on that
.c file and write your program for BLINKING LED.
blinking_led.c Link Broken? Post a comment, i'll renew it.
Post a Comment
No comments:
Post a Comment