There is also a fantastic RTOS called ChibiOS that has a focus on the STM32 chips and has great support.