6.2 Engineering practice
What a firmware job involves beyond writing code: Git and releases you can rebuild years later, reviewing code for embedded bugs, working through static…
Lessons
- Git and releases for firmware · What goes in the repository, branches and tags, versions built into the image, and releases you can rebuild.
- Code review for embedded C · What to look for in firmware changes, how to comment, and what to leave to tools.
- Static analysis and MISRA in practice · Warnings worth enabling, the essential type model, common MISRA findings, deviations and legacy code.
- Working with vendor SDKs and HALs · SDK layers, generated code, HAL handles, status codes and callbacks, and when to go below the HAL.
- Board bring-up, step by step · From first probe connection to clocks, console, memory tests and a power-on self-test.
- Requirements and design notes · Testable requirements, traceability, one-page design notes and the documents a firmware team keeps.
Project: Industrial vibration sensor
A sensor bolted to factory motors, taken from prototype to production: versioned builds, code review, a MISRA-clean release, a vendor-independent driver layer, a factory self-test and an alarm that meets a numbered specification.