Skip to main content
LLYC.1
Associate
Mar 24, 2021 12:25 PM UTC
Solved

USB custom HID increase report Size more than 255 bytes?

..

This topic has been closed for replies.
LLYC.1
LLYC.1Best answer
Associate
Mar 25, 2021 1:42 AM UTC

0693W000008xqxjQAA.jpg

3 replies

LLYC.1
LLYC.1AuthorBest answer
Associate
Mar 25, 2021 1:42 AM UTC

0693W000008xqxjQAA.jpg

ST Technical Moderator
Mar 25, 2021 3:29 PM UTC

Hello @LLYC.1​ and welcome to the STM32 Community :)

The max descriptor size is 255. This is specific to the USB protocol.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
TPham.4
Associate
Apr 1, 2021 5:08 PM UTC

I notice the comment is incorrect. At first I thought this is to increase the size of the IN/OUT Endpoint but is is actually increasing the size of the descriptor. And the generated code is incorrect. It still left at 2.

It seems to be a bug in CubeMX.