Running SPI receive in the background
Hi, I have a STM32F407 board that is running as a full duplex slave. it receives data from a Raspberry Pi configured as a SPI master.
Is there a way to receive data from the RPi in a non-blocking mode? One way I could think of was to set the CSN line as a falling interrupt and then call the receive function within the callback. Unfortunately, I've run out of interrupts (many many endstops!).
I tried starting the SPI comm using interrupt mode but that does not seem to work. It transferred only the first two bytes (of the 42 bytes I wanted to transfer). I will try the DMA but I believe that too does a one time transfer and then stops(?)
Any other ideas?
