cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX for 'F7xx I2S problem

kevin2399
Associate III
Posted on January 14, 2016 at 18:07

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.
2 REPLIES 2
Nesrine M_O
Lead II
Posted on January 15, 2016 at 10:29

Hi wired,

Thank you for your feedback. The issue has been reported internally.

-Syrine-

stm32cube-t
Senior III
Posted on March 22, 2016 at 19:28

Dear user,

this issue is fixed starting from STM32CUbeMX 4.13.