这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 综合技术 » 基础知识 » STC,Keil STC单片机的Keil编译问题

共4条 1/1 1 跳转至

STC,Keil STC单片机的Keil编译问题

院士
2006-09-17 18:14:16     打赏
STC,Keil STC单片机的Keil编译问题



关键词: 单片机     编译     问题    

院士
2006-12-22 22:43:00     打赏
2楼
问 在keil如果选择STC89c51,虽说有256B RAM,但如果RAM用量超过128B时,编译会出错,通不过。但是如果选择AT89S52却没有以上问题!!
希望版主可以做一个真正好用的STC89C51 Keil文件! 1: 跟STC没关系还是你KEIL用的不熟 2: 为什么只说半截话呢?我也想知道原因. 3: idata定义变量的时候再加一个idata 另外的128b 就可以用了 :)
如 char idata i; 4: 但是为什么用AT89S52却可以呢?人家也是128+128的啊 5: 这是选择ATC89C51RC时的编译出错信息*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?FRECREAD?MAIN
*** ERROR L107: ADDRESS SPACE OVERFLOW
    SPACE:   IDATA   
    SEGMENT: ?ID?MAIN
    LENGTH:  002BH
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  ICYCLEPREV
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  ICYCLECURR
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  DISPBUFFER
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  IFREC
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  ICYCERRPREV
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  ICYCERRCURR
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  CCYCLES
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  IADCDATA
    SEGMENT: ?ID?MAIN
*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT
    SYMBOL:  DISPDATA
    SEGMENT: ?ID?MAIN
Program Size: data=141.2 xdata=6 code=4876
Target not created

这是选择ATC89C51RC时的编译出错信息 6: 这是选择AT89S52是的编译信息Build target 'Target 1'
assembling STARTUP.A51...
compiling ZLG7289.C...
compiling main.c...
compiling adc.c...
compiling SysTimer.c...
compiling PCA.c...
compiling eeprom.c...
compiling queue.c...
compiling memory.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?FRECREAD?MAIN
Program Size: data=141.2 xdata=6 code=4876
creating hex file from "ZLG7289"...
"ZLG7289" - 0 Error(s), 1 Warning(s). 7: keil中AT89S52的描述8051 based Full Static CMOS controller with Three-Level Program
Memory Lock, 32 I/O lines, 3 Timers/Counters, 8 Interrupts Sources,
Watchdog Timer, 2 DPTRs, 8K Flash Memory, 256 Bytes On-chip RAM 8: keil中STC89C51RC的描述Package:PLCC44,PDIP40,PQFP44
Operating TEMP:0 to +70;
Power Supply:4.5V~5.5V
Operating Frequency:0 to 80 MHz,
an 8051 compatible controller
32 I/O Lines, Dual DPTR,
ISP/IAP,X2 mode,
3 Timer/Counter,
8 Interrupts/4 priority levels,
Watchdog Timer,
512 bytes on-chip RAM,
4K Flash memory,
1K EEPROM. 9: squarelook:你看这是不是和keil文件有关啊 10: 在KEIL中哪里能找到STC89C51RC这个片子啊在KEIL中哪里能找到STC89C51RC这个片子啊?KEIL好象不直接支持STC的吧?

专家
2022-08-20 10:47:54     打赏
3楼

感谢分享


专家
2022-08-20 10:51:36     打赏
4楼

感谢分享


共4条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]