关于KEIL加载LIB文件的问题。

我使用的是AT89C51单片机,使用KEIL软件,按照置顶的方法加载了CH375HF4.LIB文件,如图,第一个编译当前文件时,0错0警告,第二个build target时,就不行了,如下。。

2uooy28.jpg

Build target 'Target 1' compiling CH375HFT.C... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEMODIFY?CH375MAI *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375BYTEREAD?CH375BYT *** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: IDATA SEGMENT: ?ID?CH375HFT LENGTH: 0024H *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: MCMDPARAM SEGMENT: ?ID?CH375HFT *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 0826H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 0832H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 0836H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 084BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 0902H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 26F0H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 20C0H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 20E6H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 211BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 2150H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 2155H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 2164H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 2169H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 247CH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 24A1H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 24C1H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 24C8H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 24DDH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375MAI) ADDRESS: 24E8H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 29FBH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 2A2DH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1D47H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1DF8H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1DFBH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 19F5H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1A03H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1B00H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF4.LIB (CH375BYT) ADDRESS: 1B03H Program Size: data=121.5 xdata=541 code=9409 Target not created

倒底怎么回事呀?

[Emot]27[/Emot]


参考这个例程:UploadImages/2009568182651.rar


另外AT89C51资源是不够的,要求代码空间不小于12K,RAM不小于700个字节,必要资源必须保证.


你把编译的单片机型号选择成AT89C52就可以编译了,但是要是烧到单片机里面去的话要按照3楼所说的来选择单片机咯.


谢谢上面三位的回答。。。。

我想问一下,能不能推荐我一个合适的而且市面上常见的51单片机,谢谢啦。


51单片机最普通了,常用的很多,如NXP,ATMEL、SST等等,如SST89E54RD 具体型号可以去官网查询


谢谢六楼回复,我的意思是,对CH375完全合适的单片机,现在真不知道用哪款好了。。。


选型主要考虑以下几个方面: (1)CH375的接口:并口或串口 (2)子程序库需要的资源:1OK以上程序空间,最少600字节的RAM 满足上述2个条件单片机都可以


太谢谢了


只有登录才能回复,可以选择微信账号登录