Skip to main content
AndreaC
Associate III
Mar 16, 2017 9:47 AM UTC
Solved

Cube 4.20 Bug - clock init

Posted on March 16, 2017 at 10:47

Hi,

I found a bug in the new version of CubeMX.

In this case, even if HSI is not used it is enabled (line 1) but not activated:

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE
 |RCC_OSCILLATORTYPE_LSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
 Error_Handler();
}�?�?�?�?�?�?�?�?�?

thus causing HAL_RCC_OscConfig() to fail.

I attached .ioc file.

BR,

Andrea

#bug #cube #clock
This topic has been closed for replies.
Jeanne Joly
Jeanne JolyBest answer
Associate
Apr 28, 2017 8:24 AM UTC
Posted on April 28, 2017 at 10:24

Hi all, 

For any others who read this post and do not find any others related to it. The answer is as follow : 

I would inform you that a new patch 

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

  V 4.20.1 is available to fix this issue.

Sorry for any inconvenience this may cause you.

BR. Eric

4 replies

ST Technical Moderator
Mar 16, 2017 10:06 AM UTC
Posted on March 16, 2017 at 11:06

Hi,

It seem you have a duplicate discussion here

https://community.st.com/0D50X00009XkiKFSAZ

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
AndreaC
AndreaCAuthor
Associate III
Mar 16, 2017 6:17 PM UTC
Posted on March 16, 2017 at 18:17

yes, sorry, I'll remove this one

Jeanne Joly
Jeanne JolyBest answer
Associate
Apr 28, 2017 8:24 AM UTC
Posted on April 28, 2017 at 10:24

Hi all, 

For any others who read this post and do not find any others related to it. The answer is as follow : 

I would inform you that a new patch 

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

  V 4.20.1 is available to fix this issue.

Sorry for any inconvenience this may cause you.

BR. Eric