usbhidlibusbstm32stm32f4discovery

STM32F4 Discovery USB in HS mode


I want to convert the USB HID mouse demonstration example (from the STM32F4 Discovery board firmware package) into High Speed (HS) mode and be able to transfer 128 bytes in a single transfer.

I changed the following places;

HID REPORT;
REPORT_SIZE (8)
REPORT_COUNT(128)
(report descriptor works properly under FS)

USBD_HID_CfgDesc;
wMaxPacketSize = 128

USBD_DeviceDesc;
bMaxPacketSize = 128

USBD_Init(&USB_OTG_dev,
          USB_OTG_HS_CORE_ID,
          &USR_desc,
          &USBD_HID_cb,
          &USR_cb);

HID_IN_PACKET   128
HID_OUT_PACKET  128

When I ran it, nothing happened on the PC side. it’s not even detected.

Which settings do I need to change?


Solution

  • HS mode on all STM32F4 need external PHY