我是用lpc2212,请问现在的库,支持长文件命名吗?我用ch375
我们的库不支持长文件名称,但是我们有例子程序是支持的,你可以看51下面的EXAM11,那个就支持长文件名,可能改成ARM的需要注意大小端的控制
大小端,是什么意思?
我要发多少的时间可以解决!!
列例子程序是支持的,你可以看51下面的EXAM11,那个就支持长文件名 编译后不能正常运行yun,通讯232,一直重复显示 start Build target 'Target 1' compiling EXAM11.C... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEREAD?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEWRITE?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_XWRITETOEXTBUF?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_XREADFROMEXTBUF?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOIRAM?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOIRAM1?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOXRAM?EXAM11 *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECREATE MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILELOCATE MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEWRITEX MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375LIBCONFIG MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEERASE MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKREADY MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INIT MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKSTATUS MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEOPEN MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375GETVER MODULE: EXAM11.obj (EXAM11) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) ADDRESS: 20BBH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: EXAM11.obj (EXAM11) ADDRESS: 20C6H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F82H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F85H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F8AH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F90H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F92H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F97H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F9BH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: EXAM11.obj (EXAM11) ADDRESS: 1FA0H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375LIBCONFIG MODULE: EXAM11.obj (EXAM11) ADDRESS: 1FFFH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375GETVER MODULE: EXAM11.obj (EXAM11) ADDRESS: 2007H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INIT MODULE: EXAM11.obj (EXAM11) ADDRESS: 2013H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F18H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: EXAM11.obj (EXAM11) ADDRESS: 1F2FH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 1C90H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) ADDRESS: 1D0BH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) ADDRESS: 1DEEH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) ADDRESS: 1E21H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 0055H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) ADDRESS: 00D1H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) ADDRESS: 019FH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECREATE MODULE: EXAM11.obj (EXAM11) ADDRESS: 01A4H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) ADDRESS: 01BAH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: EXAM11.obj (EXAM11) ADDRESS: 0202H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECREATE MODULE: EXAM11.obj (EXAM11) ADDRESS: 0223H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILELOCATE MODULE: EXAM11.obj (EXAM11) ADDRESS: 025FH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) ADDRESS: 0286H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DBDH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILELOCATE MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DC0H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DD0H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DD3H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DD8H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DF9H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DIRTYBUFFER MODULE: EXAM11.obj (EXAM11) ADDRESS: 0DFEH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILECLOSE MODULE: EXAM11.obj (EXAM11) ADDRESS: 0E01H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: EXAM11.obj (EXAM11) ADDRESS: 0E24H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEREADX MODULE: EXAM11.obj (EXAM11) ADDRESS: 17DBH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILELOCATE MODULE: EXAM11.obj (EXAM11) ADDRESS: 19B6H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: EXAM11.obj (EXAM11) ADDRESS: 19DAH *** WARNING L2: REFERENCE MADE TO UNRESOLV
你的库没有链接进去.出现这么多警告运行时会出错的
长文件名使用的是UNICODE保存文件名,基本上不考虑为好。
没办法,要用到!
Build target 'Target 1' compiling EXAM11.C... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEREAD?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEWRITE?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOIRAM?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOIRAM1?EXAM11 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?_MCOPYCODESTRINGTOXRAM?EXAM11 *** 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?CH375BYTELOCATE?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375BYTEREAD?CH375HF6 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375BYTEWRITE?CH375HF6 Program Size: data=148.5 xdata=1674 code=17379 creating hex file from "EXAM11_lib6"... "EXAM11_lib6" - 0 Error(s), 11 Warning(s). 还是有警告!
因为没有调用这些函数所以出现这些警告,这个没关系的. 你烧到单片机里不能工作吗?
烧到单片机里可以了,仿真器不行呀!
有的仿真器可能在使用中对CH375的时序有影响.