Skip to main content
JJRR
Associate III
June 3, 2024
Question

Fixing code generation in CubeMX: Tickless functions

  • June 3, 2024
  • 1 reply
  • 1383 views

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.

1 reply

Technical Moderator
June 3, 2024

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JJRR
JJRRAuthor
Associate III
June 3, 2024

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

Technical Moderator
June 6, 2024

Hello @JJRR ,

I suggest please that you provide the MCU Reference.

Thanks.

Mahmoud.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.