DMA_ISR with active bits even if I didn't enable the interrupts
Hi,
I'm working with DMA on an STM32F745. I have enabled a DMA interrupt for Transfer Complete on SPI RX, when the data is ready to be read. To do this, I set the TCIE bit in the DMA_SCR register. In the interrupt routine I read the data and I disable the DMA until its time to fire it up again.
It works fine, however when the interrupt is fired, I notice that the half-transfer complete flag, HTIF, is active in the DMA_ISR register, even though I didn't enable that interrupt. TCIF is also active as expected.
Why is HTIF active even though I didn't enable its interrupt?
In addition, the reference manual says:
"All the stream dedicated bits set in the status register (DMA_LISR and DMA_HISR) from the previous data block DMA transfer must be cleared before the stream can be re-enabled"
This means I need to spend cycles clearing the HTIF (and potentially the error flags too) even though I never requested them to be enabled, every time I read data. Is that expected?
Thanks!
