Skip to main content
kevin2399
Associate III
January 14, 2016
Question

STM32CubeMX for 'F7xx I2S problem

  • January 14, 2016
  • 2 replies
  • 587 views
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.
    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    January 15, 2016
    Posted on January 15, 2016 at 10:29

    Hi wired,

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

    -Syrine-

    stm32cube-t
    ST Employee
    March 22, 2016
    Posted on March 22, 2016 at 19:28

    Dear user,

    this issue is fixed starting from STM32CUbeMX 4.13.