cancel
Showing results for 
Search instead for 
Did you mean: 

Fixing code generation in CubeMX: Tickless functions

JJRR
Senior

Hello, when using CubeMX + STM32WB + BLE, I noticed that if the BLE feature is enabled in CubeMX, a file called freertos_port.c is created in the project. This file includes the functions void vPortSuppressTicksAndSleep(TickType_t xExpectedIdleTime) and void vPortSetupTimerInterrupt(void). Unfortunately, these functions are not marked as WEAK, which is a pity because after each new code generation in CubeMX, we have to manually add WEAK. There is also no option to add anything via USER CODE START. Would it be possible to fix this? Thank you.

4 REPLIES 4
Mahmoud Ben Romdhane
ST Employee

Hello @JJRR 

First let me thank you for posting and welcome to the ST Community.

For more investigation, I suggest please that you provide the ioc. File.

Thanks.

Mahmoud.

I enabled only FreeRTOS with Tickless mode + STM32_WPAN - BLE (CFG_LPM_SUPPORTED - but I think it has no effetc on that)

Hello @JJRR ,

I suggest please that you provide the MCU Reference.

Thanks.

Mahmoud.

Hi @Mahmoud Ben Romdhane 

I sent IOC file via personal message (email).