Friday, July 20, 2012

Installing Eclipse- - Complete Walk-through

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 Screen
Eclipse Welcome Window


Close the Welcome window then you can see a window like this.
Eclipse Main Screen












Eclipse AVR Programmer List

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.

  1. File-> Switch Workspace-> Other. Click on Browse. Choose C drive and create a new folder named BRICS or whatsoever.
  1. 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.
  1. In the Project explorer you can see your project. Its like a folder you can copy-paste any file in-from it.
  1. Right click on the folder (Led blinking)->properties. 
  1. Double click AVR. AVRDude->programmer->new.
  1. 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.
Eclipse Microcontroller List

8. Under C/C++ Build-> settings on right side choose first 4 boxes. 
Eclipse Settings Page

 9. In tool settings->AVR compiler-> Optimazation, choose size optimization from "Optimazation level". Click APPLY. Click OK.
Eclipse Optimization Page



















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.

 

Please Share it! :)

Post a Comment

No comments: