数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 16712|回复: 81

[工仪] 做个电解电容耐压测试/稳压二极管测试仪(N76E003开源)

    [复制链接]
发表于 2019-10-2 15:09:36 | 显示全部楼层
本帖最后由 wuheart 于 2019-10-2 16:06 编辑

USER\main.c(1): warning C500: LICENSE ERROR (R207(3): REGISTRY READ ERROR)
sys.h(4): warning C318: can't open file 'Common.h'
sys.h(5): warning C318: can't open file 'Function_Define.h'
sys.h(6): warning C318: can't open file 'SFR_Macro.h'
KEY.h(8): error C129: missing ';' before 'Key_Value'
compiling ADC.c...
这是怎么回事,编译不了,报错
回复 支持 反对

使用道具 举报

发表于 2019-10-3 09:48:05 | 显示全部楼层
本帖最后由 wuheart 于 2019-10-3 10:11 编辑

Rebuild target 'USER'
compiling main.c...
..\USER\main.c(1): warning C318: can't open file 'sys.h'
..\USER\main.c(8): warning C206: 'Sys_Init': missing function-prototype
..\USER\main.c(11): warning C206: 'ADC_Measure_Service': missing function-prototype
..\USER\main.c(12): error C202: 'ADC_Data_Updata': undefined identifier
..\USER\main.c(14): error C202: 'ADC_Data_Updata': undefined identifier
..\USER\main.c(19): error C202: 'ADC_VBUS_Value': undefined identifier
..\USER\main.c(21): error C202: 'ADC_VBUS_Value': undefined identifier
..\USER\main.c(25): error C202: 'ADC_VBUS_Value': undefined identifier
..\USER\main.c(30): error C202: 'ADC_VH_Value': undefined identifier
..\USER\main.c(32): error C202: 'ADC_VH_Value': undefined identifier
..\USER\main.c(34): error C202: 'ADC_VH_Value': undefined identifier
..\USER\main.c(36): error C202: 'ADC_VH_Value': undefined identifier
..\USER\main.c(40): error C202: 'ADC_VH_Value': undefined identifier
..\USER\main.c(45): error C202: 'Key_Value': undefined identifier
..\USER\main.c(47): error C202: 'Key_Value': undefined identifier
..\USER\main.c(49): error C202: 'Key_Value': undefined identifier
..\USER\main.c(52): error C202: 'Key_Value': undefined identifier
..\USER\main.c(54): error C202: 'Key_Value': undefined identifier
compiling Common.c...
assembling STARTUP.A51...
compiling ADC.c...
..\SYS\ADC.c(33): error C202: 'BOOL': undefined identifier
..\SYS\ADC.c(33): error C141: syntax error near 'SUB_MARK'
..\SYS\ADC.c(58): error C202: 'SUB_MARK': undefined identifier
compiling Base_Timer.c...
compiling KEY.c...
compiling LED.c...
..\SYS\LED.c(55): error C202: 'P15': undefined identifier
..\SYS\LED.c(66): error C202: 'P15': undefined identifier
..\SYS\LED.c(79): error C202: 'P15': undefined identifier
compiling sys.c...
compiling UART.c...
Target not created.
Build Time Elapsed:  00:00:01
缺的几个头文件已经加了 是用KEIL 这个软件吗,有没有什么目录 路径结构
回复 支持 反对

使用道具 举报

发表于 2019-10-4 01:03:01 | 显示全部楼层
本帖最后由 wuheart 于 2019-10-5 11:18 编辑

Rebuild target 'Target 1'
compiling main.c...
compiling KEY.c...
compiling ADC.c...
SYS\ADC.c(33): error C202: 'BOOL': undefined identifier
SYS\ADC.c(33): error C141: syntax error near 'SUB_MARK'
SYS\ADC.c(58): error C202: 'SUB_MARK': undefined identifier
compiling LED.c...
compiling Base_Timer.c...
compiling sys.c...
compiling UART.c...
assembling STARTUP.A51...
Target not created.
Build Time Elapsed:  00:001
把头文件路径设置了,现在是这样的,
回复 支持 反对

使用道具 举报

发表于 2022-4-29 11:13:04 | 显示全部楼层
lailai518 发表于 2022-4-28 20:39
兄弟,您这个报错解决了吗?是哪的问题,我这边的也是报这个
compiling ADC.c...
SYS\ADC.c(33): error C ...

加新唐例程里面 ,例程文件名路径都不能改 编好的HEX
https://pan.baidu.com/s/117ygt-CAsLz2w6tSSIbGnQ?pwd=qdjn

提取码qdjn
回复 支持 反对

使用道具 举报

发表于 2022-5-5 10:59:56 | 显示全部楼层
本帖最后由 wuheart 于 2022-5-5 11:13 编辑
lailai518 发表于 2022-5-4 10:39
是放在这里吗?还是编译不了呀

放到sample code 里面  相当于 这个也是一个例程  这个可以编https://pan.baidu.com/s/1hplrQg_EzdikACRNJfHyKQ?pwd=ssd4
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-7-22 05:05 , Processed in 0.093600 second(s), 9 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

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