Why does my RTOS MicroC project run smoothly outside tasks but fail within tasks? - DevHeads IoT Integration Server