Skip to main content
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.

  • June 4, 2021
  • 1 reply
  • 568 views

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

    Super User
    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.