搭建Eclipse IDE AVR开发平台

1.准备WINWVR

下载安装最新版WINAVR,地址:http://winavr.sourceforge.net/index.html

2.下载安装Eclipse C/C++

下载地址:http://www.eclipse.org/downloads/,下载后解压无需安装可直接运行。

3.下载安装Eclipse AVR插件

下载地址:http://avr-eclipse.sourceforge.net/wiki/index.php/Plugin_Download,解压到Eclipse C/C++安装目录。

此时,开发环境准备完毕,开始建立一个工程。

File-->New->Project --> C Project,

可以看到AVR Cross Target Application和AVR Cross Target Static Library两种类型的工程。

AVR Cross Target Application建立针对AVR器件的应用程序,而AVR Cross Target Static Library用来建通用型函数库。

选择AVR Cross Target Application ,在Toolchain可以看到AVR-GCC Toolchain,Project name输入AVr_Test,点Next,

两种配置模式可独立保存配置。Debug for仿真调试,Release生成hex格式代码。点击Advanced settings... 进行相应配置,也可以在 工程建立后通过project properties(工程属性)来建立或更改配置。

点Next,

可选择MCU型号和晶振频率,

MCU Type Select the target processor for your project out of the list of selected processor types. This setting is used by some tools of the toolchain to generate the correct code for the target processor.
MCU Frequency Select the target clock frequency for your project. This is just passed on to the compiler as a #define F_CPU <MCU Frequency> , which programms requiring exact timing can use for their internal timing calculations

可在project properties(工程属性)更改上述设置,此处保留默认值,然后点击Finish,

 

 

posted @ 2011-07-18 22:09  Irving314  阅读(5104)  评论(1编辑  收藏  举报