2024-08-05 02:14 AM
Hello Everyone,
I'm new to USB peripheral. I have STM32H573I-DK and trying to make Type-C work in Device CDC ACM class. I read some documents and examine example codes. After all this, I create a project and I can transmit data from my DK to PC but I can not see the data that I sent from PC to DK. When I debug the read thread, it looks like this SUSPENDED(ux _transfer_request_semaphore). Thread waits for some semaphore but I dont know where to put this semaphore.
I dont know what I'm doing wrong, can you help me or guide me? Thanks.
I attached my files, please review.
Best Regards.
Solved! Go to Solution.
2024-08-09 03:47 AM
Hello @iCenger ,
UART is crucial for communication between the STLink and the PC, enabling you to debug and monitor your application effectively. The MCU communicates with the USB host through the USB CDC ACM class, while the UART handles communication with the STLink .
Best regards.
2024-08-05 06:07 AM
Hello @iCenger ,
For your STM32H573I-DK board, you can follow the example provided in the STM32CubeH5 repository on GitHub. Specifically, you can refer to the example for the NUCLEO-H503RB board, which demonstrates the USBX Device CDC ACM class. Here is the link to the example: STM32CubeH5 USBX Device CDC ACM Example.
You can use this example as a reference and update it to match your STM32H573I-DK board. This should help you understand how to properly handle the semaphore and other configurations required for your project.
Best regards
2024-08-05 06:12 AM
Hello @MOBEJ
First of all, thank you for your quick answer.
I saw this example but could not understand one thing. In this example, UART is being used. What is this for?
Best regards.
2024-08-09 03:47 AM
Hello @iCenger ,
UART is crucial for communication between the STLink and the PC, enabling you to debug and monitor your application effectively. The MCU communicates with the USB host through the USB CDC ACM class, while the UART handles communication with the STLink .
Best regards.