Hard Embedded Systems Engineer questions
207 questions · 20 points each for a correct first answer.
- 1.Random HardFaultsdebugging, arm-cortex-mhard
- 2.Corruption in one taskrtos, memory-managementhard
- 3.DMA data looks staledma, memory-managementhard
- 4.Battery dies too fastlow-power, hardware-debugginghard
- 5.Bricked devices after an updatebootloader, reliability, securityhard
- 6.Reading a 32-bit fieldembedded-c, communication-protocolshard
- 7.Missed motor control interruptsinterrupts, real-timehard
- 8.Works at -O0, fails at -O2embedded-c, debugginghard
- 9.An overflow check that vanishesembedded-c, undefined-behaviourhard
- 10.Reading a float from a packetembedded-c, undefined-behaviourhard
- 11.Packed struct crashes a Cortex-M0memory-layout, mcu-architecturehard
- 12.ISR runs twice per eventinterrupts, mcu-architecturehard
- 13.A lock-free ISR ring bufferconcurrency, data-structureshard
- 14.Rate monotonic utilisation testreal-time-scheduling, rtoshard
- 15.Taking a mutex in an ISRrtos, interruptshard
- 16.Garbled log text from two tasksconcurrency, rtoshard
- 17.A CAN node goes silentcan-bus, reliabilityhard
- 18.I2C bus stuck after reseti2c, hardware-debugginghard
- 19.A phantom 100 Hz signaladc, signal-processinghard
- 20.Slow maths on a Cortex-M4Fembedded-c, performancehard
- 21.Jitter in a control loop ISRperformance, interruptshard
- 22.Proving the stack is big enoughmemory-management, functional-safetyhard
- 23.Downgrading to signed old firmwaresecure-boot, embedded-securityhard
- 24.Firmware read over SWDembedded-security, manufacturinghard
- 25.Comparing a message authentication codeembedded-security, cryptographyhard
- 26.FromISR call from a high priority ISRfreertos, interruptshard
- 27.Flash wearing out in a weekflash-memory, reliabilityhard
- 28.Settings lost on power cutflash-memory, reliabilityhard
- 29.Sleep current 60 times too highlow-power-design, hardware-debugginghard
- 30.The tick keeps waking the CPUfreertos, low-power-designhard
- 31.Timestamp jumps backwardstimers, concurrencyhard
- 32.Inverting a uint8_tembedded-c, bitwise-operationshard
- 33.Reading NULL does not crashembedded-c, undefined-behaviourhard
- 34.Lost GPIO updates from an ISRembedded-c, concurrencyhard
- 35.What restrict promisesembedded-c, pointershard
- 36.Reading a float as uint32_tembedded-c, undefined-behaviourhard
- 37.An array exactly the string lengthembedded-c, stringshard
- 38.Detecting snprintf truncationembedded-c, stringshard
- 39.A flexible array memberembedded-c, memory-layouthard
- 40.Recovering the parent structembedded-c, pointershard
- 41.Ordering pointers from different arraysembedded-c, undefined-behaviourhard
- 42.Writing to a const tableembedded-c, undefined-behaviourhard
- 43.Aligning a DMA bufferembedded-c, memory-layouthard
- 44.Reading a string from AVR flashembedded-c, memory-layouthard
- 45.Pointer to an array of eightembedded-c, pointershard
- 46.Storing a pointer in an integerembedded-c, integer-typeshard
- 47.sizeof a member through a null pointerembedded-c, pointershard
- 48.Reading arm-none-eabi-sizeembedded-c, code-sizehard
- 49.Keeping a value across a resetembedded-c, startup-codehard
- 50.App interrupts go to the bootloaderembedded-c, startup-codehard
- 51.One table, flash and RAMembedded-c, memory-layouthard
- 52.printf of a double prints garbageembedded-c, toolchainhard
- 53.Erasing flash from flashembedded-c, linkerhard
- 54.Initialising a global with a callembedded-c, storage-classeshard
- 55.Catching stack overflow at onceembedded-c, memory-layouthard
- 56.Two stack pointers on Cortex-Membedded-c, memory-layouthard
- 57.Vector table vanished from the imageembedded-c, linkerhard
- 58.Bit-band alias addressesembedded-c, registershard
- 59.DMA reads zeros from a bufferembedded-c, memory-layouthard
- 60.A string table that uses RAMembedded-c, memory-layouthard
- 61.Load address and run addressembedded-c, linkerhard
- 62.An odd function addressembedded-c, linkerhard
- 63.Multiplying two uint16_t valuesembedded-c, integer-typeshard
- 64.Building a bit 31 maskembedded-c, undefined-behaviourhard
- 65.Shifting by 32embedded-c, undefined-behaviourhard
- 66.One million on an 8-bit MCUembedded-c, integer-typeshard
- 67.ADC maths gives wrong millivoltsembedded-c, fixed-pointhard
- 68.Atomics on a Cortex-M0embedded-c, concurrencyhard
- 69.Flag cleared as the last ISR lineembedded-c, concurrencyhard
- 70.Enum size differs between buildsembedded-c, memory-layouthard
- 71.A ready flag that is always falseembedded-c, bit-manipulationhard
- 72.abs of the most negative intembedded-c, undefined-behaviourhard
- 73.Converting 300.0 to a byteembedded-c, undefined-behaviourhard
- 74.Dividing by zero on Cortex-M3embedded-c, undefined-behaviourhard
- 75.Baud rate error from roundingfirmware, uart, clockshard
- 76.Finding the faulting instructionfirmware, fault-analysishard
- 77.Which stack holds the framefirmware, fault-analysis, rtoshard
- 78.Reading a precise bus faultfirmware, fault-analysishard
- 79.Fault PC points to the wrong linefirmware, fault-analysishard
- 80.Crystal stops in the fieldfirmware, clocks, fault-handlinghard
- 81.Aligning a relocated vector tablefirmware, interrupts, linker-scriptshard
- 82.Receiving frames of unknown lengthfirmware, uart, dmahard
- 83.FromISR call trips an assertfirmware, rtos, interruptshard
- 84.Cast pointer faults on M0firmware, c-language, fault-analysishard
- 85.Size of a header structfirmware, c-language, bootloaderhard
- 86.Designing an image headerfirmware, bootloaderhard
- 87.C++ globals never constructedfirmware, startup-code, c-languagehard
- 88.Who is overwriting this variablefirmware, debug-probes, memory-corruptionhard
- 89.DMA data looks stale on M7firmware, dma, cachehard
- 90.One AES key for every devicefirmware, secure-boot, key-managementhard
- 91.Battery life from duty cyclefirmware, low-power, powerhard
- 92.Power cut in the middle of a swapfirmware, ota-updates, bootloaderhard
- 93.A signing key has leakedfirmware, secure-boot, key-managementhard
- 94.Where the signing key livesfirmware, secure-boot, key-managementhard
- 95.Verified but swapped afterwardsfirmware, secure-boothard
- 96.Glitching past the checkfirmware, secure-boot, hardware-securityhard
- 97.Is this task set schedulablefirmware, rtos, schedulinghard
- 98.Critical section loses bytesfirmware, uart, interruptshard
- 99.Barriers after core configfirmware, mpuhard
- 100.Rollback after a settings changefirmware, ota-updates, data-storagehard
- 101.One cloud password for all unitsfirmware, key-management, hardware-securityhard
- 102.Update resets halfway throughfirmware, watchdog, flash-memoryhard
- 103.Crash only when printing floatsfirmware, rtos, memory-managementhard
- 104.Updating with dual-bank flashfirmware, ota-updates, flash-memoryhard
- 105.Reacting within the FTTIfirmware, functional-safetyhard
- 106.What MC/DC coverage provesfirmware, functional-safety, testinghard
- 107.Safety code beside non-safety codefirmware, functional-safety, mpuhard
- 108.Largest pull-up for 400 kHz I2Cfirmware, i2c, hardware-debugginghard
- 109.Probing a high-side gate safelyfirmware, oscilloscope, hardware-debugginghard
- 110.Emission peaks every 25 MHzfirmware, emc-esdhard
- 111.Display freezes after an ESD zapfirmware, emc-esdhard
- 112.Failure rate for SIL 3firmware, functional-safetyhard
- 113.Why use lockstep coresfirmware, functional-safetyhard
- 114.Redundancy that is not redundantfirmware, functional-safetyhard
- 115.State machine with no defaultfirmware, functional-safety, misra-chard
- 116.ADC reads low through a dividerfirmware, adc, hardware-debugginghard
- 117.Elapsed ticks across a timer wrapmicrocontrollers, timershard
- 118.Clearing an EXTI flag with |=microcontrollers, interrupts, bit-manipulationhard
- 119.Bit-band alias of an SRAM bitmicrocontrollers, cortex-m, bit-manipulationhard
- 120.Jumping from bootloader to appmicrocontrollers, bootloader, cortex-mhard
- 121.PWM glitch when changing the periodmicrocontrollers, timers, pwmhard
- 122.Battery life of a duty-cycled nodemicrocontrollers, low-powerhard
- 123.Longest SysTick period at 168 MHzmicrocontrollers, timers, cortex-mhard
- 124.Porting BASEPRI code to Cortex-M0microcontrollers, cortex-m, interruptshard
- 125.Timing an ISR in CPU cyclesmicrocontrollers, debugging, cortex-mhard
- 126.Finding the line that faultedmicrocontrollers, debugging, cortex-mhard
- 127.Imprecise bus fault addressmicrocontrollers, debugging, cortex-mhard
- 128.SPI chip select released too earlymicrocontrollers, spi, dmahard
- 129.Write position in a circular UART DMA buffermicrocontrollers, uart, dmahard
- 130.Time to read 6 bytes over I2Cmicrocontrollers, i2chard
- 131.Time to send 4 KB over SPImicrocontrollers, spihard
- 132.Two CAN nodes using the same IDmicrocontrollers, canhard
- 133.Stack frame with FPU contextmicrocontrollers, cortex-m, interruptshard
- 134.Catching stack overflow with the MPUmicrocontrollers, memory, debugginghard
- 135.Watchdog resets a sleeping devicemicrocontrollers, watchdog, low-powerhard
- 136.Phantom interrupts from a long cablemicrocontrollers, gpio, interruptshard
- 137.Calling printf from an ISRmicrocontrollers, interruptshard
- 138.ADC noise synced to PWMmicrocontrollers, adc, pwmhard
- 139.External crystal fails in the fieldmicrocontrollers, clockshard
- 140.USB fails on the internal oscillatormicrocontrollers, clockshard
- 141.Setting STM32 read protection level 2microcontrollers, flashhard
- 142.Negative swing on an ADC pinmicrocontrollers, adchard
- 143.One ADC channel affects anothermicrocontrollers, adc, gpiohard
- 144.Errors on a long 500 kbit/s CAN busmicrocontrollers, canhard
- 145.RTC loses 2 minutes a monthmicrocontrollers, rtc, clockshard
- 146.DMA buffer declared as a localmicrocontrollers, dma, uarthard
- 147.ADC DMA data size mismatchmicrocontrollers, dma, adchard
- 148.Receiving UART data while in stop modemicrocontrollers, low-power, uarthard
- 149.Missed wake-up just before sleepmicrocontrollers, low-power, interruptshard
- 150.Timeouts fail in HAL callbacksmicrocontrollers, interrupts, i2chard
- 151.Devices fail to boot on weak batteriesmicrocontrollers, reset, low-powerhard
- 152.Reading stale data after a flash writemicrocontrollers, flash, cortex-mhard
- 153.Pump turns on briefly at power-upmicrocontrollers, gpio, resethard
- 154.A precise 10 µs trigger pulsemicrocontrollers, timershard
- 155.Worst-case response time of the lowest taskrtos, scheduling, real-time-conceptshard
- 156.Above the RM bound but still schedulablertos, scheduling, real-time-conceptshard
- 157.Adding mutex blocking to response timertos, scheduling, synchronisationhard
- 158.Task reads garbage from a main localrtos, freertos, memoryhard
- 159.Parameter from a function that returnsrtos, freertos, taskshard
- 160.Why FreeRTOS uses PendSV for switchingrtos, freertos, cortex-mhard
- 161.Two stack pointers in an RTOS on Cortex-Mrtos, freertos, cortex-mhard
- 162.Inheritance through two mutexesrtos, synchronisation, schedulinghard
- 163.The Mars Pathfinder resetsrtos, synchronisation, real-time-conceptshard
- 164.Critical sections on FreeRTOS SMPrtos, freertos, smphard
- 165.Blocking while the scheduler is suspendedrtos, freertos, critical-sectionshard
- 166.Interrupt fires before the scheduler startsrtos, freertos, interruptshard
- 167.xQueueSend inside a timer ISRrtos, freertos, interruptshard
- 168.Critical section inside an ISRrtos, freertos, critical-sectionshard
- 169.What stack overflow checking catchesrtos, freertos, debugginghard
- 170.Inversion with a semaphore used as a lockrtos, freertos, synchronisationhard
- 171.Software timers fire late under loadrtos, freertos, timershard
- 172.Detecting a missed periodrtos, freertos, timinghard
- 173.Burst of runs after a long stallrtos, freertos, timinghard
- 174.Allowed NVIC priorities for FreeRTOS callsrtos, freertos, interruptshard
- 175.Recovering from a lock order bugrtos, synchronisation, design-patternshard
- 176.Seeing queue contents in a debuggerrtos, freertos, debugginghard
- 177.Race between equal-priority tasksrtos, synchronisation, schedulinghard
- 178.Sizing a queue for a burstrtos, freertos, queueshard
- 179.Float use in tasks on Cortex-M4Frtos, freertos, cortex-mhard
- 180.Driver and app share a notificationrtos, freertos, synchronisationhard
- 181.Tick count after a tickless sleeprtos, freertos, low-powerhard
- 182.Periodic Zephyr thread from a k_timerrtos, zephyr, timinghard
- 183.Lowest-latency interrupts in Zephyrrtos, zephyr, interruptshard
- 184.Limit on Zephyr mutex priority boostrtos, zephyr, synchronisationhard
- 185.Using a Zephyr condition variablertos, zephyr, synchronisationhard
- 186.Waking many Zephyr threads at oncertos, zephyr, synchronisationhard
- 187.Crash after adding a large local in mainrtos, zephyr, memoryhard
- 188.Catching thread stack overflow in Zephyrrtos, zephyr, debugginghard
- 189.Time slicing in Zephyrrtos, zephyr, schedulinghard
- 190.Allocating memory from a Zephyr ISRrtos, zephyr, memoryhard
- 191.Powering down an idle Zephyr peripheralrtos, zephyr, low-powerhard
- 192.Storing config values across reboots in Zephyrrtos, zephyr, flashhard
- 193.Aborting a thread that holds a mutexrtos, zephyr, synchronisationhard
- 194.Network throughput collapsesrtos, freertos, schedulinghard
- 195.Setting configMAX_PRIORITIES to 64rtos, freertos, schedulinghard
- 196.Running a function in the daemon from an ISRrtos, freertos, interruptshard
- 197.Two ISRs and a task share a bufferrtos, freertos, critical-sectionshard
- 198.What breaks first in overloadrtos, scheduling, real-time-conceptshard
- 199.Harmonic task periodsrtos, scheduling, real-time-conceptshard
- 200.Jitter of tick-driven periodic tasksrtos, timing, schedulinghard
- 201.Timer callback waits on a mutexrtos, freertos, timershard
- 202.Deadline shorter than periodrtos, scheduling, real-time-conceptshard
- 203.Calling pvPortMalloc in an ISRrtos, freertos, memoryhard
- 204.Debugger shows only one call stackrtos, debugginghard
- 205.RTOS for an IEC 61508 productrtos, real-time-conceptshard
- 206.Cooperative Zephyr thread hogs the CPUrtos, zephyr, schedulinghard
- 207.Active object design in an RTOSrtos, design-patternshard