FreeRTOS example for small memory footprint

That may cause problems because compiler may generate epilogue and prologue while the definitions of xPortPendSVHandler and vPortSVCHandler are naked functions to be installed as ISRs. Try the following:

  1. Delete the definitions of SVC_Handler and PendSV_Handler from stm320xx_it.c.
  2. Enable the following in FreeRTOSConfig.h:
#define vPortSVCHandler								SVC_Handler
#define xPortPendSVHandler							PendSV_Handler

In addition, you should use some other timer as HAL Timebase (CubeMX should have given a warning about it).

Thanks.