如何链接CH375文件系统库-CH375HFx.LIB!!(图片)

(1)可以实现 (2)文件格式是由用户自己去实现,库只负责把数据写入U盘,不对文件格式作任何处理。如:123.DOC,那么需要你把数据封装成DOC格式再写入U盘,在PC上用Word打开即可


谢谢了,好的再请教时只在一个版面回复!


有谁用过Silion Laboratories IDE的吗?我把LIB文件加到Project中,然后打开它里面什么也没有。编译还是错的。谁来救救我啊!


已经给你发了参考程序.请到你发贴地方下载.


D:\ICC\bin\imakew -f CH375.MAIN.mak iccavr -c -ID:\icc\include -e -D__ICC_VERSION="7.14C" -DATMEGA -DATMega128 -l -g -Mavr_enhanced -Wf-use_elpm C:\DOCUME~1\Administrator\桌面\CH375_ICC\CH375HFT.C iccavr -o CH375.MAIN -LD:\icc\lib\ -g -e:0x20000 -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:16 -beeprom:0.4096 -fihx_coff -S2 @CH375.MAIN.lk C:\DOCUME~1\Administrator\桌面\CH375_ICC\CH375HFB.A -lcatm128 !ERROR file 'CH375MAI.o': undefined symbol 'push_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'push_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'pop_gset5' D:\ICC\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1.

我用的是ICC7.14C,是怎么回事呀


这是6.31版本下的例程:UploadImages/20092171110731.rar


直接拿UploadImages/20092171110731.rar这个例程, 在ICC6.31A内,芯片选择Atmega128; Attitional lib.填入CH375HFB; 库文件复制到\ICC\include,头文件复制到\ICC\lib并更名为libCH375HFB.a; 编译运行,出现同样的错误

D:\icc 6.31A\bin\imakew -f HOST.mak iccavr -o HOST -LD:\icc\lib -g -ucrtatmega.o -bfunc_lit:0x8c.0x20000 -dram_end:0x10ff -bdata:0x100.0x10ff -dhwstk_size:16 -beeprom:1.4096 -fihx_coff -S2 @HOST.lk C:\DOCUME~1\Administrator\桌面\AVR375ICC\CH375HFB.A -lCH375HFB -lcatmega !ERROR file 'CH375MAI.o': undefined symbol 'push_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'push_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'pop_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset5' !ERROR file 'printf.o': undefined symbol '_putchar$device_specific$' //这个错误是由于没有定义putchar()和getchar()子程序引起的 D:\icc 6.31A\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1


(1)在ICC6.31A下,例程不需要做任何修改,直接编译就行了 (2)库的名称也不需要修改,你修改的是WINAVR GCC下库的命名方式 (3)库的添加方式也不对,与添加C文件的方法一样,参考该主题的首贴


还是不对,依照您所说的,直接编译(但是有修改了下安装目录,我的安装目录不是在D:\Program Files\ICC),结果还是一样

D:\icc 6.31A\bin\imakew -f HOST.mak iccavr -c -ID:\icc\include -e -DATMEGA -DATMega128 -l -g -Mavr_enhanced C:\DOCUME~1\Administrator\桌面\AVR375ICC\CH375HFT.C !W D:/icc/include/stdio.h(10):[warning] unknown #pragma device_specific_function iccavr -o HOST -LD:\icc\lib -g -ucrtatmega.o -bfunc_lit:0x60.0x20000 -dram_end:0xfff -bdata:0x60.0xfff -dhwstk_size:16 -beeprom:1.4096 -fihx_coff -S2 @HOST.lk C:\DOCUME~1\Administrator\桌面\AVR375ICC\CH375HFB.A -lcatmega !ERROR file 'CH375HFT.o': undefined symbol 'push_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'push_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'push_gset5' !ERROR file 'CH375HFT.o': undefined symbol 'pop_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset1' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset2' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset3' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset4' !ERROR file 'CH375SEC.o': undefined symbol 'pop_gset5' !ERROR file 'CH375MAI.o': undefined symbol 'pop_gset5' !ERROR file 'printf.o': undefined symbol '_putchar$device_specific$' D:\icc 6.31A\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1


请问: 用codewarrior 怎么添加库文件啊? 谢谢啦!!


是ARM的编译器么?若是,该主题首帖上有啊


不是arm,用codewarrior 3.1 ,单片机是freescale的s12s系列的


采用哪款芯片,CH374/CH375?下载CH374LIB.ZIP/CH375LIB.ZIP,..\MC9S12下的库 添加的方法应该和ARM的一样,可以先试试


我们现在只有支持这个的库: MC9S12: Motorola/Freescale MC9S12系列单片机 | | |-- FILELIBQ: 增强版U盘文件级子程序库, Banked Memory Model | | |-- FILELIBQ_SM: 增强版U盘文件级子程序库, Small Memory Model


CH375文件系统库-CH375HFx.LIB,这个库文件在哪边啊?怎么在KEIL里找不到啊?


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