How to determine Rx event of USB CDC ACM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-08-29 1:35 AM
Hi,
I use STM32U575.
The STM32U575 works as a USB CDC ACM device and I implemented it in standalone mode.
OTG_FS_IRQHandler is called when data is received from the host device.
Is there a way to determine that when OTG_FS_IRQHandler is called, it is due to data reception ?
Best regards.
- Labels:
-
STM32U5 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-08-30 3:10 AM
Hi @DK3
USB core generates an RXFLVL interrupt as soon as the received packet is written to the receive FIFO. So, OTG_FS_IRQHandler within the HAL_PCD_IRQHandler, can determine if the interrupt was triggered.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
