Skip to main content
Associate
December 13, 2024
Question

FreeRTOS SysTick_Handler missing

  • December 13, 2024
  • 2 replies
  • 1290 views

Moved from MPUs forum; STM32F072 is an MCU - not an MPU.


Hi,

I've just started a new project for a STM32F072 chip using STM32CubeIDE 1.17.0.
When adding FreeRTOS support to my project, the program hangs soon after osKernelStart() is called.
I had hard time finding the culprit.

The problem is that the SysTick_Handler() present in cmsis_os2.c is not used (It is surrounded with #if defined(SysTick) /  #endif).
Because os this, the default handler is called (infinite while loop).

I've worked around this problem by copying the SysTick_Handler() function in my code. But this problem should be fixed in the STM32CubeIDE code generator.

Best regards,

Nicolas

2 replies

Technical Moderator
December 13, 2024

Hello @DrPiWork 

Make sure to use the STM32CubeMX version 6.13.0.

If the issue is not resolved with this latest release, please share your ioc file to reproduce this.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
DrPiWorkAuthor
Associate
December 17, 2024

Hello,

I'm using STM32CubeIDE 1.17.0.

From what I can see in the Help / Installation details / Installed software menu, it uses STM32CubeMX 6.13.0.202411220809

Regards,
Nicolas

 

DrPiWorkAuthor
Associate
December 17, 2024

I forgot the .ioc file. Here it is.

Nicolas

vas
Associate
February 18, 2025

It looks like I have a similar issue here. Could you please tell if this was fixed already?