I2S2 + DMA: RCC_PERIPHCLK_I2S is not auto-generated in HAL_I2S_MspInit()
Hello,
When using I2S2 with DMA transmit, the auto-generated stm32f7xx_hal_msp.c does not include
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2S inside HAL_I2S_MspInit().
As a result, after calling HAL_I2S_Transmit_DMA() no DMA interrupts/callbacks occur.
As a workaround, I manually added the snippet in the user code section.
Question:
Is this intended (by design) or something wrong with STM32CubeIDE?
For an I2S setup, should RCC_PERIPHCLK_I2S be auto-generated at an appropriate place?
Or should it be added manually?
Also, I may be missing a recommended setting/order, so if there’s an official way to ensure RCC_PERIPHCLK_I2S is applied, I’d appreciate guidance.
Environment:
MCU/Board: STM32F767ZI / NUCLEO-F767ZI
STM32CubeIDE: 1.19.0
