USB Bug?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
1,401 次查看
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,060 次查看
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,061 次查看
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,060 次查看
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 项奖励
回复