Setting Cs periodically while using Dma
Good Day
I am using Spi with Dma. When using the Hal-function "HAL_SPI_Receive(SPI_HandleTypeDef *hspi, uint8_t *pData, uint16_t Size, uint32_t Timeout)", I want to receive 1000 times Data , which I can set in the size-area. The Problem is that my Spi-peripheral needs constantly Cs-pin to get set and reset to give out Data, else i receive after one usable data just zeros. My question is following: Is there a way to tell the Spi to set and reset the cs when data gets received, and if so, how, or where can this be configured? I am currently using the function in a for loop to receive my Data with the size set to 1. But this is way to slow. Thanks for Helping.
