Posted on February 02, 2017 at 14:40Hi,
It's a bug introduced with the support of FreeRTOS v9, to be fixed in the next version (sorry for that mistake).
As a temporary workaround (for 4.19), in the FREERTOS-v8.0.0_Cube_Modes.xml file (part of your CubeMx installation), you can modify the configUSE_TICKLESS_IDLE section (starting around line 814) as follows:
<RefParameter Name='configUSE_TICKLESS_IDLE' Comment='USE_TICKLESS_IDLE' DefaultValue='0' Type='list' Group='Kernel settings' TabName='Config parameters' Visible='true'>
<Condition Diagnostic='' Expression='(S_VERSION_8_2_1|S_VERSION_9_0_0) & INCLUDE_vTaskSuspend=1'/>
<PossibleValue Comment='Disabled' Value='0'/>
<PossibleValue Comment='Enabled' Value='1'/>
<Description>By setting the configUSE_TICKLESS_IDLE, the idle task suppresses ticks and the processor stays in a low power mode for as long as possible.<br>
When set to 1 (Enabled), two macros, configPRE_SLEEP_PROCESSING and configPOST_SLEEP_PROCESSING are generated in FreeRTOSConfig.h, and two empty functions, PreSleepProcessing and PostSleepProcessing generated in freertos.c (to be completed with user code).</Description>
</RefParameter>
<RefParameter Name='configUSE_TICKLESS_IDLE' Comment='USE_TICKLESS_IDLE' DefaultValue='0' Type='list' Group='Kernel settings' TabName='Config parameters' Visible='true'>
<Condition Diagnostic='Forced to 0 (Disabled) : cannot be enabled when INCLUDE_vTaskSuspend = 0 (Disabled)' Expression='(S_VERSION_8_2_1|S_VERSION_9_0_0) & INCLUDE_vTaskSuspend=0'/>
<PossibleValue Comment='Disabled' Value='0'/>
<Description>By setting the configUSE_TICKLESS_IDLE, the idle task suppresses ticks and the processor stays in a low power mode for as long as possible.</Description>
</RefParameter>
<RefParameter Name='configUSE_TICKLESS_IDLE' Comment='configUSE_TICKLESS_IDLE' DefaultValue='0' Type='integer' Group='Kernel settings' TabName='Config parameters' Visible='false'>
<Description>By setting the configUSE_TICKLESS_IDLE, the idle task suppresses ticks and the processor stays in a low power mode for as long as possible.</Description>
</RefParameter>
Should solve the issue in 4.19 (the parameter is available in both versions, v8 and v9, of FreeRTOS).
As a reminder / for information, in CubeMx 4.19, FreeRTOS v9 is available on F3,F7,L0 series (porting on other series is on-going).
Regards
Fred