使用374做host,3.3V供電,V3腳接VCC,5腳懸空,D+、D-無串聯(lián)電阻,我上、下拉。 現(xiàn)在情況是: CH374LibInit()成功返回0,并運行到"Wait Udisk";插入U盤后CH374DiskConnect( )成功返回0,但執(zhí)行CH374DiskReady()后返回的是0x1F(USB存儲器操作失敗),執(zhí)行CH374DiskReady()后讀取DISK_BASE_BUF緩沖區(qū)的數(shù)據(jù)如下: 09 02 20 00 01 01 00 80 32 09 04 00 00 02 08 06 50 00 07 05 01 02 40 00 01 07 05 81 02 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 后面全為“00”
現(xiàn)在就是沒有辦法識別U盤,我都試了好幾個盤了。
DISK_BASE_BUF是如下定義的: UINT8 DISK_BASE_BUF[ DISK_BASE_BUF_LEN ]; DISK_BASE_BUF_LEN = 2048;
我使用的44b0,75M,開發(fā)環(huán)境為SDT2.5
請問是什么問題呀,謝謝了!