一乐电子

一乐电子百科

 找回密码
 请使用微信账号登录和注册会员

QQ登录

只需一步,快速开始

快捷登录

手机号码,快捷登录

搜索
查看: 6625|回复: 28
收起左侧

[avr] GANDF上传的M8电子负载代码编译错误,求帮助

[复制链接]
发表于 2013-10-12 12:29 | 显示全部楼层 |阅读模式
使用ICCAVR6.31和7.22都出错,不知道是设置问题还是怎么回事,我只想把现实部分改为VFD,求帮助,现有能编译过能正常运行后,我自己再改VFD就可以了,



https://www.yleee.com.cn/forum.php?mod=viewthread&tid=6795



发表于 2013-10-12 13:01 | 显示全部楼层
为什么我的电子负载总是掉固件的
发表于 2013-10-12 13:08 | 显示全部楼层
应该是avrstudio+gcc的环境吧
发表于 2013-10-12 13:11 | 显示全部楼层
最后一个论坛附件文件坏了,打开有CRC错误,建议作者重新上传
发表于 2013-10-12 13:19 | 显示全部楼层
看头文件的名字 判断用的编译环境
发表于 2013-10-18 13:01 | 显示全部楼层
没有权限,无法下载!郁闷
发表于 2013-10-18 13:55 | 显示全部楼层
看看头文件应该可以看出是用什么环境

权限不够,还在努力
发表于 2013-10-26 22:12 | 显示全部楼层
我也看不到
发表于 2013-11-26 16:29 | 显示全部楼层
我下了,也出错    iccavr -c -ID:\PROGRAM\ECAD\icc\include\ -e -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-ID:\iccv7avr\lib -MHasMul -MEnhanced -Wa-W -Wf-str_in_flash  ..\Src\delay.c
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\delay.c: [warning] in function 'delay_us', argument 'n' has no use.
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\delay.c: [warning] in function 'delay_ms', argument 'n' has no use.
    iccavr -c -ID:\PROGRAM\ECAD\icc\include\ -e -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-ID:\iccv7avr\lib -MHasMul -MEnhanced -Wa-W -Wf-str_in_flash   ..\Src\div16u.s
    iccavr -c -ID:\PROGRAM\ECAD\icc\include\ -e -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-ID:\iccv7avr\lib -MHasMul -MEnhanced -Wa-W -Wf-str_in_flash  ..\Src\key.c
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(38):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(47):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(60):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(116):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(125):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(138):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(180):[warning] missing return value
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c: [warning] in function 'rotary_key_step_set', argument 'max' has no use.
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c(201):[warning] missing return value
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\key.c: [warning] in function 'rotary_key2_step_set', argument 'max' has no use.
    iccavr -c -ID:\PROGRAM\ECAD\icc\include\ -e -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-ID:\iccv7avr\lib -MHasMul -MEnhanced -Wa-W -Wf-str_in_flash  ..\Src\lcd1604.c
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(55):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(86):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(87):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(96):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(97):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(107):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(115):[warning] declaration of `LCD_write_byte' does not match previous declaration at D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(96)
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(116):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(122):[warning] declaration of `LCD_write_half_byte' does not match previous declaration at D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(116)
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(133):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c: [warning] in function 'LCD_set_address', argument 'Line_Row' has no use.
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(175):[warning] declaration of `LCD_clear' does not match previous declaration at D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(86)
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(177):[warning] calling a function without prototype may cause runtime errors if the function
does not return int or unsigned int
!W D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(187):[warning] declaration of `LCD_set_char' does not match previous declaration at D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\lcd1604.c(87)
    iccavr -c -ID:\PROGRAM\ECAD\icc\include\ -e -D__ICC_VERSION=722 -DATMega8  -l -g -Wa-ID:\iccv7avr\lib -MHasMul -MEnhanced -Wa-W -Wf-str_in_flash  ..\Src\main.c
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): syntax error; found `{' expecting `;'
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): skipping `{'
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
发表于 2013-11-26 16:31 | 显示全部楼层
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): unrecognized declaration
!E D:\stm8\M8数控电源V7源代码\M8数控电源V7\Src\main.h(83): too many errors

本版积分规则

QQ|一淘宝店|手机版|商店|电子DIY套件|一乐电子 ( 粤ICP备09076165号 ) 公安备案粤公网安备 44522102000183号

GMT+8, 2024-5-2 13:20 , Processed in 0.071468 second(s), 43 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表