# Anduril Firmware Engineer Interview Questions

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

Not affiliated with or endorsed by Anduril. Anduril 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/anduril-firmware-engineer-interview-questions

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

## From public job postings

- C firmware on microcontrollers: 21 of 21
- SPI, I2C, UART and CAN buses and drivers: 21 of 21
- Board bring-up and bench debugging: 21 of 21
- Firmware on an RTOS or bare metal: 20 of 21
- Testing, hardware in the loop and fault handling: 14 of 21
- Motor and flight control loops: 10 of 21
- Interrupt priorities, timers and DMA: 3 of 21
- Safety critical firmware: 8 of 21, not practiced here
- Code generated from Simulink models: 3 of 21, not practiced here
- Secure boot and field updates: 1 of 21, not practiced here

### Sources (21)

1. [Firmware Engineer](https://job-boards.greenhouse.io/andurilindustries/jobs/5224713007), Costa Mesa, CA, checked November 28, 2026
2. [Embedded Firmware Engineer, Connected Warfare](https://job-boards.greenhouse.io/andurilindustries/jobs/5225618007), Costa Mesa, CA, checked November 28, 2026
3. [Firmware Engineer, Connected Warfare](https://job-boards.greenhouse.io/andurilindustries/jobs/5180703007), Costa Mesa, CA, checked November 28, 2026
4. [Senior Firmware Engineer, Connected Warfare](https://job-boards.greenhouse.io/andurilindustries/jobs/5225623007), Costa Mesa, CA, checked November 28, 2026
5. [Firmware Engineer, Embedded Systems](https://job-boards.greenhouse.io/andurilindustries/jobs/5118039007), Costa Mesa, CA, checked November 28, 2026
6. [Senior Firmware Engineer, Embedded Systems](https://job-boards.greenhouse.io/andurilindustries/jobs/5118040007), Costa Mesa, CA, checked November 28, 2026
7. [Senior Firmware Engineer (Bare-Metal)](https://job-boards.greenhouse.io/andurilindustries/jobs/5098037007), Costa Mesa, CA, checked November 28, 2026
8. [Senior Firmware Engineer, ESAD](https://job-boards.greenhouse.io/andurilindustries/jobs/5199526007), Costa Mesa, CA, checked November 28, 2026
9. [Firmware Engineer, Space Embedded Systems](https://job-boards.greenhouse.io/andurilindustries/jobs/5191467007), Costa Mesa, CA, checked November 28, 2026
10. [Senior Firmware Engineer, Space Embedded Systems](https://job-boards.greenhouse.io/andurilindustries/jobs/5186084007), Costa Mesa, CA, checked November 28, 2026
11. [Senior Firmware Engineer, Motor Controls](https://job-boards.greenhouse.io/andurilindustries/jobs/5062391007), Costa Mesa, CA, checked November 28, 2026
12. [Senior Firmware Engineer (MATLAB/Simulink)](https://job-boards.greenhouse.io/andurilindustries/jobs/5148518007), Costa Mesa, CA, checked November 28, 2026
13. [Senior Robotic Firmware Engineer, Sentry Tower](https://job-boards.greenhouse.io/andurilindustries/jobs/5246592007), Irvine, CA, checked November 28, 2026
14. [Flight Software Engineer, Embedded C/C++, Air Dominance and Strike](https://job-boards.greenhouse.io/andurilindustries/jobs/4164476007), Costa Mesa, CA, checked November 28, 2026
15. [Senior Flight Software Engineer, Embedded C/C++, Air Dominance and Strike](https://job-boards.greenhouse.io/andurilindustries/jobs/4646426007), Costa Mesa, CA, checked November 28, 2026
16. [Staff Flight Software Engineer, Embedded C/C++, Air Dominance and Strike](https://job-boards.greenhouse.io/andurilindustries/jobs/5252059007), Costa Mesa, CA, checked November 28, 2026
17. [Flight Software Engineer, Embedded C/C++, Air Dominance and Strike, Missiles](https://job-boards.greenhouse.io/andurilindustries/jobs/5035788007), Costa Mesa, CA, checked November 28, 2026
18. [Senior Flight Software Engineer, Embedded C/C++, Air Dominance and Strike, Missiles](https://job-boards.greenhouse.io/andurilindustries/jobs/5035820007), Costa Mesa, CA, checked November 28, 2026
19. [Staff Flight Software Engineer, Embedded C/C++, Air Dominance and Strike, Missiles](https://job-boards.greenhouse.io/andurilindustries/jobs/5252062007), Costa Mesa, CA, checked November 28, 2026
20. [Senior Controls Engineer](https://job-boards.greenhouse.io/andurilindustries/jobs/5262868007), Costa Mesa, CA, checked November 28, 2026
21. [Staff Controls Engineer](https://job-boards.greenhouse.io/andurilindustries/jobs/5262876007), Costa Mesa, CA, checked November 28, 2026

## Embedded C and register access

21 of 21 jobs

### A timer handler clears its update flag with a read, modify, write of TIM2_SR, and now and then the timer's capture flag is lost. Why, and which write is safe?

TIM2_SR's flags clear when software writes 0 to them, and a write of 1 changes nothing. A read, modify, write such as `TIM2_SR &= ~1u;` reads every flag, clears bit 0 and writes the rest back as they were read. A flag the timer sets between that read and that write was read as 0, so the write clears it before any code has seen it. Write the register in one step instead: `TIM2_SR = ~1u;` writes 0 to UIF alone and 1 to every other flag, which leaves them as they are. Registers whose flags clear on a write of 1 have the mirror trap: `EXTI_PR |= 1u;` writes back a 1 for every line pending at that moment and clears them all, where `EXTI_PR = 1u;` clears line 0 only.

Practice it: [Conductor](https://ohmwork.io/challenge/46-conductor) PRO

### The LED on PA5 must follow the switch on PB0. What must the code get right about the two ports?

Each port is a peripheral of its own, with its own base address, GPIOA at 0x40020000 and GPIOB at 0x40020400, and its own copy of every register. Bit numbers start again at 0 on each port, so the switch is bit 0 of GPIOB_IDR and the LED is bit 5 of port A: shift the level read into place before writing it. Read the switch from IDR, which holds the pin's level, not from ODR, which holds what the port drives. Make PA5 an output in GPIOA_MODER, leave PB0 an input, its reset state, and drive PA5 through GPIOA_BSRR so no other pin on port A changes. On a real board, enable both ports' clocks in RCC_AHB1ENR, bits 0 and 1, before touching their registers.

Practice it: [Switchboard](https://ohmwork.io/challenge/56-gpio-multi-pin)

## Drivers and buses

21 of 21 jobs

### On a half duplex RS-485 link, the last byte of every reply arrives broken. What is the firmware doing wrong?

It turns the transceiver's driver off too soon. TXE in USART_SR sets when the data register is empty, which happens as soon as the last byte moves into the shift register, while that byte's bits are still going out, so dropping the driver enable then cuts the byte short. Wait for TC, transmission complete, which sets once the stop bit has gone out, then drop the enable and turn the line round to receive. The STM32F4 USART has no driver enable output of its own, so firmware drives that pin, and a reply sent by DMA must also wait for TC, since the DMA stream's transfer complete fires when the last byte reaches the data register.

### What sets a CAN node's bit timing, and why must every node on the bus agree?

A bit is a whole number of time quanta from the CAN clock's prescaler, split into a sync segment and the segments before and after the sample point; on the STM32F4 these are BRP, TS1 and TS2 in CAN_BTR. Every node must use the same bit rate, with sample points close together. A node whose bit rate differs samples bits in the wrong place, so it sees stuff, form and CRC errors and sends error frames that destroy the other nodes' frames too; sample points far apart eat into the margin left for clock tolerance and the delay along the bus. Its error counters climb: it goes error passive, and if it keeps transmitting, bus off.

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

## Bring-up and debugging

21 of 21 jobs

### After the code moves the STM32F4 from its internal oscillator to the PLL on an external crystal, some boards hang and others run. Where do you look?

At each step the switch depends on. The crystal must start: wait for HSERDY in RCC_CR with a time limit, and fall back to the internal oscillator if it never sets, since a crystal or load capacitors at the edge of their spec start on some boards only. Flash wait states must go up before the clock does: at 168 MHz and 3.3 V an STM32F407 needs 5 in FLASH_ACR, and too few may fail on some parts only. The PLL's input, the crystal divided by PLLM, must be 1 to 2 MHz and its output at most 168 MHz, and the prescalers must hold APB1 at or below 42 MHz and APB2 at or below 84 MHz before SYSCLK switches. Read SWS in RCC_CFGR to confirm the switch. This is why bring-up starts on the internal oscillator: it needs no outside part, so the board runs before any of this is proven.

### Firmware runs under the debugger but hangs after a cold power up. What is different?

Under the debugger the core usually starts after the rails and clocks have settled, the debugger may have set up clocks or memory already, and halting changes timing. On a cold start a part may not be ready when it is first used, the crystal may take longer to start, or the code may rely on RAM that an earlier run filled, since a reset from the debugger keeps SRAM's contents and a power cycle does not. Check the startup path: that initialized data is copied to RAM and the zeroed section cleared, and that the code waits on each ready flag instead of a fixed delay.

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

## RTOS or bare metal

20 of 21 jobs

### In a super loop, a report that takes 150 ms to print makes an urgent input wait. How do you fix it, with an RTOS and without one?

In a super loop an input handled from the loop waits for everything else the loop does, so its worst delay is one whole pass: the run times of every other job added together, here at least the 150 ms report. Without an RTOS, handle the urgent part in an interrupt, or break the report into short steps, one line per pass, so the loop comes back to the input often. With an RTOS, put the urgent job in a task of higher priority that blocks until the input arrives; the scheduler preempts the report as soon as that task is ready, so the input waits for a context switch, not for the report.

Practice it: [Right of Way](https://ohmwork.io/challenge/117-right-of-way)

### A FreeRTOS task's function does its one job and reaches its closing brace. What happens, and how should a task end?

A task function must never return. The Cortex-M ports set each task's return address to a trap that fails `configASSERT` if it is defined, then masks the kernel's interrupts, tick included, and loops for good, so no task runs again. A task meant to run for good is a loop that blocks on each pass, waiting for its next input or tick. A task with one job ends with `vTaskDelete(NULL)`. When a task deletes itself, the idle task frees the stack and control block that `xTaskCreate` allocated, so the idle task must get some time: a higher priority task that never blocks keeps that memory from coming back. A task made with `xTaskCreateStatic` uses memory its creator owns, which the kernel never frees.

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

## Testing and fault handling

14 of 21 jobs

### How do you test firmware that drives hardware when the hardware is not on your desk?

Keep the logic apart from the register access behind a thin driver layer, then test the logic on a computer with fake drivers that record what was written and play back inputs. Software in the loop runs the firmware against a model of the system it controls; hardware in the loop runs it on the real board with simulated sensors and loads, which catches timing and peripheral faults that host tests cannot. Between the two, the unchanged binary can run on an emulated microcontroller, which checks its register use and startup code without the board, as far as the emulator models each peripheral, and not the board's analog behaviour.

### A sensor starts giving out of range readings in the field. What should the firmware do?

Check each reading against the range the sensor's datasheet gives for a real reading and against how fast the value can really change, and discard what fails. Hold the raw value in a type that matches what the sensor sends: a 0 to 255 byte in a signed 8 bit variable turns negative from 0x80 up and slips under an upper bound. Keep the last good value only for a bounded time, then move to a defined safe state and report the fault, instead of acting on a bad number. Count faults, so that one glitch does not trip the safe state but a sensor that keeps failing does.

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

## Motor control and control loops

10 of 21 jobs

### What goes wrong when a PI controller keeps integrating while its output is at the limit?

Integrator windup. While the output is saturated the error stays large, so the integral grows far past what the steady state needs. When the error changes sign the output stays pinned at the limit until the integral unwinds, which shows as a large overshoot. The usual fix is to stop integrating while any limit, a clamp or a slew rate, holds the output back and the error pushes further into it; back calculation, which takes the clipped amount back out of the integral, is another. A fixed bound on the integral term alone is weaker: the integral still winds up to that bound.

Practice it: [Slingshot](https://ohmwork.io/challenge/90-windup) PRO

### A motor speed loop must hold its speed as the load changes. What does the loop need from the firmware?

A fixed period: read the speed, compute and update the PWM duty at the same rate every time, from a timer, because the gains were tuned for that period. A speed measurement good enough at that rate, from encoder or Hall sensor edges counted or timed by a timer. A correction by the measured error every period, with the output clamped to the duty range that is safe for the motor and the drive, which can be less than the full range the register takes. A proportional term alone leaves a steady error under a steady load; integral action removes it.

Practice it: [Cruise](https://ohmwork.io/challenge/124-cruise)

## Interrupts and timing

3 of 21 jobs

### TIM2's prescaler is set to 15 for a 1 MHz count from its 16 MHz clock, yet the counter keeps counting at 16 MHz. Why?

PSC is buffered: a write goes to a preload copy, and the prescaler takes the new value only at the next update event. TIM2 is 32 bit and its auto reload resets to 0xFFFFFFFF, so with nothing more done that event is over four minutes away at 16 MHz. Force it after writing PSC: set UG in TIM2_EGR, which loads the prescaler and restarts the count from 0. Unless URS in TIM2_CR1 is set, UG also sets UIF, so clear UIF before enabling the update interrupt or it fires at once. ARR is buffered the same way when ARPE is set.

Practice it: [Stopwatch](https://ohmwork.io/challenge/08-timer-check)

### Main must update data it shares with a 1 kHz telemetry interrupt, but the 20 kHz current loop interrupt must never be held off. How do you protect the update?

Mask by level, not everything. Turning every interrupt off with `__disable_irq()`, which sets PRIMASK, holds off the current loop too. BASEPRI masks only the interrupts whose priority number is at or above the value written, so give the current loop a more urgent level, a smaller number, than the telemetry interrupt, set BASEPRI to the telemetry level around the update, then restore its earlier value; 0 masks nothing. The STM32F4 keeps the top 4 bits of the priority byte, so level 5 is written as `__set_BASEPRI(5u << 4)`. FreeRTOS critical sections mask the same way, up to `configMAX_SYSCALL_INTERRUPT_PRIORITY`, so an interrupt more urgent than that keeps running inside them and must never call the kernel.

## Also recommended

## Watchdog and recovery

### Code sets the independent watchdog for a 1 second timeout, yet the board resets about every half second. What did it miss?

Its writes to the prescaler and the reload never took effect. IWDG_PR and IWDG_RLR accept a write only after 0x5555 is written to IWDG_KR, and a write to them without that key is dropped without an error, so the watchdog ran at its reset values: divide by 4 and a reload of 0xFFF, 4096 counts of 4 cycles each of a clock near 32 kHz, about 0.5 s. Write 0x5555 to KR, then PR and RLR, and start it with 0xCCCC, which also turns on its LSI clock; each feed writes 0xAAAA. PVU and RVU in IWDG_SR stay set while a new value is copied into the watchdog's own clock domain, which takes a few LSI cycles and needs the LSI running, so wait for them to clear after the watchdog has started, never before, and before writing PR or RLR again. The LSI clock differs from part to part, about 17 to 47 kHz on the STM32F4, so leave margin on both sides of the timeout.

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

### The watchdog has reset the board three times in a minute. What should the firmware do on the next boot?

Early in startup, read the reset flags in RCC_CSR, then clear them with RMVF. If the watchdog caused this reset, add one to a count kept where a reset does not clear it, such as an RTC backup register or a RAM variable the startup code leaves alone. Below a limit, log the cause and start normally; at the limit, start in a safe mode that leaves out what hung and reports the fault, instead of resetting forever. Set the count back to zero once the board has run healthily for a while, so resets spread over weeks never add up to the limit.
