AnsweredAssumed Answered

STM32CubeF4 fail clock configuration FreeRTOS projects.

Question asked by adams.peter on Jul 7, 2017
Latest reply on Jul 7, 2017 by adams.peter

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?