2017-09-27 02:56 PM
I've used the STM32CubeMX application to setup the main PLL and PLLI2S as shown below:
When I generate the code, it generates the following:
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_I2S;
PeriphClkInitStruct.PLLI2S.PLLI2SN = 123;
PeriphClkInitStruct.PLLI2S.PLLI2SM = 8; // <--- Compilation failure, PLLI2SM is not structure element
PeriphClkInitStruct.PLLI2S.PLLI2SR = 5;
PeriphClkInitStruct.I2SClockSelection = I2S_CLOCK_PLL;
// <-- I2SClockSelection is not a struct element
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}
As shown in the comments in the code above, both PLLI2SM and I2SClockSelection are not members of their respective structures. This results in a compilation failure... Anyone know what's going on here?
#stm32f429-discovery #i2sSolved! Go to Solution.
2018-02-06 06:18 AM
Hello
tmdarwen
,Just to be precise, this issue was solved in CubeMX4.
You can upgrade your CubeMX with the latest (cubeMX4.24).
BR. Jeanne
2017-09-28 01:41 AM
Hello,
Please share your ioc file and precise which CubeMx version are you using ?
Best Regards
Imen
2017-09-28 08:53 AM
Thank you, Imen.
2017-09-28 10:17 AM
Hi Imen - I'm using STM32CubeMX Version 4.1, STM32Cibe V1.0. I've attached my ioc file.
-Terence
________________ Attachments : I2SGeneratedTest4.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyPB&d=%2Fa%2F0X0000000b76%2FrvsyzcO7R.kw_6C.jT2qmdixHPW0kSAsJM4j5R_jrkk&asPdf=false2017-09-28 10:45 AM
Hi
tmdarwen
,Thanks for sharing this issue.
I checked and confirm the error for
PLLI2SM and I2SClockSelection.
I raised thisissue internally to CubeMx team tofix it.
Thanks and Best Regards
Imen
2018-02-06 06:18 AM
Hello
tmdarwen
,Just to be precise, this issue was solved in CubeMX4.
You can upgrade your CubeMX with the latest (cubeMX4.24).
BR. Jeanne
2018-02-06 07:20 AM
Thank you
Joly.Jeanne