Is it safe to call xTaskResumeAll outside of a task? The reason I ask is I’m getting “strange” issues when I create a semaphore outside of task and because I’m using heap_3.c which just wraps malloc in vTaskSuspendAll and xTaskResumeAll, it is this call that causes the problems.
If I implement my own calls to malloc, it all works fine and if I just call vTaskSuspendAll it works (which I’d expect as this is just a counter increment). But as soon as I run xTaskResumeAll my USB CDC stops working, which I haven’t been able to track the exact problem as a lot of it is library code built into the ROM, so I’m struggling to debug it.
The processor is LPC11U68 (cortex M0+).