USB Bug?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,398件の閲覧回数
msinger
Contributor I

In host_dev_list.c on line 430  of MQX 3.7 is the call

 

  status = _usb_host_ch9_get_descriptor((pointer)new_instance_ptr,
      USB_DESC_TYPE_DEV << 8, 0, 8,  
      (uchar_ptr)&new_instance_ptr->dev_descriptor);
     


Should the "8" be an 18 as it's the length of the descriptor?

 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,057件の閲覧回数
c0170
Senior Contributor III

Hi msinger,

 

what you have found it's not bug. The device descriptor has size more than 8, according to specification. It is allowed to read only part of the descriptor.

 It is an intention to read just 8 Bytes of the descriptor.

 

Regards,

MartinK

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,058件の閲覧回数
c0170
Senior Contributor III

Hi msinger,

 

what you have found it's not bug. The device descriptor has size more than 8, according to specification. It is allowed to read only part of the descriptor.

 It is an intention to read just 8 Bytes of the descriptor.

 

Regards,

MartinK

0 件の賞賛
返信
1,057件の閲覧回数
hchristo
Contributor I

did you solve this issue? i am trying to use the 3.6.1 usb stack in external ram (via mem_extend). the msd attaches, is supported, but the stack reports "unable to open USB disk".

 

the USB stack works ok for FAT-16 USB MSDs when run completely from internal ram.

0 件の賞賛
返信