We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
使用USB CV第9章测试,遇到这种接口 描述符 bAlternateSetting ---------------- Interface Descriptor ----------------- bLength : 0x09 (9 bytes) bDescriptorType : 0x04 (Interface Descriptor) bInterfaceNumber : 0x02 (Interface 2) bAlternateSetting : 0x00 bNumEndpoints : 0x00 (Default Control Pipe only) bInterfaceClass : 0x01 (Audio) bInterfaceSubClass : 0x02 (Audio Streaming) bInterfaceProtocol : 0x00 iInterface : 0x00 (No String Descriptor) Data (HexDump) : 09 04 02 00 00 01 02 00 00 .........
---------------- Interface Descriptor -----------------
bLength : 0x09 (9 bytes) bDescriptorType : 0x04 (Interface Descriptor) bInterfaceNumber : 0x02 (Interface 2) bAlternateSetting : 0x01 bNumEndpoints : 0x01 (1 Endpoint) bInterfaceClass : 0x01 (Audio) bInterfaceSubClass : 0x02 (Audio Streaming) bInterfaceProtocol : 0x00 iInterface : 0x00 (No String Descriptor) Data (HexDump) : 09 04 02 01 01 01 02 00 00 .........
会报以下错误: FAIL (USB: 1.2.51) A successful GetInterface request must return the alternate setting set by a prior call to SetInterface.
原因,usbd_core.c USB_REQUEST_GET_INTERFACE简单的赋值为0 导致的,需要USB_REQUEST_SET_INTERFACE备份alt,再返回。
必现
STM32F407
FAIL (USB: 1.2.51) A successful GetInterface request must return the alternate setting set by a prior call to SetInterface.
No response
The text was updated successfully, but these errors were encountered:
谢谢,这个可以修改掉。我们测试没有测多个alt的
Sorry, something went wrong.
update(core/usbd_core): implement USB_REQUEST_GET_INTERFACE request, …
7d4f5de
…refs:#268
77136aa
No branches or pull requests
描述一下这个bug / Describe the bug
使用USB CV第9章测试,遇到这种接口 描述符 bAlternateSetting
---------------- Interface Descriptor -----------------
bLength : 0x09 (9 bytes)
bDescriptorType : 0x04 (Interface Descriptor)
bInterfaceNumber : 0x02 (Interface 2)
bAlternateSetting : 0x00
bNumEndpoints : 0x00 (Default Control Pipe only)
bInterfaceClass : 0x01 (Audio)
bInterfaceSubClass : 0x02 (Audio Streaming)
bInterfaceProtocol : 0x00
iInterface : 0x00 (No String Descriptor)
Data (HexDump) : 09 04 02 00 00 01 02 00 00 .........
bLength : 0x09 (9 bytes)
bDescriptorType : 0x04 (Interface Descriptor)
bInterfaceNumber : 0x02 (Interface 2)
bAlternateSetting : 0x01
bNumEndpoints : 0x01 (1 Endpoint)
bInterfaceClass : 0x01 (Audio)
bInterfaceSubClass : 0x02 (Audio Streaming)
bInterfaceProtocol : 0x00
iInterface : 0x00 (No String Descriptor)
Data (HexDump) : 09 04 02 01 01 01 02 00 00 .........
会报以下错误:
FAIL (USB: 1.2.51) A successful GetInterface request must return the alternate setting set by a prior call to SetInterface.
原因,usbd_core.c USB_REQUEST_GET_INTERFACE简单的赋值为0 导致的,需要USB_REQUEST_SET_INTERFACE备份alt,再返回。
![image](https://private-user-images.githubusercontent.com/9605462/380373066-e7dc53d9-0efc-4f82-bf9a-8dae1d2a528f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MzUxOTAsIm5iZiI6MTczOTkzNDg5MCwicGF0aCI6Ii85NjA1NDYyLzM4MDM3MzA2Ni1lN2RjNTNkOS0wZWZjLTRmODItYmY5YS04ZGFlMWQyYTUyOGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTlUMDMxNDUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjg5YWUwMDljMmFjNjM1ZWE3OWJlOTk3YjdhZmZhYTkyNzIzMmNiYzE5YTllYzA4OTRiMDY5ODE2M2QwZDlhZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.DvknE_-qGg4gVI_IzhdAbOJPifTIk7K8Esyco_tqR70)
复现步骤 / To Reproduce
必现
设备信息 / Target Device
STM32F407
日志 / Log
FAIL (USB: 1.2.51) A successful GetInterface request must return the alternate setting set by a prior call to SetInterface.
配置 / Configuration
No response
USB中断 / USB Interrupt
No response
缓存 / Cache
No response
商业 / Business
The text was updated successfully, but these errors were encountered: