zhaoxukiller 发表于 2010-4-8 22:22:02

AVR官方开发工具最新版本AvrStudio 4.18尝鲜!

1 今天使用AvrStudio4.10的时候出现崩溃现象,提示停止工作(本人用WIN7系统),好多朋友告诉我程序员该用XP,最好WIN2000,我不信这个邪。

2 下午开始找atmel公司的官方网页,英文4级水平,找了半天终于找到http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725,下载最新版本4.18,不过需要注册一下姓名,公司,单位,我都填的“加拿大”。顺利下载。

3 开始以管理员身份运行,如图1

4 新建工程,然后选择C开发(AVR GCC),千万别选ASM,也就是汇编,如图2,也就是这个GCC,让我吃尽苦头...这是后话

5 输入名字,然后选择好单片机型号,开始,添加一个C程序,然后开始编译。问题出来了...苦难的开始。如图3

6 提示我找不到GCC的一个文件,WINAVR ,这是个什么东西呢? 我上网查了一下,找到了一个英文资料下面列出一点
To build avr-gcc projects, WinAVR must be installed or custom build tools defined.

ans1:    Try re-installing WinAVR - it puts an entry in the registry so that Studio can find it. Nothing should be needed on your part for Studio to detect its presence.
最新版本WinAVR 20060421 下载地址:

http://sourceforge.net/projects/winavr/files/

ans2:   Project>Configuration Options>Custom Options
uncheck "Use WinAVR"
(Because it my computer is not able to automatically find it for some reason)
Press the browse button to the right of avr-gcc and make area and find the the exe. manually.

avrgcc: C:\WinAVR-20090313\bin\avr-gcc-4.3.3.exe
make: C:\WinAVR-20090313\utils\bin\make.exe

Press OK~
Thencompliedprogram (F7) and it worked

但是我找到的WINAVR却不是在该网站找到的,随便下载了一个安装就行了,发现一个致命的问题,float这个型的数据用不了拉。

7 然后按照图5 6 安装,可以运行,但是编译又出错!!! 天呢,我命咋就这么苦,发现头文件没定义!
继续点Project>Configuration Options》》include directors 设置一下ICC的头文件库。然后编译,一切搞定! 呵呵

8 在线仿真也可以用! 呵呵 如图7 8

心得:耐心,要懂英文。或者找个高手指点!

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544583.jpg
(原文件名:1.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544584.jpg
(原文件名:2.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544585.jpg
(原文件名:3.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544586.jpg
(原文件名:4.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544587.jpg
(原文件名:5.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544588.jpg
(原文件名:6.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544589.jpg
(原文件名:7.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544590.jpg
(原文件名:8.jpg)

http://cache.amobbs.com/bbs_upload782111/files_28/ourdev_544591.jpg
(原文件名:9.jpg)

dianzidog 发表于 2010-4-8 22:35:38

winavr最新是09的,06好像有bug

zhaoxukiller 发表于 2010-4-8 22:40:08

哦,忘记说了winavr是最新的 2010

sky_walker 发表于 2010-4-9 00:09:13

支持下

sky_walker 发表于 2010-4-9 00:10:31

支持下

wangxiaoacc 发表于 2010-4-30 08:43:52

支持下

smartzou 发表于 2010-4-30 08:51:28

楼主,能不能直接上传 AvrStudio 4.18 的安装包 呢?我这边打不开

archeng504 发表于 2010-4-30 17:05:13

哈哈,我英语4级没过,都能不用半天就找到了http://www.atmel.com/dyn/products/tools_card.asp?tool_id=2725,可见4级过与不过,都差不多,想当年,因为4级不过,给人卡住了,真郁闷……

zhuyi2576 发表于 2010-5-1 10:41:24

还在用4.16,不知道新版本有什么更好用的地方

ouyj_0210 发表于 2011-3-23 22:19:51

mark

kuailesyj 发表于 2012-10-11 19:29:03

mark                  
页: [1]
查看完整版本: AVR官方开发工具最新版本AvrStudio 4.18尝鲜!