如题,CH375库文件怎么使用?
选择与开发环境和控制芯片匹配的库文件加到项目里就行了
我把CH375LIB\AVR\FILELIBB下的.A,.c.,h文件都加到项目里,用的ICC6.31,编译出错。
库文件添加的不正确,参考下面的帖子 /bbs/View.asp?S=101&I=1511
就是那么添加的,还是不行。我把错误贴上来了。 C:\icc\bin\imakew -f u.mak iccavr -c -IC:\icc\include\ -e -l -g -Wa-W D:\chengxu\icc631\CH375HFT.C !E D:\chengxu\icc6\CH375HFB.A(1): unrecognized declaration !E D:\chengxu\icc6\CH375HFB.A(2): syntax error; found `XL' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(3): syntax error; found `H' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(3): syntax error; found `1' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(3): unrecognized declaration !E D:\chengxu\icc6\CH375HFB.A(3): `1D' is a preprocessing number but an invalid integer constant !E D:\chengxu\icc6\CH375HFB.A(3): syntax error; found `1' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(3): unrecognized declaration !E D:\chengxu\icc6\CH375HFB.A(3): syntax error; found `symbols' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(4): syntax error; found `M' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(4): syntax error; found `CH375SRD' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(4): syntax error; found `.' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(4): skipping `.' !E D:\chengxu\icc6\CH375HFB.A(5): syntax error; found `S' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(5): syntax error; found `push_gset1' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(5): syntax error; found `Ref0000' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(6): syntax error; found `S' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(6): syntax error; found `push_gset2' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(6): syntax error; found `Ref0000' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(7): syntax error; found `S' expecting `;' !E D:\chengxu\icc6\CH375HFB.A(7): too many errors C:\icc\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1
单片机型号选择是否正确?建议选择型号在MEGA32以上的单片机进行编译。
我选的128的,能给分析下这个问题吗?
我密码忘了,新弄了个账号,我是楼底……
C:\icc\bin\imakew -f ch375.mak iccavr -c -IC:\icc\include\ -e -DATMEGA -DATMega128 -l -g -Mavr_enhanced D:\chengxu\usb2\CH375HFT.C !E D:\chengxu\usb2\CH375HFB.A(1): unrecognized declaration !E D:\chengxu\usb2\CH375HFB.A(2): syntax error; found `XL' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(3): syntax error; found `H' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(3): syntax error; found `1' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(3): unrecognized declaration !E D:\chengxu\usb2\CH375HFB.A(3): `1D' is a preprocessing number but an invalid integer constant !E D:\chengxu\usb2\CH375HFB.A(3): syntax error; found `1' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(3): unrecognized declaration !E D:\chengxu\usb2\CH375HFB.A(3): syntax error; found `symbols' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(4): syntax error; found `M' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(4): syntax error; found `CH375SRD' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(4): syntax error; found `.' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(4): skipping `.' !E D:\chengxu\usb2\CH375HFB.A(5): syntax error; found `S' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(5): syntax error; found `push_gset1' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(5): syntax error; found `Ref0000' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(6): syntax error; found `S' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(6): syntax error; found `push_gset2' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(6): syntax error; found `Ref0000' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(7): syntax error; found `S' expecting `;' !E D:\chengxu\usb2\CH375HFB.A(7): too many errors C:\icc\bin\imakew.exe: Error code 1 Done: there are error(s). Exit code: 1