vTaskdelay(), vTaskdelayuntil() call doesn't work on MPC5748G

nkumar-trillium wrote on Thursday, November 22, 2018:

vTaskdelay(), vTaskdelayuntil() call doesn’t work on MPC5748G.

I created a project on Z0 core. -> Added freertos component via PE -> Generated the code.

On creating the task, it is successful.

But when i used vTaskdelay() inside the task, the application crashes. Removing the call woks fine.
by debugging it boils down to the below code.

if( xAlreadyYielded == pdFALSE )
portYIELD_WITHIN_API(); --> call to ((void)xPortSyscall(portSYSCALL_YIELD)) -->

static portFORCE_INLINE BaseType_t xPortSyscall( const BaseType_t number )
register BaseType_t numberR3 asm (“r3”) = number;

__asm__ volatile
    "se_sc" : "+r" (numberR3) : : "cr0", "r4"  --> Executing this line results in crash in application.

return numberR3;


Kindly help to resolve this issue.

rtel wrote on Thursday, November 22, 2018:

Is this code we provided? If not, where did it come from?