2017-12-11 11:24 PM
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.
what can I do for this problem? should I change it manually every time I generate code?
#custom_hid_epin_size #custom_hid_epout_size2018-01-10 09:46 PM
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