Skip to main content
john doe
Senior III
March 9, 2017
Solved

Cube 4.20 bug with F7

  • March 9, 2017
  • 3 replies
  • 1176 views
Posted on March 09, 2017 at 03:36

when generating code for an stm32f769i-discovery with rcc set to enable external clock, the latest version does this:

  RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;

which causes a fault when it hits HAL_RCC_OscConfig(). the fix, and the behavior in previous versions, is to not try to choose both clocks at once.

 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;

    This topic has been closed for replies.
    Best answer by Amel NASRI
    Posted on April 19, 2017 at 13:14

    Hello,

    Please note that this bug is already fixed in a patch of STM32CubeMX (V4.20.1) delivered end of March to fix the regression issue.

    -Amel

    3 replies

    Amel NASRI
    ST Technical Moderator
    March 9, 2017
    Posted on March 09, 2017 at 10:59

    Hi John,

    I confirm this bug. Our CubeMX team will take care of this to provide a fix soon.

    Sorry for such inconvenience.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    Amel NASRI
    Amel NASRIBest answer
    ST Technical Moderator
    April 19, 2017
    Posted on April 19, 2017 at 13:14

    Hello,

    Please note that this bug is already fixed in a patch of STM32CubeMX (V4.20.1) delivered end of March to fix the regression issue.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    Luca R
    Associate II
    July 12, 2017
    Posted on July 12, 2017 at 18:38

    I found this bug also with F4:

    STM32CubeMX V4.22.0

    STM32F4 1.16.0

    Please confirm that it can be fixed removing

     RCC_OSCILLATORTYPE_HSI

    in

      RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;

    Have I to install a patch?

    Why V4.22.0 didn't come with the patch that has been developed for V4.20.1?

    Regards,

    Luca