stm32interruptspifreertosstm32cubemx

STM32F7 SPI interrupts stop working with FreeRTOS


I'm using stm33F7 reading sensor via SPI communication, it's working in slave only receive mode, I can read data in interrupt mode perfectly without os, but as I enable FreeRTOS (using STM32CUBE) after a random time interrupt stops firing. I'm also reading data from another sensor via UART communication with and without os, and in both modes it works fine, Is there any problem with using SPI Interrupt and FreeRTOS?


Solution

  • I solved my problem by changing SPI Interrupt Priority to 0. It's working perfectly now.