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:
- Delete the definitions of
SVC_Handler
andPendSV_Handler
fromstm320xx_it.c
. - 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.