All jobs / Embedded / hardware / Debugging
Embedded / hardware interview question · 3–5 years
What do you log in the field when flash is tiny?
The strongest answer
A ring of last resets, versions, and a few fault crumbs — I do not log every happy state until the part is worn out
Why it works
Exactly. Crumbs you can retrieve. Happy-path floods and phone PII are two ways to fail.
What a good answer covers
- Ring: reset, version, fault crumbs.
- Do not flood happy-path.
- Lab-only is not enough.
- No user PII in MCU logs.
Answers that fall short
- Close, but not the strongest: Every function entry
Entry logs wear flash and hide the fault. - Weak: Nothing; we will reproduce it in the lab
Lab-only is how fleets stay mysterious. - Red flag: PII from the user’s phone “for context”
Do not take phone PII onto a MCU log.
Who gets asked this
More Debugging questions
- A fleet starts resetting in the wild. First staff hour?
- What is SWD, and how does it differ from JTAG?
- A bug vanishes when you add printf. What did you learn?
- When do you reach for a logic analyser, and when for an oscilloscope?
- HardFault on Cortex-M. What do you capture before you “add a print”?
- What should a field build do on a failed assert?
- Datasheet says 400 kHz I2C; the line looks filthy at 100. What wins?
- A struct field changes value minutes into a run, and nothing in the code writes to it. How do you find the…