Dear community members,
I am wondering how we can implement an always-ready SPI slave with S32K14x MCU and FreeRTOS?
By "always-ready" means that whenever the SPI master starts a duplex transfer by toggling the CS line, the MCU can respond immediately with data in an outgoing queue.
I am considering to have an ISR triggered by the CS line, within the ISR we initiate a SPI slave xfer using SPI device or PAL driver. But I am unsure if the ISR can respond fast enough? Should we ask the SPI master side to wait a while before sending the SCLK signals after toggleing the CS line?
If this works in general, what details should we watch (e.g. ISR priority etc)?
Regards,
yf