Firmware CI & Coding-Standard Automation
Most firmware teams have a coding standard as a PDF that people are meant to remember. We turn it into a check that runs on every push: a checker written to your exact rules, static analysis, and a build on your own toolchain, all in your CI. Your team sees every deviation in the pull request instead of in a review meeting.
Your standard, enforced
- A checker written to the rules of your own coding standard, rule by rule
- An auto-fixer for safe, mechanical rules only; anything that could change behaviour stays a report
- A clear report per repository, so you can see how far each one is from compliance
Static analysis and builds
- clang-tidy static analysis tuned to your code base and vendor libraries
- Builds with your real toolchain, including vendor IDEs such as TI Code Composer Studio
- Self-hosted CI runners where the toolchain cannot run on cloud runners
Rolled out without stopping work
- Report-only first, so nothing blocks merges while existing code is cleaned up
- Each rule switched to a blocking gate once its error count reaches zero
- The same setup copied into every repository, so each one runs on its own
/ Work we have done
Power electronics
A coding-standard checker, static analysis and CI rolled out across 14 firmware repositories for inverter, DC-DC and system controllers on TI C2000 processors.
/ Technology
- C
- Python
- clang-tidy
- GitHub Actions
- Self-hosted runners
- TI Code Composer Studio
- TI C2000
- PowerShell
/ Questions
- Why not just use clang-format?
- clang-format enforces its own style, not yours. On real firmware it often rewrites files that already follow the standard, for example by destroying deliberate column alignment. A checker written to your rules flags only real deviations.
- Will this block our team on day one?
- No. It starts in report-only mode, so every deviation is visible but nothing is blocked. Rules become blocking one at a time, once the existing code meets them.
- Our toolchain only runs on Windows with a vendor IDE. Can it still run in CI?
- Yes. We set up self-hosted runners that have your vendor toolchain installed, so CI builds the code exactly the way your engineers do.