The prompt hands you a 48 MHz microcontroller, a 400 kHz I2C controller, a 12 MHz SPI controller, and exactly one DMA channel. A prepared mid-level candidate recites what I2C, SPI and UART are. A strong one notices the numbers have already narrowed the design, and does the byte math out loud before touching a driver. This walkthrough follows a mid-level Embedded Developer through a 30-minute bring-up interview built on a single blueprint from the InterviewStack.io AI mock interview, and shows where points quietly leak. The answers below are illustrative, not a transcript of a real person or company.
Key Findings
- The interview is scored out of 100 points: 30 for interviewer objectives, 30 for level-specific expectations, 20 for technical proficiency, 20 for communication.
- It runs 30 minutes in 3 phases of 10 minutes each: architecture, implementation, and failure diagnosis.
- Each phase carries 5 checklist items, so 15 behaviors in total decide the score.
- The SPI controller tops out at 12 MHz against 400 kHz for I2C, a 30x difference in raw clock that frames every bus choice.
- Only 1 DMA channel and 2 external interrupt lines are available for 2 sensors, so the interview is really about allocating scarce resources.
- The ADC runs at 20 kSPS aggregate and the IMU at up to 1 kHz, a 20x spread in sample rate that decides who gets the DMA channel.
- Reading 12 bytes of IMU data over 400 kHz I2C takes roughly a third of every 1 ms sample period, while the same read over 12 MHz SPI barely registers.
The Prompt Already Picked Your Buses
Here is the scenario, in the form an interviewer would put it on the table.
The interview question
You are bringing up a new board. The hardware summary is below.
// MCU: 48 MHz Cortex-M class microcontroller // Available interfaces to the main board: // - I2C controller up to 400 kHz // - SPI controller up to 12 MHz // - UART up to 3 Mbps // - 22 GPIOs, 2 external interrupt lines, // 1 DMA channel available to this subsystem // // New board peripherals: // - IMU sensor: up to 1 kHz sample rate, supports // I2C or SPI, data-ready interrupt pin // - External ADC: 4 channels, 20 kSPS aggregate, SPI only // - Debug header connected to host PC through UART // - Shared 3.3V rail; early prototypes show occasional // communication failures // // System behavior: // - Stream timestamped IMU + ADC data to the application task // - Missed samples should be rare and detectable // - CPU budget is limited; other control tasks are running // - Design should be maintainable by a small team
You are responsible for bringing up these peripherals and implementing the firmware interface layer. How would you design it, and what would you pay attention to during bring-up and debugging?
The interviewer is probing four things at once: whether you choose buses from the data rates instead of habit, whether your driver stack makes loss visible, whether you can tell a firmware bug from an electrical one, and whether you can explain trade-offs at mid-level depth instead of reciting protocol facts. The ADC is SPI-only, the IMU can go either way, and one DMA channel cannot serve everyone. That scarcity is the question.
Where Do the 100 Points Go in an Embedded Developer Serial Protocols Interview?

Sixty of the 100 points sit in alignment with the interviewer's objectives and in level-specific expectations (trade-offs, system thinking, working without heavy prompting). Technical accuracy is worth only 20. A candidate who knows every register but never states an assumption or a trade-off can lose more than half the score without a single factual error. Keep that in mind while reading the turns.
Which Four Follow-Ups Expose the Weak Spots in a Bus Design?
Turn 1: Choosing the buses
Interviewer: "Which bus choices would you make for the IMU and ADC, and what trade-offs led you there?"
Turn 2: Making loss detectable
Interviewer: "How would you structure the driver path from peripheral registers up to the application task so that missed or corrupted samples are detectable?"
Turn 3: When the CPU runs out
Interviewer: "If CPU utilization becomes a problem once both sensors are active, what would you change in your interrupt, polling, buffering, or DMA strategy?"
Turn 4: Stale data and NACKs
Interviewer: "Suppose the IMU occasionally returns stale data or NACKs during stress testing; how would you narrow down whether this is a firmware, timing, or electrical issue?"
Why Do Candidates Who Know I2C Still Skip the Timestamp?
You just read four mistakes and probably caught each one. In a live round, there is a clock, an interviewer pushing on your last sentence, and a follow-up you did not rehearse. Candidates who know I2C addressing and pull-ups still skip the assumptions, forget the timestamp, or reach for a retry loop when asked "why." Knowing the move and producing it unscripted are different skills, and only repetition closes the gap.
Which Three Phases Is the AI Interviewer Tracking?

