All jobs / Embedded / hardware / Debugging

Embedded / hardware interview question · 1–3 years

HardFault on Cortex-M. What do you capture before you “add a print”?

The strongest answer

Stacked PC/LR and the fault status registers — then reproduce — I do not reset-in-a-loop to hide it

Why it works

Exactly. The stacked PC is the clue. Empty handlers and -O roulette waste a day.

What a good answer covers

Answers that fall short

Who gets asked this

More Debugging questions