搭建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 TypeSelect 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 FrequencySelect 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,

 

 

转载于:https://www.cnblogs.com/irving314/archive/2011/07/18/eclipseavr_newproject.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值