The ultimate example on how to compile a barebones C application for stm32 (all init code included).