Resolved! Undesired behaviour from HAL SPI DMA Slave
For some reason HAL_SPI_STATE remains busy forever after executing HAL_SPI_Receive_DMA. This happen for the SPI slave of SPI #2 of the STM32H745XI board. The problem goes away when I change the SPI mode from slave to master, but that's not a proper w...