Retrieving multiple SPI packets from DMA
Hi guys I have set up my STM32 as an SPI full duplex slave device. All SPI communication happens through DMA. The Master device is a Beaglebone Black communicating over linux spidev driver. The problem I am facing now is if the master sends multiple SPI packets the slave device receives only one interrupt. FYI the HW design does not use any CS line.
I have set up an event based mecahnism using EventHandler from CMSIS RTOS V2 to deal with the SPI communication. Whenever an SPI interrupt occurs it processes the packet and sends back response if needed. But since I am receiving only one interrupt for multiple packets I am not able to distinguish between the different packets and it is overwriting the buffer in a weird manner.
Please suggest me a way on how to deal with this problem. Thanks.