That may be the cause of the problem. Can you try disabling interrupts in the SWI_Handler before calling vTaskSwitchContext and enable afterwards?
That may be the cause of the problem. Can you try disabling interrupts in the SWI_Handler before calling vTaskSwitchContext and enable afterwards?