# Qualcomm Embedded Software Engineer Interview Questions

Interview questions and coding challenges based on skills from public Qualcomm job postings.

Not affiliated with or endorsed by Qualcomm. Qualcomm is a trademark of its owner, used here only to say which postings this page describes.

To ask for a change or removal: support@ohmwork.io

https://ohmwork.io/study-guides/for/qualcomm-embedded-software-engineer-interview-questions

Start practicing: [Heartbeat](https://ohmwork.io/challenge/01-gpio-blink)

## From public job postings

- Debugging embedded software on the target: 5 of 5
- Device drivers and low level firmware: 4 of 5
- Bringing up new boards: 3 of 5
- Hardware debug tools: JTAG debuggers and logic analyzers: 3 of 5
- Serial buses: I2C and SPI: 3 of 5
- UART and CAN: 2 of 5
- ARM or RISC-V processor architecture: 3 of 5
- An RTOS: 3 of 5
- Fast interfaces such as PCIe: 3 of 5, not practiced here
- Embedded C: 2 of 5
- Datasheets and schematics: 2 of 5
- Unit testing C code: 2 of 5
- Code reviews: 2 of 5
- Test firmware for board validation and factory test: 2 of 5, not practiced here
- Linux: 2 of 5, not practiced here
- Lab instruments: oscilloscopes and multimeters: 2 of 5, not practiced here
- Finding performance bottlenecks: 2 of 5, not practiced here
- Automotive microcontrollers and CAN transceivers: 2 of 5, not practiced here
- Multithreaded code: 1 of 5
- Interrupt controllers and timers: 1 of 5
- Low power, always on software: 1 of 5
- Sensor software: 1 of 5
- Secure boot: 1 of 5, not practiced here
- Reliability features such as error correcting memory: 1 of 5, not practiced here
- DMA engines: 1 of 5, not practiced here
- Software architecture: 1 of 5, not practiced here
- Signal processing and machine learning: 1 of 5, not practiced here

### Sources (5)

1. [Embedded Software Engineer, Senior](https://careers.qualcomm.com/careers/job/446722079654), San Diego, CA, checked December 1, 2026
2. [Staff Embedded Software Engineer, Automotive Platforms](https://careers.qualcomm.com/careers/job/446720780790), San Diego, CA, checked December 1, 2026
3. [Sr. Staff Embedded Software Engineer, Automotive Platforms](https://careers.qualcomm.com/careers/job/446720924242), San Diego, CA, checked December 1, 2026
4. [Sr. Embedded Software Engineer](https://careers.qualcomm.com/careers/job/446721245826), San Diego, CA, checked December 1, 2026
5. [Staff Embedded Software Development Engineer](https://careers.qualcomm.com/careers/job/446721086329), San Diego, CA, checked December 1, 2026

## Debugging on the target

5 of 5 jobs

### A bug shows only at full speed, and halting the core at a breakpoint hides it. How can the firmware report what it is doing without stopping?

Send short trace lines through the core's own debug channel. On a Cortex-M4 chip such as the STM32F4, the ITM writes characters to a stimulus port, and the trace pin (SWO) carries them to the probe while the core keeps running; the probe usually sets the pin's speed in the TPIU and turns the pin on with TRACE_IOEN in `DBGMCU_CR`. The firmware turns the ITM on by setting TRCENA (bit 24 of `DEMCR`), unlocking the ITM with 0xC5ACCE55 in its lock access register, setting ITMENA in `ITM_TCR` and bit 0 of `ITM_TER`; then a `_write` that waits until port 0 can take a character and stores it there routes printf to the probe. For timing, toggle a spare pin at each point of interest and watch it on a logic analyzer. Keep printing out of interrupt handlers: a handler records the event, and main prints it.

Practice it: [Back Channel](https://ohmwork.io/challenge/127-back-channel)

### On a new board, the status LED is lit while nobody touches its button and goes dark while the button is held. What do you check before changing the code's logic?

How the button is wired. A button that pulls its pin to ground, with a pull-up holding the pin high when it is open, reads 0 while pressed and 1 while released. Check the schematic for where the button connects and whether the board or the chip provides the pull, then check the pin's setting in `GPIOx_PUPDR` (01 is pull-up, 10 is pull-down) and read the level from `GPIOx_IDR`. The code then lights the LED when the bit reads the level that means pressed on this board, not when it reads 1.

Practice it: [Upside Down](https://ohmwork.io/challenge/104-upside-down)

### The firmware stops in the HardFault handler on the target. What do you read to find the instruction that faulted?

The exception's stack frame and the fault status registers. On entry the Cortex-M4 pushes R0 to R3, R12, LR, the return address and xPSR on the stack that was in use; bit 2 of the EXC_RETURN value in LR says which (0 for MSP, 1 for PSP). The stacked return address, the seventh word of the frame (offset 0x18), points at the faulting instruction for a precise fault; for an imprecise bus fault (IMPRECISERR in CFSR) it points at a later instruction, because the core went on before the error came back. Then read `CFSR` at 0xE000ED28 for the kind of fault (memory management, bus or usage) and `HFSR` at 0xE000ED2C for a fault that escalated; when MMARVALID or BFARVALID is set, `MMFAR` (0xE000ED34) or `BFAR` (0xE000ED38) holds the address that was accessed.

### When does a logic analyzer find a bug that a JTAG debugger does not?

When the bug lives in timing between signals or in what goes over a wire, and halting the core would change it. A logic analyzer shows each byte of an I2C or SPI transaction with its acknowledge, where chip select rises against the last clock, and how long an interrupt takes to answer an edge if the handler sets a spare pin on entry. The debugger shows the core's state at one instant; the analyzer shows the signals over time while the code runs at full speed. Use both: the analyzer to find when it goes wrong, the debugger to see why.

## Registers and drivers

5 of 5 jobs

### Bring-up code must make PA5 an output on a port whose other pins earlier code has already set up. Which writes are safe, and which are not?

Change only PA5's field. Each pin owns two bits of `GPIOA_MODER`, bits 11 and 10 for PA5, and they may hold anything when your code starts, so clear the field first with an AND of the inverted mask, `GPIOA_MODER &= ~(3u << 10);`, then OR in 01 for output, `GPIOA_MODER |= 1u << 10;`. Drive the pin through `GPIOA_BSRR`, whose low half sets pins and high half resets them in one write; a bit written as 0 changes nothing, so a plain `=` is the right write there. A plain `=` on `MODER`, `PUPDR` or `ODR` rewrites all sixteen pins, and an OR alone cannot clear a bit that was already set.

Practice it: [As Found](https://ohmwork.io/challenge/102-as-found)

### How do you describe a peripheral's registers in C so that one driver serves every copy of that peripheral, and what breaks the layout?

Declare a struct whose members are the registers in address order, each `volatile uint32_t`, and point it at each instance's base address, for example GPIOA at 0x40020000 and GPIOC at 0x40020800 on the STM32F4. The compiler places each member by the size and order of the members before it, so a register left out, a wrong width, or a gap without a reserved member moves every register after it. A static assertion on `offsetof` for a few registers catches that at build time. Members must be volatile so each access reaches the hardware.

Practice it: [Floor Plan](https://ohmwork.io/challenge/109-floor-plan)

### A driver waits for a status flag that a faulty part never sets. How should that wait be written?

With a bound. Time the wait on a free running timer: take its count when the wait starts, and each time round compare the unsigned difference between the count now and that start, in the timer's own width, with the limit, so the wait still ends when the counter wraps; a loop count will do when no timer is free. When the limit passes, return a status that means timeout, kept apart from any data the driver returns. The caller then decides to retry, reset the peripheral or report the fault. A wait without a bound turns one stuck part into a hung board, and leaves the watchdog as the only way out.

## Board bring-up

3 of 5 jobs

### How does bring-up code confirm which chip it is running on, and why does the pointer's type matter when it reads the ID?

Read the ID register at its fixed address through a pointer of the register's width. On the STM32F4, `DBGMCU_IDCODE` is at 0xE0042000: `uint32_t id = *(volatile uint32_t *)0xE0042000;` gives the device ID in bits 11 to 0 and the revision in bits 31 to 16. A `uint8_t` pointer would read only the lowest byte, and `volatile` keeps the compiler from dropping or reusing the read. Printing the value read, not a constant, proves the code ran on this part.

Practice it: [Nameplate](https://ohmwork.io/challenge/101-nameplate)

### A new board reaches main, but its initialized globals hold the wrong values. What in the startup code do you check?

The copy of `.data` and the clearing of `.bss`. Before main, the reset handler copies the initial values from flash, where the linker script puts them, to RAM between `_sdata` and `_edata`, then zeroes RAM from `_sbss` to `_ebss`. A linker symbol has an address and no value, so the code must use the symbol's address, for example by declaring it as an array, `extern uint32_t _sdata[];`. Declared as a plain variable and read, it yields whatever word is stored at that address, and the copy starts from the wrong place.

Practice it: [Cold Start](https://ohmwork.io/challenge/20-boot-hang)

### Bring-up code starts the independent watchdog with a new timeout, yet the timeout never changes. What do you check?

The watchdog's write protection. On the STM32F4, `IWDG_PR` and `IWDG_RLR` accept writes only after 0x5555 is written to `IWDG_KR`; without it the writes are dropped and the reset values stay. The order is: write 0xCCCC to `IWDG_KR` to start it, write 0x5555 to unlock, write the prescaler and the reload, wait until PVU and RVU in `IWDG_SR` clear, then write 0xAAAA to reload the counter. With PR = 3 (divide by 32) and RLR = 999 on the 32 kHz LSI clock, the timeout is about 1 second. Feed it from the main loop after real work is done, never from a timer interrupt that keeps running while the loop hangs.

Practice it: [Night Watch](https://ohmwork.io/challenge/122-night-watch)

### A sensor stays silent at its documented I2C address on a new board. What do you check on the schematic and the datasheet before blaming the driver?

That the part can answer at all. On the schematic: pull-up resistors on SDA and SCL, the part's power and any enable or reset pin, the address pins' straps, and that the lines reach the I2C instance and pins the firmware sets up. In the datasheet: whether the address is given as 7 bits or as the 8 bit byte that already holds the read or write bit in bit 0, and the power-up steps, since some parts start in shutdown and must be woken before they report. Then scan the bus to see which addresses answer.

## Serial buses and sensors

4 of 5 jobs

### How does firmware on an STM32F4 find every address that answers on an I2C bus?

Try each address from 0x08 to 0x77 in turn; the addresses below and above that range are reserved. Set START and wait for SB in `I2C_SR1`, write the address shifted left one place with the write bit clear, then wait for ADDR (bit 1, a device acknowledged) or AF (bit 10, no acknowledge). On ADDR, clear it by reading `I2C_SR1` then `I2C_SR2`, and record the address; on AF, clear it by writing 0 to it. Either way set STOP, and wait until BUSY in `I2C_SR2` clears before the next try, so each probe starts on a free bus. Every wait needs a timeout.

Practice it: [Census](https://ohmwork.io/challenge/70-census)

### Reading a flash chip's three byte ID over SPI gives the first byte right and garbage for the other two. What is the usual cause?

Chip select rose between bytes. The read ID command, 0x9F, and its three answer bytes form one transaction: hold chip select low, send the command, then send one dummy byte for each byte you want back, reading `SPI_DR` after RXNE sets for every byte sent and dropping the byte that came back during the command. Raising chip select after the command ends it, and the next frame is a new command. Wait for BSY to clear after the last byte before raising chip select.

Practice it: [Roll Call](https://ohmwork.io/challenge/09-spi-whoami)

### Before an STM32F4's CAN controller sends its first frame, which modes does it pass through?

From reset it sits in sleep mode. Set INRQ and clear SLEEP in `CAN_MCR`, then wait for INAK to set and SLAK to clear in `CAN_MSR`: it is now in initialization mode, the only mode in which `CAN_BTR`, the bit timing, can be written. Write the timing, clear INRQ and wait for INAK to clear: the controller enters normal mode once it sees the bus idle. Then fill a free mailbox, the standard ID in bits 31 to 21 of `CAN_TIxR`, the length in `CAN_TDTxR` and the data in `CAN_TDLxR`, and set TXRQ to send it.

Practice it: [Calling Card](https://ohmwork.io/challenge/112-calling-card)

### A node on a busy CAN bus misses some of the frames it needs. How do acceptance filters help?

They drop the frames the node does not need before they take a place in a receive FIFO. On the STM32F4 each of the two receive FIFOs holds three frames; when a frame passes the filters while its FIFO is full, a frame is lost and FOVR sets in `CAN_RFxR`. By default the new frame overwrites the last one stored, and with RFLM set in `CAN_MCR` the new frame is dropped. Set a filter bank, in list mode for exact IDs or mask mode for a range, to pass only the IDs the node uses; configure it with FINIT set in `CAN_FMR`, then clear FINIT. Read each frame that passes and release it with RFOM promptly, so the FIFO always has room.

Practice it: [Cocktail Party](https://ohmwork.io/challenge/113-cocktail-party)

### A sensor sends each 16 bit reading as two bytes, high byte first. How do you rebuild the value so the code means the same thing on any processor?

Shift the bytes into place: `uint16_t v = ((uint16_t)hi << 8) | lo;`. Copying the two bytes into a `uint16_t` with a cast or memcpy reads them in the processor's own byte order, and the STM32F4 is little endian, so the bytes come out swapped. Keep the bytes and the result unsigned, and take the byte order from the sensor's datasheet, not from the processor.

Practice it: [Weather Report](https://ohmwork.io/challenge/107-weather-report)

## RTOS and multithreaded code

3 of 5 jobs

### One FreeRTOS task must react the moment another task sees an event. Why block on a semaphore rather than check a flag every tick?

A task blocked on `xSemaphoreTake` uses no processor time, and the matching `xSemaphoreGive` makes it ready at once; under preemptive scheduling, if its priority is higher than the giver's, it runs before the give returns. A task that checks a flag and then calls `vTaskDelay(1)` wakes on every tick whether or not anything happened, and can still be a tick late. Give from an interrupt with the FromISR call and request a context switch when it reports that a higher priority task woke.

Practice it: [Baton](https://ohmwork.io/challenge/118-baton)

### A fast task produces readings in bursts, and a slower task logs them. How do you pass them so none is lost or repeated?

Through a FreeRTOS queue, which copies each reading in and out by value and keeps them in order. Size it for the largest burst the producer can make, so the fast task's `xQueueSend` never has to wait on the slow one, and let the logger block on `xQueueReceive` until a reading arrives. A single shared variable keeps only the latest value, so readings in a burst overwrite each other.

Practice it: [Hopper](https://ohmwork.io/challenge/119-hopper)

### In a FreeRTOS program, what belongs before vTaskStartScheduler and what belongs inside tasks?

Work done once at power up goes before it: setting up clocks and peripherals, creating queues and semaphores, creating the tasks. `vTaskStartScheduler` returns only when the heap cannot hold the tasks the kernel makes for itself, the idle task and, with software timers on, the timer task, so nothing after it runs on a working system. Work that goes on for good goes inside a task, written as a loop that never ends; a task function must never return, and one that has finished deletes itself with `vTaskDelete(NULL)`.

Practice it: [First Shift](https://ohmwork.io/challenge/116-first-shift)

## Testing and code review

4 of 5 jobs

### How do you unit test code that turns a sensor's raw bytes into readings, without the board?

Write the decoding as a function that takes bytes and returns values, with no register access inside it, and build it for the host as well as the target. Feed it known frames and check the results: the smallest and largest values (0x0000 and 0xFFFF), a high byte of 0x80 or more, which shows a signed type by mistake, and frames that arrive split across two reads. The same function then runs unchanged on the board.

### Which integer type mistakes should a review of sensor code catch?

A signed type holding unsigned data: a 0 to 255 reading stored in `int8_t` turns every value of 0x80 or more negative, so it passes any upper bound check. Comparisons between a signed value and an unsigned one that is at least `unsigned int` and at least as wide as the signed one, where the signed one is converted to unsigned and a negative number becomes huge. Counters too narrow for the count, such as a `uint8_t` that wraps after 255. Shifts of signed values. Each is fixed by making a variable's type match the range of what fills it.

Practice it: [Fallback](https://ohmwork.io/challenge/17-sensor-degraded-mode)

## Interrupts and timers

1 of 5 jobs

### An EXTI0 interrupt handler is written, but it never runs when PA0 rises. What do you check?

Each gate on the way in. The handler's name must be exactly `EXTI0_IRQHandler`, or the vector table keeps the default handler. PA0 must be routed to line 0 in `SYSCFG_EXTICR1` (with the SYSCFG clock on), line 0 unmasked in `EXTI_IMR` with its rising edge set in `EXTI_RTSR`, and IRQ 6 enabled in the NVIC by setting bit 6 of `NVIC_ISER0`. Inside the handler, clear the pending flag by writing 1 to bit 0 of `EXTI_PR`, or the handler runs again at once.

Practice it: [Knock](https://ohmwork.io/challenge/120-knock)

### TIM2 counts a 16 MHz clock. How do you make it update every 20 ms, and why are the values written one less than the divisions?

Divide by 16000 for one count each millisecond, then by 20: `TIM2_PSC = 15999` and `TIM2_ARR = 19`. Both count from 0, so a value of N minus 1 gives N steps. The prescaler takes its new value only at an update event, so set UG in `TIM2_EGR` once to load it, then clear UIF. Each update then sets UIF in `TIM2_SR`, which raises an interrupt when UIE is set in `TIM2_DIER`.

Practice it: [Timekeeper](https://ohmwork.io/challenge/105-timekeeper)

### Events sometimes come in bursts faster than the main loop can report each one. How do you split the work between the handler and main so none is lost?

The handler only records and returns: it clears its pending flag and adds one to a `volatile` counter, or puts the event in a ring buffer. Main sends the reports, one for each event recorded. While a handler runs, its own interrupt cannot be taken again, and the pending flag holds only one more, so a handler that does slow work loses events that come close together. On a Cortex-M4 an aligned 32 bit read is one access, so main can read a counter the handler writes without tearing.

Practice it: [Tally](https://ohmwork.io/challenge/121-tally)

## Low power and sleep

1 of 5 jobs

### A low power node sleeps with WFI and wakes on an interrupt; the handler runs, but the code after WFI never does. What do you check?

SLEEPONEXIT, bit 1 of `SCB_SCR`. When it is set, the core goes back to sleep as soon as the handler returns, without returning to the code that called WFI, so main never sees the wake-up. Clear it when main does the work after each wake. In the same register, SLEEPDEEP (bit 2) chooses deep sleep, which on the STM32F4 is stop mode, or standby mode when PDDS is set in `PWR_CR`, each with its own wake-up rules.

Practice it: [Hibernation](https://ohmwork.io/challenge/78-hibernation)

### Why does a sleep loop mask interrupts between checking for work and executing WFI?

To close a race. If an interrupt arrives after main finds nothing to do but before WFI, the core sleeps with work waiting until the next interrupt. Mask with `__disable_irq()`, check the flag, run `__WFI()` only if there is no work, then `__enable_irq()`. WFI still wakes on an interrupt that is pending while PRIMASK masks it, and the handler runs as soon as interrupts are enabled again.
