Non-FictionSelf-HelpFirmware

Firmware Innovation Guide

Add new features to constrained devices using clev

by Silver Yee

  • English
  • 123 pages
  • 2026
  • SamEnrico

Add new features to constrained devices using clever code optimization.

Formats

About this book

Add new features to constrained devices using clever code optimization.

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

Read a sample →

Contents

  1. Chapter 1
  2. Chapter 2
  3. Chapter 3
  4. Chapter 4
  5. Chapter 5
  6. Chapter 6
  7. Chapter 7
  8. Chapter 8
  9. Chapter 9
  10. Chapter 10
  11. Chapter 11
  12. 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

See all

You may also like

See all