I know about a project wizard that can create a C/C++11 project template for STM32F407 device and GCC toolchain in a snap of a finger. Furthermore, he delivers breathtaking magic by supporting mbed SDK including mbed-RTOS, FreeRTOS and SafeRTOS!
No doubt, his magic is strong, and luckily, he is on your side. ^^ He relieves you of several boring development tasks. You may now finally focus on more important tasks like coding and testing. And it just happens I know his whereabouts, so you can meet him in person right away.