cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446 crashing when calling xSemaphoreGiveFromISR from within USB ISR (CDC_Receive_FS)

NMoha.1
Associate

I have a stm32f446 setup with a virtual com port. I using a task with FREE RTOS. The task is blocked by waiting on a semaphore (xSemsphoreTake). In my CDC_Receive_FS routine I am simply calling xSemaphoreGiveFromISR when ever this function is called. Everytime I send data over usb my board crashes. If I remove the xSemaphoreGiveISR call everything works fine. Is there any other setup I need to do ?

0 REPLIES 0