cancel
Showing results for 
Search instead for 
Did you mean: 

I2S/SPI interrupt fires only once, when restarted in IRQ routine (STM32H503)

chriskuku
Senior II

I have set up an I2S interface. The idea is to send it an initial HAL_I2S_Transmit_IT() request.
In the ISR of SPI2 I'm sending the next HAL_I2S_Transmit_IT() and this way the transmit should be continously kept running.

What happens is, that the SPI ISR is entered once. The HAL_I2S_Transmit_IT() issued within the ISR, doesn't fire the subsequent IR. Why?

1 REPLY 1
Saket_Om
ST Employee

Hello @chriskuku 

The second call for HAL_I2S_Transmit_IT() should be in the HAL_I2S_TxCpltCallback().

 
To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om