cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeF4 fail clock configuration FreeRTOS projects.

Adams.Peter
Associate III
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
1 REPLY 1
Adams.Peter
Associate III
Posted on July 07, 2017 at 19:39

I'm using IAR EWARM 7.5