prvTimerTask cause assertion


I’m using FreeRTOS version 10.3.1, and I enabled the assertion. but once the timer task is started to run it caused an assertion.
the call flow is as the following:

where is the problem?


It looks like a function that is not interrupt safe is being called from an interrupt. Only functions that end “FromISR” can be called from an ISR - that is not what the call stack frame shows though - it is probably showing the call stack of the task rather rather than interrupt.