2026-03-05 2:26 AM - last edited on 2026-03-06 1:17 AM by Gyessine
Hello,
all my tools are updated to last ones, and software packages too.
I start an empty project using X Cube FreeRtos 1.5 (just a default task).
Play the soft with debug, and after a few seconds, press "Suspend" button to break the running program.
Then, there are a lot of calls to vPortSetupTimerInterrupt function (port.c) in the call stack.
The tick is by default 1ms and cpu clock to 250Mhz.
Not sure that is normal?
thanks for your help
Laurent
Solved! Go to Solution.
2026-04-03 4:30 AM
Dear @Iclolor
As you know After investigation, the execution flow of the application is correct, and the issue lies only in the representation of the call stack in the debugger. For internal tracking, the opened ticket number is: CDM0061147
BR
Lobna
2026-03-05 5:33 AM - edited 2026-03-05 5:35 AM
Dear @lclor
Best regards
Lobna
2026-03-05 5:51 AM
thank you for your answer,
yes, at beginning, I saw this behavior in my project, so I started a new project from scratch, and just set FreeRtos, c cpu lock, and SWD. So the port.c file is a fresh one generated by CubeMX. All options are default ones, except heap size, stack size and freertos heap size.
I think, not sure at 100%, but before upgrading (yesterday) my CubeIDE, CubeMX and freertos package, I didn't have this issue, because I have done some debug sessions with my project RS232 link, and I didn't remember seeing this list of function call : vPortSetupTimerInterrupt.
vPortSetupTimerInterrupt is called by xPortStartScheduler, I suppose this function is called only one time ?!
2026-03-05 5:58 AM
USE_TICKLESS_IDLE is disabled by default.
2026-03-06 1:02 AM
hi,
I have done the exactly same test of new project with CubeMX 6.16.1, and it works normally, the issue comes from the update to CubeMX 6.17.0 (and/or CubeIDE 2.1.0).
Processor : STM32H533CET
the tools used when it works : CubeIDE 2.0.0, CubeMX 6.16.1, Freertos 1.4.
the tools used when it doesn't work : CubeIDE 2.1.0, CubeMX 6.17.0, FreeRTOS 1.5.
For the both I started a new project with only default task of freertos, run the project and done a break.
Project initialize with CubeMX and then import with CubeIDE.
Best regards,
Laurent
2026-03-09 12:04 AM
Dear Lobna,
Did you reproduce the issue with the lasts development tools ?
Best regards,
Laurent
2026-03-09 1:37 AM
2026-03-09 1:46 AM
2026-03-12 2:48 AM
Dear Lobna,
Did you reproduce the default that I saw with the last version tools ?
Best regards,
Laurent
2026-03-12 5:49 AM
Dear @lclor
I am trying to reproduce the issue using CubeMX6.16, but I have run into another problem: a hard fault.
Could you please send me your project so that we can speed up the investigation?
In addition, which board are you using?
BR
Lobna