IAR3.20如何連結(jié)?
添加方法和添加。C的方法是一樣的
xie xie
D:\iccv7avr\bin\imakew -f TEST3.mak iccavr -o TEST3 -g -e:0x20000 -ucrtatmega.o -bfunc_lit:0x60.0x20000 -dram_end:0xfff -bdata:0x60.0xfff -dhwstk_size:16 -beeprom:0.4096 -fihx_coff -S2 @TEST3.lk F:\USB\CH375\FILELIBB\EXAM6\CH375HFB.A -lcatmega !ERROR file 'CH375HFB.o': undefined symbol 'push_gset1' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset2' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset3' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset4' !ERROR file 'CH375HFB.o': undefined symbol 'push_gset5' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset1' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset2' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset3' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset4' !ERROR file 'CH375HFB.o': undefined symbol 'pop_gset5' !ERROR Function 'putchar' not defined. This is a hardware dependent function, and it is not included in the ICCAVR default library. Please implement this function to match your target requirements. You can find examples of this function under the \examples.AVR directory. Make a copy of a suitable example, add it to your project and modify it if needed. The source code must #include the appropriate C header file (e.g. stdio.h) as it contains the special compiler pragma for 'putchar'.
D:\iccv7avr\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1. Fri Nov 16 00:11:26 2007
看看我上面的錯誤是怎么回事。iccavr 7.13A
CH375例程序在KEIL中編譯通過但無法建立目標文件。如何解決?
你的意思是不能產(chǎn)生HEX文件?
是啊!不知是程序出錯還是KEIL工程設置出錯。我用的是STC89C52單片機。請高手指點一下。不勝感謝!
那肯定是你的設置有問題,編譯成功以后就會自動產(chǎn)生HEX,但是前提是要你設置產(chǎn)生HEX文件才行!!
好的,那我再試試,遇到問題再請教,謝謝
好的,謝謝啦
我在Keil C中添加了CH375HFx.Lib后編譯就出錯了。
Build target 'Target 1' compiling HOST.C... compiling CH375.C... compiling DEVICE.C... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375GETVER?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375DISKQUERY?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEENUMER?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEQUERY?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILELOCATE?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEREADX?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEWRITEX?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375BYTELOCATE?CH375HF6 *** ERROR L107: ADDRESS SPACE OVERFLOW SPACE: IDATA SEGMENT: ?ID?HOST LENGTH: 001EH *** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT SYMBOL: MCMDPARAM SEGMENT: ?ID?HOST *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07AAH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07ADH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07BCH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07C7H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07DDH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07E9H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07EFH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 07F7H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0815H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0843H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0855H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0867H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0879H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 088BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 089DH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 08AFH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 08C1H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 08D3H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 08E5H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 08F6H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0906H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 091BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 091EH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0930H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0933H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0956H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0960H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0970H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 097AH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0980H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0988H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0995H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 099BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09A1H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09ACH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09B3H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09BCH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09D8H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09DCH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09F1H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09F5H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09FBH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 09FFH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0A08H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\DEVICE.obj (DEVICE) ADDRESS: 0A14H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF6.LIB (CH375HF6) ADDRESS: 20E8H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF6.LIB (CH375HF6) ADDRESS: 2100H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF6.LIB (CH375HF6) ADDRESS: 2134H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF6.LIB (CH375HF6) ADDRESS: 218BH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: .\CH375HF6.LIB (CH375HF6) ADDRESS: 218EH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARA
這是庫沒有鏈接成功 你把CH375HFx.Lib這個文件添加到工程中去
請問在凌陽單片機開發(fā)時怎么連接這個庫啊?
太強了 謝謝把這種分析的命令研究出來~~ 學習了,呵呵~~