[技术问答] CVAVR 无法用double类型?

[复制链接]
 楼主| 草莓咖啡因 发表于 2017-2-10 17:12 | 显示全部楼层 |阅读模式
单片机是ATXMEGE64D3,编程中使用到double类型数据,但出现警告如下:
Warning: E:\interface.c(56): the 'double' data type will be supported only in the 'Professional' version, defaulting to 'float'

实际测试中,确实将我的double类型的数据全部默认为float数据,导致我的程序无法得到正确的结果。跪求解决方案?是我安装的软件不对?应该去找所为的'professional'version?
wahahaheihei 发表于 2017-2-10 18:59 | 显示全部楼层
警告提示是说只能用于专业版,你这个玩的啥
wahahaheihei 发表于 2017-2-10 19:00 | 显示全部楼层
你应该用专业版吧,或者**软件,应该是有这个限制。或者用开源的开发软件试试看。
huangcunxiake 发表于 2017-2-10 19:45 | 显示全部楼层
软件权限问题,人家设置了,专业版可以
zhuotuzi 发表于 2017-2-11 12:26 | 显示全部楼层
网上有**版,楼主可以用**的。
捉虫天师 发表于 2017-2-11 13:29 | 显示全部楼层
提醒了,你这个版本不允许使用,是免费版的吧
598330983 发表于 2017-2-11 19:59 | 显示全部楼层
楼主可以用WINAVR,开源的,免费。
 楼主| 草莓咖啡因 发表于 2017-2-13 11:01 | 显示全部楼层
wahahaheihei 发表于 2017-2-10 19:00
你应该用专业版吧,或者**软件,应该是有这个限制。或者用开源的开发软件试试看。 ...

好的,谢谢,我再重新找个**版的安装试试
 楼主| 草莓咖啡因 发表于 2017-2-13 11:48 | 显示全部楼层
huangcunxiake 发表于 2017-2-10 19:45
软件权限问题,人家设置了,专业版可以

专业版是不是要购买软件的?我在网上只能找到**的,还是无法用double类型
 楼主| 草莓咖啡因 发表于 2017-2-13 11:49 | 显示全部楼层
598330983 发表于 2017-2-11 19:59
楼主可以用WINAVR,开源的,免费。

我接触AVR单片机不多,只是手头的项目用到,从CVAVR转到WINAVR,代码不是要重写?
 楼主| 草莓咖啡因 发表于 2017-2-13 11:51 | 显示全部楼层
难道没人遇到过相似的问题么?或者是我电脑系统不兼容?
springvirus 发表于 2017-2-13 16:57 | 显示全部楼层
草莓** 发表于 2017-2-13 11:49
我接触AVR单片机不多,只是手头的项目用到,从CVAVR转到WINAVR,代码不是要重写? ...

偶是用AVR STUDIO + AVR ISP MKII,好用
huangcunxiake 发表于 2017-2-13 18:42 | 显示全部楼层
草莓** 发表于 2017-2-13 11:51
难道没人遇到过相似的问题么?或者是我电脑系统不兼容?

WinARV用的是GCC的标准。
 楼主| 草莓咖啡因 发表于 2017-2-17 14:11 | 显示全部楼层
本帖最后由 草莓** 于 2017-2-17 14:12 编辑

通过各方面帮助,知道了问题的根源,CVAVR不支持double类型,原文如下:
 楼主| 草莓咖啡因 发表于 2017-2-17 14:11 | 显示全部楼层
Limitations                                                                                                                                 Previous Top Next  

--------------------------------------------------------------------------------

The current version of the CodeVisionAVR C compiler has the following limitations:
·      the long long, double, _Complex and _Imaginary data types are not yet supported
·      the bit data type is not supported for the reduced core, used in chips like ATtiny10
·      functions with variable number of parameters are not supported for reduced core chips
·      signal handling (signal.h) is not implemented yet
·      date and time functions (time.h) are not implemented yet
·      extended multibyte/wide character utilities (wchar.h) are not implemented
·      wide character classification and mapping utilities (wctype.h) are not implemented
·      the printf, sprintf, snprintf, vprintf, vsprintf and vsnprintf Standard C Input/Output Functions can’t output strings longer than 255 characters for the %s format specifier
·      the size of the compiled code is limited for the Evaluation version
·      the libraries for Philips PCF8563, Philips PCF8583, Maxim/Dallas Semiconductor DS1302, DS1307, 4x40 character LCD, XMEGA TWI functions and EBI support are not available in the Evaluation version
·      the libraries for color graphic LCDs (ILI9325, SSD1289, SSD1963, SSD2119 and XG7100) are available and can be used only with Advanced or Professional licenses.
zhuotuzi 发表于 2017-2-17 17:10 | 显示全部楼层
不支持的原因可能是考虑到硬件配置不够,如果有的话会严重消耗硬件资源。
598330983 发表于 2017-2-19 18:52 | 显示全部楼层
你不多都还用这么生僻的开发工具,怎么不直接用AVR自己的开发工具啊,Atmel Studio IDE
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

24

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部

3

主题

24

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部