How do I receive an arbitrary number of bytes over a slave SPI peripheral using DMA?
If I want to receive a known number of bytes I can use the library function:
HAL_SPI_Receive_DMA()
But I would prefer it if when nSS falls to check how many bytes have been transferred and interrogate the DMA buffer.
An alternative is to poll, using FreeRTOS, the DMA peripheral to see how many bytes have been received but would prefer an interrupt basis.
Are there any examples of this approach of receiving nominal SPI data as a slave?
