cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: STM32CubeIDE 1.6.1 code generator fails to generate SysTick_Handler () if used with RTOS and non-systick timer as timebase source

MNagl.1
Associate II

Using STM32CubeIDE 1.6.1 with a project based on Version 1.6.0 of the STM32H7 firmware package the code generator will not generate a void SysTick_Handler (void) { method as long as according to the recommendation a non-systick-timer is configured as timebase source.

The missing of the Systick_Handler definition makes the MCU run the default handler (endless loop) on the first timer interrupt. This is hard to debug because the debugger cannot determine which signal triggered the default handler and points to the WWDG (even if it is disabled).

Adding an empty

void SysTick_Handler (void) {}

definition or selecting the systick timer as timebase source both hide the bug.

0 REPLIES 0