Search the forum and you’ll find many relevant posts e.g. Couldn't run the scheduler after handling timer 5 Interrupt - #7 by hs2
and also this Understanding priority levels of ISR and FreeRTOS APIs - #16 by aggarg
or have a look at a matching FreeRTOS demo source in the FreeRTOSConfig.h
.