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:Jump to 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....
2 Replies
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.
Oh my bad, thanks for this 🙏