我用CH375作USB主机方式,以串口方式读取U盘数据。参考贵公司提供的CH375LIB\AVR\FILELIBB\EXAM1 CH375HFT.C程序,添加的头文件是CH375HFB.H。但为什么编译出现这种错误呢?我用的是ICC编译器。 CH375HFT.C程序的头文件也就只有CH375HFB.H这一个!
E:\iccv7avr\bin\imakew -f CH375TEST8.mak iccavr -o CH375TEST8 -g -e:0x4000 -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:16 -beeprom:0.512 -fihx_coff -S2 @CH375TEST8.lk -lcatmega !ERROR file 'ch375test8.o': undefined symbol '_pDISK_BASE_BUF' !ERROR file 'ch375test8.o': undefined symbol '_CH375LibConfig' !ERROR file 'ch375test8.o': undefined symbol '_CH375DiskReady' !ERROR file 'ch375test8.o': undefined symbol '_CH375Init' !ERROR file 'ch375test8.o': undefined symbol '_CH375IntStatus' !ERROR file 'ch375test8.o': undefined symbol '_delay1us' !ERROR file 'ch375test8.o': undefined symbol '_CH375DiskStatus' !ERROR file 'ch375test8.o': undefined symbol '_LCD_write_char' !ERROR file 'ch375test8.o': undefined symbol '_CH375GetVer' !ERROR file 'ch375test8.o': undefined symbol '_CH375DiskConnect' E:\iccv7avr\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1. Mon Apr 27 15:41:48 2009