Text this: Hands-on RTOS with microcontrollers : building real-time embedded systems using FreeRTOS, STM32 MCUs, and SEGGER debug tools / Brian Amos.