求助: ch376建立文件打不開(kāi)

file_sys.c中的內(nèi)容我沒(méi)有改過(guò)啊,如下:

void?? ?CH376SetFileName( PUINT8 name )? /* 設(shè)置將要操作的文件的文件名 */
{
/*?? ?UINT8?? ?i;*/
?? ?UINT8?? ?c;
#ifndef?? ?DEF_IC_V43_U
?? ?UINT8?? ?s;
?? ?xWriteCH376Cmd( CMD01_GET_IC_VER );
?? ?if ( xReadCH376Data( ) < 0x43 ) {
?? ??? ?if ( CH376ReadVar8( VAR_DISK_STATUS ) < DEF_DISK_READY ) {
?? ??? ??? ?xWriteCH376Cmd( CMD10_SET_FILE_NAME );
?? ??? ??? ?xWriteCH376Data( 0 );
?? ??? ??? ?s = CH376SendCmdWaitInt( CMD0H_FILE_OPEN );
?? ??? ??? ?if ( s == USB_INT_SUCCESS ) {
?? ??? ??? ??? ?s = CH376ReadVar8( 0xCF );
?? ??? ??? ??? ?if ( s ) {
?? ??? ??? ??? ??? ?CH376WriteVar32( 0x4C, CH376ReadVar32( 0x4C ) + ( (UINT16)s << 8 ) );
?? ??? ??? ??? ??? ?CH376WriteVar32( 0x50, CH376ReadVar32( 0x50 ) + ( (UINT16)s << 8 ) );
?? ??? ??? ??? ??? ?CH376WriteVar32( 0x70, 0 );
?? ??? ??? ??? ?}
?? ??? ??? ?}
?? ??? ?}
?? ?}
#endif
?? ?xWriteCH376Cmd( CMD10_SET_FILE_NAME );
?? ?/*for ( i = MAX_FILE_NAME_LEN; i != 0; -- i ) {
?? ??? ?c = *name;
?? ??? ?xWriteCH376Data( c );
?? ??? ?if ( c == 0 ) break;
?? ??? ?name ++;
?? ?}*/
?? ?c = *name;
?? ?xWriteCH376Data( c );
?? ?while ( c ) {
?? ??? ?name ++;
?? ??? ?c = *name;
?? ??? ?if ( c == DEF_SEPAR_CHAR1 || c == DEF_SEPAR_CHAR2 ) c = 0;? /* 強(qiáng)行將文件名截止 */
?? ??? ?xWriteCH376Data( c );
?? ?}
?? ?xEndCH376Cmd( );
}


最新發(fā)現(xiàn) 定義了這個(gè)就正常了

#define DEF_IC_V43_U

我查過(guò)好多遍, file_sys.c中的各種宏定義的含義啊!

不是說(shuō)這個(gè)版本的芯片不會(huì)賣(mài)么?



問(wèn)題解決了,還是沒(méi)找到原因.

難道買(mǎi)到庫(kù)存很久的,或者拆機(jī)翻新的ch376?


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频