Need help making the shift from bare-metal to RTOS - EdgeBench