-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can provide an example of a STM32U5 USBX composite device? #1
Comments
and add a WINUSB? |
Hi @Barfell, which IDE ? How WINUSB will be supported in your application ?? |
custom hid, can send data and receive data. sd card. cdc without uart, it can send and receive. When the MSC reads and writes, don't operate on CDC and HID, and when the MSC reads and writes is completed, CDC sends and receives normally, but HID does not. If the MSC is read-only, CDC and HID are not affected. HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_HS, 0x100); HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 2, 0x40);//82 HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_HS, 4, 0x40);//84 //81 MSC IN 81 |
When write the MSC, the HID devicce can not response USBD_Custom_HID_SetReport function, can not receive the data from the host. |
WinUSB used for data DAQ |
U5A9J_MSC.zip |
The cause has been located, but I don't know how to solve it. USBD_STORAGE_Write function call the fx_media_write function, It's taking too long, Comment out the function fx_media_write,hid and cdc worked perfectly. |
Hi @Barfell, yes it can be the cause. It's recommande to avoid using file system fx with storage class. I suggest to use direct sd hal. |
Hi @ayedm1 ,I'm use HAL_SD_WriteBlocks instead fx_media_write, HAL_SD_ReadBlocksinstead fx_media_read, the HID and CDC can work at the same time. |
STM32U5x9J-DK board, use file x, can work perfectly, because use high speed USB? maybe。 |
I have a STM32U5x9J-DK board, high speed usb composite device, the MSC + CDC +HID can not read and write at the same time.
The text was updated successfully, but these errors were encountered: