Firmware Innovation Guide
Add new features to constrained devices using clev
by Silver Yee
Add new features to constrained devices using clever code optimization.
Formats
About this book
Free sample
Chapter 1: The Dead Weight Lie--I once watched a team of six engineers spend three months and $200,000 on a hardware redesign for a medical device. Their linker told them the firmware had exactly 0 bytes of free Flash memory. The new feature—a real-time patient alert system—would never fit. So they spun a new board with a bigger microcontroller. The device shipped six months late.
The project lost money.Six months after launch, a junior engineer named Priya joined the team. During a late-night debugging session, she ran a simple command: arm-none-eabi-objdump -h firmware.elf. She stared at the output for twenty minutes. Then she started laughing—not because anything was funny, but because of what she found.The firmware had 38 percent waste. Thirty-eight percent.
Packed into that binary were entire Interrupt Service Routines for peripherals that didn't exist on the final hardware. Debug strings from three years ago, still sitting in Flash. Struct padding so aggressive that a ten-byte data structure occupied twenty-eight bytes. Initialization code that ran once at startup and then never again—but stayed in memory forever.Priya reclaimed 47 kilobytes in two weeks. The patient alert system fit with room to spare.
No new hardware. No board spin. Just a different way of looking at what "full" actually means.This chapter is about that difference. It's about why standard memory metrics lie, how to see through the lie, and how to decide—before writing a single line of code—whether your new feature requires a hardware revision or just clever optimization.The Most Expensive Mistake in Embedded Engineering The linker says "full." The map file says "100 percent utilization." The manager says "we need a hardware spin." And every one of them is wrong—not maliciously, but systematically. The tools we use to measure firmware size are optimized for one thing: telling you how much space your code takes.
They are not optimized for telling you how much waste your code contains.Here is what the linker actually knows. It knows the total size of the .text section (your code), the .data section (initialized variables), and the .bss section…
This is the end of the free sample. Get the eBook to keep going. Buy now
Contents
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
Details
- Author
- Silver Yee
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Self-Help, Firmware
- Released
- 2026-06-09
- Pages (approx.)
- 123
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Silver Yee
Shingles Nerve Pain ReliefSilver Yee$11.99
Dog Death Grief Recovery GuideSilver Yee$11.99
Restructuring Anger for AutismSilver Yee$11.99
Infant Loss Journal PromptsSilver Yee$11.99
Wholesaling Hard MoneySilver Yee$11.99
Client Scoping For SidelinersSilver Yee$11.99
Gaming and Suicide PreventionSilver Yee$11.99
The Crippled Champion: Ned Hanlan's Miraculous Return to Rowing GlorySilver Yee$11.99
The Great British Bake-Off: A Political Pastry WarSilver Yee$11.99
A Collector's Handbook to the Alfa Romeo Giuletta 1Silver Yee$11.99
The Essential Guide to JapanSilver Yee$11.99
How to Produce Fabric StarchSilver Yee$11.99