我现在编写了一个程序 请看
#include<reg52.h>
sbit di=p1^0;
void main()
while(1){ d1=0;
}
出现了这样的问题
Build target 'Target 1'
assembling STARTUP.A51...
A51 MACRO ASSEMBLER V8.01 - SN: Eval Version
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2007
"F:机器人C51BINA51.EXE" "STARTUP.A51" SET (SMALL) DEBUG EP
A51 FATAL ERROR -
FILE: STARTUP.A51
ERROR: FILE DOES NOT EXIST
A51 TERMINATED.
Target not created
帮我看看该怎么修改 谢谢
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
#include<reg52.h>
sbit di=p1^0; //p1^0是不是应该是P1^0
void main()
while(1){ d1=0; //d1哪里来的?
}
重新编写了一遍
#include<reg52.h>
sbit di=P1^0;
void main(void)
{while(1){di=0;
}
}
Build target 'Target 1'
assembling STARTUP.A51...
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?C_START
MODULE: STARTUP.obj (?C_STARTUP)
ADDRESS: 080AH
Program Size: data=9.0 xdata=0 code=15
creating hex file from "wu"...
"wu" - 0 Error(s), 2 Warning(s).
现在显示没有错误
可是用STC-ISP传到板子上面出现以下问题
请看图片
一周热门 更多>