Skip to main content
Adams.Peter
Associate III
July 7, 2017
Question

STM32CubeF4 fail clock configuration FreeRTOS projects.

  • July 7, 2017
  • 1 reply
  • 567 views
Posted on July 07, 2017 at 19:35

I'm trying to implement a FreeRTOS program on an STM32F429I-Disco (first rev.) using the examples in STM32CubeF4 (V1.16.0).

Neither the 'Demonstration' project not the 'FreeRTOS_ThreadCreation' project will run. They both fail the clock configuration routine.

Some of the 'Examples' projects ('RCC_ClockConfig', 'LTDC_Display...') run without problem.

the difference seems to be in the __HAL_RCC_PWR_CLK_ENABLE() and the __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1) macros. In the FreeRTOS projects, the macros are optimized away, even though the projects have the same optimization as the projects that run correctly.

Does anyone have some insight into this?

#clock-configuration
    This topic has been closed for replies.

    1 reply

    Adams.Peter
    Associate III
    July 7, 2017
    Posted on July 07, 2017 at 19:39

    I'm using IAR EWARM 7.5