HAL_SPI_ERROR_DMA
Hi, I am using stm32f769Ni evk for a project. Here I am interfacing stm32 with a wifi module using spi dma . The communication fails during reception with HAL_SPI_ERROR_DMA after /* Enable the Tx DMA Stream/Channel */
if (HAL_OK != HAL_DMA_Start_IT(hspi->hdmatx, (uint32_t)hspi->pTxBuffPtr, (uint32_t)&hspi->Instance->DR,
hspi->TxXferCount))
{
/* Update SPI error code */
SET_BIT(hspi->ErrorCode, HAL_SPI_ERROR_DMA);
errorcode = HAL_ERROR;
hspi->State = HAL_SPI_STATE_READY;
goto error;
}
The error is inconsistent and even on successful read the rxbuffer contains on 0x00 or 0xFF. Kindly help me with this
