Embedded Systems Interview Questions & Answers

Embedded interview questions — RTOS, mutex vs semaphore, interrupts, volatile, SPI/I2C, DMA, startup code, watchdog — with practical answers.

Master Embedded Systems

Embedded interviews mix C programming, RTOS concepts, and hardware peripherals. These are the most-asked questions across automotive, IoT, and consumer roles.

Interview Questions & Answers

Difference between a microprocessor and microcontroller?

A microprocessor (Cortex-A, x86) needs external memory/peripherals — for computers/phones. A microcontroller (Cortex-M, AVR) integrates CPU+RAM+flash+peripherals — for embedded control.

What is an RTOS and when do you need one?

An RTOS gives task scheduling, IPC, and timing guarantees. Needed for multiple concurrent tasks with deadlines. Bare-metal suffices for simple loops. Examples: FreeRTOS, Zephyr.

Difference between a mutex and a semaphore?

A mutex has ownership and protects shared resources (only the locker unlocks; supports priority inheritance). A semaphore is a signaling/counting mechanism without ownership.

What is an interrupt and an ISR?

An interrupt pauses execution for an urgent event; the ISR handles it. Keep ISRs short, avoid blocking, and defer heavy work to tasks via semaphore/queue.

What is volatile and why is it important?

volatile tells the compiler a variable can change outside normal flow (HW registers, ISR globals), preventing optimization that caches stale values — a classic embedded bug source.

What is priority inversion and its solution?

A high-priority task blocks on a resource held by a low-priority task preempted by a medium one. Solved by priority inheritance or priority ceiling protocols.

Difference between SPI and I2C?

SPI: full-duplex, 4 wires, fast, one SS per slave. I2C: 2 wires with addressing, many devices, slower, half-duplex. SPI for speed; I2C for many low-speed peripherals.

What is DMA and why use it?

Direct Memory Access transfers data between peripheral and memory without CPU, freeing it and enabling high-throughput, low-latency transfers (ADC, SPI/UART bursts).

What is the difference between RAM and ROM/Flash in embedded?

RAM (SRAM) is volatile working memory for variables/stack. Flash/ROM is non-volatile, storing code and constants. The .data section is copied from flash to RAM at startup; .bss is zero-initialized in RAM.

What is the startup code / what happens before main()?

Startup (crt0/reset handler) sets the stack pointer, copies .data from flash to RAM, zeroes .bss, initializes the C runtime and vector table, then calls main(). On MCUs it also configures clocks.

What is a watchdog timer?

A hardware timer that resets the system if not periodically refreshed (kicked), recovering from hangs/lockups. Critical for reliability in unattended embedded systems.

What is the difference between polling and interrupt-driven I/O?

Polling repeatedly checks a status flag (simple, wastes CPU, predictable). Interrupt-driven responds only on events (efficient, lower latency, more complex). Choose based on event rate and power needs.

What is endianness and why does it matter?

Endianness is byte ordering of multi-byte values. Big-endian stores MSB first; little-endian LSB first (ARM/x86). It matters for data exchange between systems, network protocols, and memory-mapped access.

What is a memory-mapped peripheral?

Peripheral registers are accessed as specific memory addresses, so reads/writes to those addresses control hardware. In C, accessed via volatile pointers to the register base + offsets.

What is the difference between a hard and soft real-time system?

Hard real-time: missing a deadline is catastrophic (airbags, pacemakers). Soft real-time: occasional misses degrade quality but are tolerable (video streaming). Determines scheduling rigor.

What is stack overflow in embedded and how to detect it?

The stack grows beyond its allocated region, corrupting adjacent memory. Detected via stack canaries/painting, MPU guard regions, RTOS high-water-mark monitoring, and linker-defined limits.

Get Job-Ready

Our course includes hands-on labs, real projects, and mock interview sessions.

Master Embedded Systems

Key Facts at a Glance

TopicEmbedded Systems Interview Questions & Answers (2026)
PlatformCourseTron — India's #1 Electronics & Semiconductor Learning Platform
CoverageVLSI, FPGA, Embedded Systems, PCB Design, Analog IC, AI Hardware, Nano Fab, Post-Silicon, Quantum Computing
Courses135+ industry-led courses with hands-on labs
Engineers Trained300,000+ across India and worldwide
Top Hiring CompaniesIntel, NVIDIA, TSMC, Qualcomm, AMD, Apple, Samsung, Broadcom, MediaTek, ARM
YearUpdated 2026
Chat with us