“Build firmware” means two different jobs. Most pilots flash a hex the project already compiled – cloud build, configurator, done. A smaller crew compiles from source on a laptop: they changed a file, need a custom target, or want to read the mixer instead of trusting a stranger’s dump. Both jobs need the same hardware discipline. Only the software bench changes.
You are not writing a flight controller from a blank editor. You are putting a living open-source crew onto a board that the project already lists. Inventing your own gyro loop is a research career, not a Saturday.
Job one – most students
Flash a published hex
Basic. The project already compiled the crew. You pick the board name and write the file.
Detail. Read the silk and the vendor listing. In the configurator, choose that exact target – not “any F7.” Dump the working firmware first if the aircraft already flies. Flash. Reconnect. Confirm the 3D model moves when you move the airframe. Then Ports, receiver protocol, DShot, failsafe, props still off. The assembly tutorial walks that order on a 5-inch.
How it differs. You did not “build firmware.” You enlisted a stock crew. That is the right first job. Custom hexes from a stranger are a different risk: you cannot see what they changed.
Job two – when you change code
Compile the tree yourself
Basic. Git the official source, install the toolchain they document, build the same target name the configurator would have picked, flash your `.hex`.
Detail. Work on a release tag unless you intend to test development. Change as little as you can name. Build once before you edit so you know the bench works. Keep the stock hex so you can go home. Licences still apply: GPLv3 wants your changes public if you ship a product.
How it differs. Compiling is how you learn the mixer and how you carry a patch. It is not faster than cloud build, and it will not save a wrong target. A local compile of the wrong board is the same brick as a wrong cloud hex.
Hardware you do not invent
Gyro, flash, and a listed target
Basic. The firmware expects a board the maintainers already wired on paper: IMU, flash chip, UARTs, motor outputs.
Detail. A blank STM32 on a breadboard is not a Betaflight target. Adding a random MPU and hoping `make` will guess the pins is how you get a gyro that lies. If you are designing a new FC, you write a target file and get it merged – that is hardware engineering plus the project’s target docs, not this Saturday briefing.
How it differs. Flashing a SpeedyBee that Betaflight lists is enlistment. Designing a new board is a different hangar. The Raspberry Pi plate above is the same warning: a computer is not an IMU until a supported hat says it is.
After the hex lands
The crew still needs standing orders
Basic. A successful flash is a silent board with new software. It is not an aircraft yet.
Detail. Set the UART tenants. Tell it CRSF or SBUS. Set DShot on the motors tab, not PWM, unless you are driving servos. Bind the radio. Test failsafe by pulling the handheld battery, props off. Save a CLI diff or a `.param` file. Then you have a crew that will still know what to do when the radio dies.
How it differs. Build tools put bytes in flash. The radio lexicon and the assembly plate are how those bytes meet a receiver and four ESCs. Skip that and you have a very expensive paperweight that enumerates on USB.