Hi @TinNxp,
There was a similar issue discussed in this thread: Re: FreeRTOS stuck at "svc 0" in function of prvPortStartFirstTask in debug mode - NXP Community.
Here is the solution:
"The root cause of the issue is that RTD and FreeRTOS are both using SVC for different needs.
FreeRTOS uses SVC 0 only to start the first task, and does not use it after
RTD use SVC to switch between privileged and user modes.
The first issue is they both implement an SVC Isr handler, and both use SVC 0.
The cleanest way to solve the issue is to merge the two SVC Isr handler into one that serves all SVC interrupts, and to change the FreeRTOS to use an SVC Id not used by RTD (RTD use SVC number 0 to 3).
The easiest work around can be to undefine MCAL_ENABLE_USER_MODE_SUPPORT. In this case, RTD do not use SVC anymore, but the whole software is run in privileged mode."
Maybe try this solution.
If this still does not work, try doing a single-core project to rule out any multicore issues.
Best regards,
Julián