cancel
Showing results for 
Search instead for 
Did you mean: 

xPortSysTickHandler macro commented out in FreeRTOSConfig.h file when using TIMx timers for timebase source

Michael98006
Associate III

The following code is generated for IAR by CubeMx 5.3.0 in FreeRTOSConfig.h file for the STM32H745-DISCO board with FreeRTOS added on the CM7 core with TIM16 selected for the CM4 timebase source and TIM17 selected for the CM7 timebase source:

/* IMPORTANT: This define is commented when used with STM32Cube firmware, when the timebase source is SysTick,

       to prevent overwriting SysTick_Handler defined within STM32Cube HAL */

/* #define xPortSysTickHandler SysTick_Handler */

Seems like CubeMx should allow me to use the SysTick timer for FreeFTOS when the SysTick timer is not being used as the timebase source. Note: I'm suing the CMSIS_v2 interface when adding FreeRTOS. When I generate a similar project with FreeRTOS for my Nucleo-STM32H743 board, the xPortSysTickHandler macro is not commented out.

Anyone else seen this problem?

0 REPLIES 0