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

搭建Eclipse IDE AVR开发平台

可以看到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,

搭建Eclipse IDE AVR开发平台

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

点Next,

搭建Eclipse IDE AVR开发平台

可选择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,

搭建Eclipse IDE AVR开发平台

 

 

原文链接: https://www.cnblogs.com/irving314/archive/2011/07/18/eclipseavr_newproject.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍

    搭建Eclipse IDE AVR开发平台

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/28865

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年2月8日 上午6:18
下一篇 2023年2月8日 上午6:19

相关推荐