AnsweredAssumed Answered

STM32CubeMX for 'F7xx I2S problem

Question asked by wired on Jan 14, 2016
Latest reply on Mar 22, 2016 by STM32Cube-T
Problem is with STM32CubeMX v4.12.0, STM32CubeF7 v 1.3.0.

The initialization code for I2S is not setting the I2S clock source, which is causing the I2S clock to improperly initialized.  I am using the I2SPLL, and I2SCLK was not getting divided down properly to create the correct I2S sample rate (Fs).  The following line needs to be generated into the MX_I2Sx_Init routine:

hi2sx.Init.ClockSource = I2S_CLOCK_SYSCLK;

It is not being generated for the MX_I2Sx_Init routine, but the ClockSource member is being checked for validity by an assert function in the HAL_I2S_Init routine.

Outcomes