This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HID HS USB device with error

Hello,

I would like to create a HID High Speed USB device using uVision 5.12.0.0 with latest version packages. After create a new project and do some adjustment, I still have the following error (during compilation):

C:\Keil_v5\ARM\PACK\Keil\MDK-Middleware\6.2.0\USB\Include\usbd_config_dev_0.c(23): error: #94-D: the size of an array must be greater than zero uint8_t usbd0_alt_setting [USBD0_IF_CNT];

The hardware is based on SMT32F427ZGTx using a external PHY.

The application is based on HID recommendations from www.keil.com/.../group__usbd__hid_functions.html

Other adjustment (after project creation):

- #define USBD_HID0_DEV 1
- #define USBD0_PORT 1
- #define RTE_USB_OTG_FS 0
- #define RTE_USB_OTG_HS 1
- #define RTE_USB_OTG_HS_PHY 1
- #define RTE_USB_OTG_HS_HOST 0

Thanks for any suggestion,

Julio