This is the blueprint a strong candidate hits, and it is exactly what the AI mock interview tracks you against in real time. Ten minutes on architecture, ten on implementation and robustness, ten on diagnosis.
- ✓Asks or states key assumptions about sample rates, latency, and acceptable data loss
- ✓Selects SPI for the ADC and provides defensible reasoning for IMU bus choice
- ✓Mentions data-ready interrupt use for IMU or explains an alternative coherently
- ✓Describes layering such as bus HAL/driver, device driver, buffer/queue, application interface
- ✓Accounts for CPU budget with an initial transfer strategy rather than defaulting blindly to polling everywhere
- ✓Explains how sensor reads are triggered and completed, including ISR/DMA interaction where applicable
- ✓Provides a credible buffering plan such as ring buffers/double buffering with overflow detection
- ✓Includes timestamping and some method to detect missed, stale, or partial samples
- ✓References relevant register/status handling such as transfer-complete, RX/TX readiness, overrun/NACK/error flags
- ✓Mentions initialization order and startup validation steps for peripheral configuration
- ✓Uses external tools appropriately: logic analyzer for protocol decode, scope for signal integrity/timing/pull-ups
- ✓Checks protocol-specific causes such as SPI mode mismatch, chip-select timing, I2C address/pull-up/clock stretching, UART baud/framing mismatch
- ✓Distinguishes firmware scheduling bugs from electrical issues and proposes experiments to isolate them
- ✓Suggests concrete recovery actions such as bus reset, peripheral re-init, timeout handling, and error counters
- ✓Shows a systematic debug sequence instead of random trial-and-error
Practice the Bring-Up Live
Run this exact scenario against an AI interviewer that asks the follow-ups and scores you against the blueprint above.
Start the AI mock interview for this topic
Want warm-up reps first? Drill the peripheral interfaces question bank, then browse interview preparation guides. To see what employers ask for in this role, check current Embedded Developer openings or the embedded developer skills breakdown. For the neighboring topic, see the interrupt handling walkthrough.
FAQ
Q. Which bus should an embedded developer pick for a 1 kHz IMU in an interview?
Either I2C or SPI can work, so the interviewer is grading your reasoning. Estimate bytes per sample, compare against the 400 kHz I2C ceiling and the 12 MHz SPI ceiling, and note that the IMU's data-ready interrupt matters more than the wire count. The blueprint expects SPI for the ADC and a defensible argument for the IMU.
Q. How do you make missed samples detectable in firmware?
Stamp each sample from a free-running timer at the data-ready edge, attach a sequence number, and keep an overflow counter on the ring buffer. A gap in the sequence, or a timestamp delta far from the expected 1 ms period, flags a missed or stale sample without relying on logs.
Q. How do you debug an I2C device that sometimes NACKs?
Capture the transaction with a logic analyzer to see whether the NACK lands on the address or on a data byte, then scope the SDA and SCL rise times and the 3.3V rail during the failure. Compare failures against other bus and CPU activity before changing firmware timing.
Q. Should I use DMA, interrupts, or polling for sensor reads?
Match the mechanism to the rate and the budget. With only one DMA channel, give it to the highest-rate stream (the 20 kSPS ADC), and use interrupt-driven transfers for the 1 kHz IMU. Polling everywhere is the pattern the checklist penalizes.
Q. How do you validate SPI clocking and chip select without software logs?
Probe SCLK, MOSI, MISO and chip select on a logic analyzer or scope. Confirm clock polarity and phase against the device datasheet, check that chip select asserts before the first clock edge and holds through the last, and compare against the decoded bytes.
Q. How would the design change for a CAN-connected sensor module?
Keep the layering: a bus driver at the bottom, a device driver that produces timestamped samples, and a buffer feeding the application. Only the bottom layer and the error handling (bus-off, arbitration loss, message loss) change.
Q. How is this mock interview scored?
Out of 100 points: 30 for interviewer objectives alignment, 30 for level-specific expectations, 20 for technical proficiency, and 20 for communication and problem solving, over a 30-minute, three-phase blueprint.
Count First, Then Connect
Most of the points in this interview are won before the first line of driver code: state the assumptions, do the byte math, give the scarce DMA channel to the fastest stream, and make loss visible. Practice saying that out loud under a clock, and the follow-ups stop feeling like surprises.
Topics
Ready to practice?
Put what you've learned into practice with AI mock interviews and structured preparation guides.