After having trouble to receive big packet through SPI using HAL_SPI_Receive (clock @12MHz), I enabled the SPI_MASTER_RX_AUTOSUSP_ENABLE feature to avoid overflow.
But, now, i have another issue due to the fact this feature is not handled in the blocking form of Receive..
I know we should use DMA.
For whatever reason, the dev could wants to use the blocking version, which is almost not usable as is at high SPI frequencies (caused by other tasks/IRQ premption, or even slow CPU speeds)
So, it could be also good to add the SUSP bit clear in the blocking receive function too..
This way user is free to use DMA, IT or blocking receive functions
Hi,
After having trouble to receive big packet through SPI using HAL_SPI_Receive (clock @12MHz), I enabled the SPI_MASTER_RX_AUTOSUSP_ENABLE feature to avoid overflow. But, now, i have another issue due to the fact this feature is not handled in the blocking form of Receive..
I know we should use DMA. For whatever reason, the dev could wants to use the blocking version, which is almost not usable as is at high SPI frequencies (caused by other tasks/IRQ premption, or even slow CPU speeds) So, it could be also good to add the SUSP bit clear in the blocking receive function too.. This way user is free to use DMA, IT or blocking receive functions