Build target 'Target 1'
assembling STARTUP.A51...
compiling DE.c...
linking...
BL51 BANKED LINKER/LOCATER V6.22 - SN: K1RMC-K5I9KC
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009
"STARTUP.obj",
"DE.obj"
TO "DE"
RAMSIZE(256)
*** FATAL ERROR L256: MODULE CONTAINS DUPLICATE SEGMENT NAMES
SEGMENT: ?PR?T?DE
MODULE: DE.obj (DE)
Target not created
在网上找到了这样的答案
(6)L210程序前生成SRC语句Buildtarget'Target1'
设置上的问题,在程序里屏蔽掉#pragmasrc即可。
但不知怎么在程序里屏蔽掉#pragmasrc?
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
#include<reg52.h>
#include<intrins.h>
#include<two.h>
#define uchar unsigned char
uchar bb,aa,num,num1;
void main()
{
TMOD=B00010001;
TH0=(65536-45872)/256;
TL0=(65536-45872)%256;
TH1=(65536-45872)/256;
TL1=(65536-45872)%256;
EA=1;
ET0=1;
ET1=1;
TR1=1;
TR0=1;
aa=B11111110;
bb=B11111110;
while(1);
}
void t()interrupt 1
{
TH0=(65536-45872)/256;
TL0=(65536-45872)%256;
num++;
if(num==20)
{
num=0;
P0=aa;
aa=_crol_(aa,1);
}
}
void T()interrupt 3
{
TH1=(65536-45872)/256;
TL1=(65536-45872)%256;
num1++;
if(num1==30)
{
num1=0;
P0=bb;
bb=_crol_(bb,1);
}
}
一周热门 更多>