[原創(chuàng)]CH376寫入U盤錯誤數(shù)據

T682033108006001111812E901FB12900000005040100000500000000150000000032190700002A272700072700331100521115270413200004E516 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A2227000327003311000712152704132000049216 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A222700032700331100211215270413200004AC16 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A222700032700331100351215270413200004C016 682033108006001111812E901FB1290\DLIB\ -Ol --multiplier=16 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A2127000527003311000513152704132000049216 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A212700052700331100201315270413200004AD16 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A212700052700331100341315270413200004C116 682033108006001111812E901FB129000000050401000005000000001500000 GOutputBina682033108006001111812E901FB12900000005040100000500000000150000000032190700002A2127000727003311000414152704132000049416 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A212700072700331100181415270413200004A816 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A212700072700331100331415270413200004C316 682033108006001111812E901FB12900000005040100000500000000150000000032190700002A21270007270033110 Use the n682033108006001111812E901FB12900000005040100000500000000150000000032190700002A1327009826003311000215152704132000041516 從68開始到16結束是一個數(shù)據 但是不知道為什么會出現(xiàn)這樣的字符 而且每次都是第五幀數(shù)據出錯,第9幀數(shù)據出錯

[Emot]27[/Emot]

每512個字節(jié)就出錯,扇區(qū)邊界有沒有處理好,你有沒有修改底層函數(shù)?一定要按照我們例程來寫。 UINT8 CH376ByteWrite( PUINT8 buf, UINT16 ReqCount, PUINT16 RealCount ) /* 以字節(jié)為單位向當前位置寫入數(shù)據塊 */ { UINT8 s; xWriteCH376Cmd( CMD2H_BYTE_WRITE ); xWriteCH376Data( (UINT8)ReqCount ); xWriteCH376Data( (UINT8)(ReqCount>>8) ); xEndCH376Cmd( ); if ( RealCount ) *RealCount = 0; while ( 1 ) { s = Wait376Interrupt( ); if ( s == USB_INT_DISK_WRITE ) { s = CH376WriteReqBlock( buf ); /* 向內部指定緩沖區(qū)寫入請求的數(shù)據塊,返回長度 */ xWriteCH376Cmd( CMD0H_BYTE_WR_GO ); xEndCH376Cmd( ); buf += s; if ( RealCount ) *RealCount += s; } /* else if ( s == USB_INT_SUCCESS ) return( s );*/ /* 結束 */ else return( s ); /* 錯誤 */ } }


只有登錄才能回復,可以選擇微信賬號登錄

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