Question
Infinite SPI interrupt request
Our custom board is using the stm32u585. The MCU is the master, communicating with a accelerometer through SPI port 3.When reading the data from the accelerometer, using HAL_SPI_Receive_IT or HAL_SPI_Receive_DMA, the SPI 3 interrupt is constantly generated and halts the entire system. When debugging, the variable "trigger" is always 0. And it doesn't look like the HAL_SPI_IRQHandler handle the case when "trigger" is 0. Any idea what would've caused a situation like mentioned ?
void HAL_SPI_IRQHandler(SPI_HandleTypeDef *hspi)
{
uint32_t itsource = hspi->Instance->IER;
uint32_t itflag = hspi->Instance->SR;
uint32_t trigger = itsource & itflag;
uint32_t cfg1 = hspi->Instance->CFG1;
uint32_t handled = 0UL;
........
}