Question
stm32f4 usb packet length
Posted on November 04, 2016 at 20:00
Hi,
I am using stm32f4 usb custom hid usb stack. For now i can send and receive just 64Byte packets. When i want to send or receive more packets like 512Byte, the stack crashes. I use the tx and rx packets length for 64Byte defines like this :&sharpdefine CUSTOM_HID_EPOUT_SIZE 0x40&sharpdefine CUSTOM_HID_EPIN_SIZE 0x40I use the send hid report function like this:USBD_CUSTOM_HID_SendReport(hUsbDevice_1,USB_TX_Buffer,64);It works for 64Byte but i can not increase the packet length. Any advise?? #hid #usb #device