cancel
Showing results for 
Search instead for 
Did you mean: 

change CUSTOM_HID_EPIN_SIZE

ali rostami
Associate III
Posted on December 12, 2017 at 08:24

It seems that the cubemx doesn't let us change CUSTOM_HID_EPIN_SIZE or CUSTOM_HID_EPOUT_SIZE, and in the codes, we don't have a user defined part for this. so this cause to define it as

the default value which is 0x02 every time we generate the codes by cubemx.

0690X00000604KxQAI.jpg

what can I do for this problem? should I change it manually every time I generate code?

#custom_hid_epin_size #custom_hid_epout_size
1 REPLY 1
Oleksandr Lisovyi
Associate
Posted on January 11, 2018 at 06:46

Hi! We can not change CUSTOM_HID_EPIN_SIZE or CUSTOM_HID_EPOUT_SIZE using CubeMx, but we can change the template, where they are defined.

Path to that file in my Windows7:

C:\Users\[UserName]\STM32Cube\Repository\STM32Cube_FW_F0_V1.9.0\Middlewares\ST\STM32_USB_Device_Library\Class\CustomHID\Inc\usbd_customhid.h