STM32 SPI Slave Error (HAL_SPI_ERROR_FLAG 32)
I have an STM32 (SPI slave) connected to a BeagleBone Black (SPI master).
SPI Master Configuration (BBB):
- SCK = 15 MHz
- Mode = SPI Mode 0
- Data Size = 16 bits
The STM32 is attempting to transmit 2 bytes of data to the BBB using interrupt mode. However, HAL_SPI_ErrorCallback() is triggered, and the error code returned is 32 (HAL_SPI_ERROR_FLAG).
HAL_SPI_Transmit_IT(&hspi2,(uint8_t*)spi_tx,1);
Even when the BBB is idle, running the STM32 results in this error. Any insights on what might be causing this?


~AJ
