如題,在SD卡多層子目錄中創(chuàng)建了TXT文件,并且以64字節(jié)為單位寫入了一批數(shù)據(jù),同時(shí)更新了文件長(zhǎng)度。
將SD卡放到電腦上查看,打不開(如下圖)
查看文件屬性是0字節(jié)(如下圖)
主要的寫文件代碼如下圖
下面是上電后的所有調(diào)試信息
Check hardware success
Set USB mode success
Connect disk success
Init device success
Create A48E102
Create 999999f
Create 2015f?
Create txt
Open? success
Locate:0 success
Write success
Save? success
Open? success
Locate:64 success
Write success
Save? success
Open? success
Locate:128 success
Write success
Save? success
Open? success
Locate:192 success
Write success
Save? success
Open? success
Locate:256 success
Write success
Save? success
Open? success
Locate:320 success
Write success
Save? success
?
請(qǐng)問哪里除了問題,謝謝
?另外,跟曾經(jīng)一個(gè)帖子有點(diǎn)類似,只不過他并口我串口,文件名大小寫也試過沒效果