When Ardupilot Mission Planner uploads firmware to a Pixhawk flight controller, I assume it accesses a .hex file which can be used to upload machine code to, say, an STM32F427 microcontroller. This .hex file, of course, must have been built at some point. In the interest of adding new features:
-How best should one attempt building a .hex for a given platform (ex. Pixhawk 1 with FMUv2
consisting of an STM32F427) from modified source code?