Configuring USB CDC Rx Interrupt for STM32-F446RE (Nucleo)

I am seeking guidance on configuring a USB CDC Rx interrupt to handle data reception for the STM32-F446RE (Nucleo). At present, I utilize int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) in a loop to receive incoming data. However, due to the transmission of substantial amounts of data, an interrupt-based reception technique is necessary. Any assistance or advice would be highly appreciated.
Solution:
Hey @Sterling The function is a callback that is already being called in an interrupt context by the USB stack. You should not be calling it in a loop....
Jump to solution
2 Replies
Solution
32bitSaviour
32bitSaviour4mo ago
Hey @Sterling The function is a callback that is already being called in an interrupt context by the USB stack. You should not be calling it in a loop.
Sterling
Sterling4mo ago
Oh my bad, thanks for this 🙏
Want results from more Discord servers?
Add your server