All jobs / Embedded / hardware / Debugging
Embedded / hardware interview question · 3–5 years
Datasheet says 400 kHz I2C; the line looks filthy at 100. What wins?
The strongest answer
The scope and the board — capacitance, pull-ups, length — I do not “trust the PDF” into a flaky field bus
Why it works
Exactly. Physics on your PCB. Faster-into-dirt and extra MCUs are how you fail EMC and time.
What a good answer covers
- Believe the scope on your board.
- Pull-ups, C, length.
- Do not outrun dirt with MHz.
- A second MCU is not a resistor.
Answers that fall short
- Close, but not the strongest: The PDF; scopes lie
PDFs assume a lab you do not have. - Weak: I go to 1 MHz to outrun the dirt
Faster is dirtier. - Red flag: I add a second MCU to “clean” the protocol in software
Another MCU is not a pull-up.
Who gets asked this
More Debugging questions
- 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”?
- What should a field build do on a failed assert?