cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H750 HAL_SPI driver function HAL_SPI_TransmitReceive(......) is called in my EXTI9_5_IRQHandler() interrupt function , It runs dead loop, and can't return.

ZMinZ.1
Associate

If the H7 HAL_SPI driver function HAL_SPI_TransmitReceive(......) is called in my main()

,It runs correctly, I can transmit and receive data correctly. But it is called in my EXTI9_5_IRQHandler() interrupt , It runs dead loop, and can't return.

1 REPLY 1
TDK
Guru

Calling blocking functions in interrupts is not ideal, but you can do it as long as the systick handler priority is higher (numerically lower) than the interrupt you're currently in.

If you feel a post has answered your question, please click "Accept as Solution".