(1)可以實現(xiàn) (2)文件格式是由用戶自己去實現(xiàn),庫只負責把數(shù)據(jù)寫入U盤,不對文件格式作任何處理。如:123.DOC,那么需要你把數(shù)據(jù)封裝成DOC格式再寫入U盤,在PC上用Word打開即可
謝謝了,好的再請教時只在一個版面回復(fù)!
有誰用過Silion Laboratories IDE的嗎?我把LIB文件加到Project中,然后打開它里面什么也沒有。編譯還是錯的。誰來救救我啊!
已經(jīng)給你發(fā)了參考程序.請到你發(fā)貼地方下載.
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內(nèi),芯片選擇Atmega128; Attitional lib.填入CH375HFB; 庫文件復(fù)制到\ICC\include,頭文件復(fù)制到\ICC\lib并更名為libCH375HFB.a; 編譯運行,出現(xiàn)同樣的錯誤
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),結(jié)果還是一樣
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 怎么添加庫文件??? 謝謝啦?。?/p>
是ARM的編譯器么?若是,該主題首帖上有啊
不是arm,用codewarrior 3.1 ,單片機是freescale的s12s系列的
采用哪款芯片,CH374/CH375?下載CH374LIB.ZIP/CH375LIB.ZIP,..\MC9S12下的庫 添加的方法應(yīng)該和ARM的一樣,可以先試試
我們現(xiàn)在只有支持這個的庫: MC9S12: Motorola/Freescale MC9S12系列單片機 | | |-- FILELIBQ: 增強版U盤文件級子程序庫, Banked Memory Model | | |-- FILELIBQ_SM: 增強版U盤文件級子程序庫, Small Memory Model
CH375文件系統(tǒng)庫-CH375HFx.LIB,這個庫文件在哪邊啊?怎么在KEIL里找不到啊?