2021-06-13 05:36 AM
Hi!
I have STM32F373 and I want to send data with USB FS.
When I generate a project, I get this struct.
PCD_HandleTypeDef hpcd_USB_FS;
What should I do to send data with that struct?
Solved! Go to Solution.
2021-06-13 01:33 PM
> By the way! This using USB CDC. I'm using USB PCD.
The PCD (peripheral control driver) is not specific to any particular device type. Since you were trying to send data, I assumed you wanted the USB CDC device. All devices, including CDC, are implemented via the PCD.
2021-06-13 07:51 AM
The best thing would be to follow a Cube example:
Be aware that USB is a lot more complex than something like UART.
2021-06-13 08:10 AM
Thank you. Yes I understand that. I just want to try it out and see if ST's USB is well made.
2021-06-13 01:23 PM
By the way! This using USB CDC. I'm using USB PCD.
2021-06-13 01:33 PM
> By the way! This using USB CDC. I'm using USB PCD.
The PCD (peripheral control driver) is not specific to any particular device type. Since you were trying to send data, I assumed you wanted the USB CDC device. All devices, including CDC, are implemented via the PCD.
2021-06-13 02:05 PM
Thank you once again!
I can see now that I need to use HAL_PCD_EP_... HAL-functions such as HAL_PCD_EP_Open, HAL_PCD_EP_Receive, HAL_PCD_EP_Transmit etc to talk to other USB devices such as my computer.