An stm micro can probably run a standard low-footprint rtos like freertos... Seems like overkill for 5 tasks.