All jobs / Embedded / hardware / Debugging
Embedded / hardware interview question · 1–3 years
What should a field build do on a failed assert?
The strongest answer
A defined safe state, a log I can get, and a reset policy I chose — not a debug breakpoint instruction that hangs a kiosk
Why it works
Exactly. Field ≠ debugger. Silent strip and BKPT hangs are two ways to fail a store.
What a good answer covers
- Safe state + breadcrumb + chosen reset.
- No BKPT in field builds.
- Do not strip every assert.
- Do not reboot with no log.
Answers that fall short
- Close, but not the strongest: BKPT forever so a probe can attach in a store
Stores do not have your probe. - Weak: Nothing; strip all asserts so it is fast
Strip-all hides the only clue. - Red flag: A reboot loop with no breadcrumb
Reboot without a crumb is weather.
Who gets asked this
More Debugging questions
- 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…
- What do you log in the field when flash is tiny?
- 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”?