Content originally posted in LPCWare by ahoyhoy on Mon Nov 09 04:11:25 MST 2015
Hi Amir,
that's actually a good idea to use multiple end points. Might try this.
Are you using the nxp USB rom with HID and 1023 bytes per millisecond? I thought the rom limits the packet size, see app_usbd_cfg.h line 65 to 70
/* Manifest constants used by USBD LIB stack. These values SHOULD NOT BE CHANGED
for advance features which require usage of USB_CORE_CTRL_T structure.
Since these are the values used for compiling USB stack.
*/
#define USB_MAX_IF_NUM 8/*!< Max interface number used for building USBDL_Lib. DON'T CHANGE. */
#define USB_MAX_EP_NUM 16/*!< Max number of EP used for building USBD_Lib. DON'T CHANGE. */
#define USB_MAX_PACKET0 64/*!< Max EP0 packet size used for building USBD_Lib. DON'T CHANGE. */
#define USB_FS_MAX_BULK_PACKET 64/*!< MAXP for FS bulk EPs used for building USBD_Lib. DON'T CHANGE. */
#define USB_HS_MAX_BULK_PACKET 512/*!< MAXP for HS bulk EPs used for building USBD_Lib. DON'T CHANGE. */
#define USB_DFU_XFER_SIZE 2048/*!< Max DFU transfer size used for building USBD_Lib. DON'T CHANGE. */
if you are able to use packet sizes of 1023 bytes, could you please let me know how? it would be greatly appreciated. thanks