cancel
Showing results for 
Search instead for 
Did you mean: 

USB string descriptor modification

TTsao.1
Associate

Hi All,

I practice an HID USB project at windows 10 with NUCLEO-F303ZE. And I initiated a project by STM32CUBEIDE and STM32CUBE. I alsp can get enumeration of connecting procedure so far so good. My project has a request which needs to response string descriptor 0xEE. Because I found if the host sends 80 60 EE 03 00 00 12 00, the device will get stall. like the below picture:

0693W00000AN7gZQAT.jpgMy question is how to modify the procedure to let the device can determine the string descriptor then send back the data which I need?

TT.

6 REPLIES 6
Pavel A.
Evangelist III

You project likely contains a source file which deals with descriptor requests. Read it, understand, then add the needed descriptor.

TDK
Guru

String descriptors are found within usbd_desc.c.

If you feel a post has answered your question, please click "Accept as Solution".

It's okay to stall unsupported desriptor requests, including the Microsoft extensions (as Pavel A. pointed out above).

JW

TTsao.1
Associate

Hi All,

Thank you for your help. I have solved the problem.

Rxue.1
Associate

您好,我最近在使用STM32G0B1�?�USB的开�?�。

�?�样的,在数�?�传输时,usb device有时也会�?�生�?�顿。请问您�?��?�是如何解决的?

Javier1
Principal

@TTsao.1​ what programm or harware are you using to sniff USB? im very interested

we dont need to firmware by ourselves, lets talk