PIC32 port: System service timer not running properly when it's ISR is deferred

Yes, absolutely you are right!
i am agree with this statement: “If you enable timer driver interrupts the callbacks will be called from within the hardware timer ISR.”.
But as per FreeRTOS documentation, a Non-FreeRtos API shoud not be called from a ISR, then how can i call “callbacks” from hardware timer ISR. I must have to call it from inside a Task. This is what i mean. Hopefully you understand my doubt.
Sorry for troubling you all but i am facing application crash due to this.

Also please refer to this discussion which can explain my intention behind this topic:

see here also:

SergentSloGinJean Rubillon

Mar 12

@saikumar.k Exception code 6 is mainly caused by either calling a non ISR API function from an ISR or using an application/RTOS object before it has been created.
No one here knows your code so it’s impossible for us to tell you exactly what is wrong with it. Hopefully we’re pointing you in the right direction, as that is the only thing we can realistically do.