Skip to main content
ZMinZ.1
Visitor II
June 4, 2021
Question

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.

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.

This topic has been closed for replies.

1 reply

TDK
June 4, 2021

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""."