Medium Embedded Systems Engineer questions
268 questions · 10 points each for a correct first answer.
- 1.Priority inversionrtos, concurrencymedium
- 2.Buffering UART datadata-structures, interruptsmedium
- 3.I2C device not respondingi2c, debuggingmedium
- 4.Counter shared with an ISRconcurrency, interruptsmedium
- 5.SPI returns garbagespi, debuggingmedium
- 6.One press, many eventsgpio, interruptsmedium
- 7.Size of a structembedded-c, memory-managementmedium
- 8.Passing data between tasksrtosmedium
- 9.Adding two uint8_t valuesembedded-c, integer-typesmedium
- 10.Comparing int with unsignedembedded-c, integer-typesmedium
- 11.Bit-fields for hardware registersembedded-c, registersmedium
- 12.sizeof on an array parameterembedded-c, pointersmedium
- 13.Measuring a signal frequencytimers, peripheralsmedium
- 14.Waking a task from an ISRfreertos, interruptsmedium
- 15.C++ features often disabledembedded-cpp, code-sizemedium
- 16.Lighter than a semaphorefreertos, rtosmedium
- 17.Choosing task stack sizesfreertos, memory-managementmedium
- 18.Describing hardware in Zephyrzephyr, rtosmedium
- 19.Ring buffer index with a maskdata-structures, embedded-cmedium
- 20.Slave holds SCL lowi2c, hardware-debuggingmedium
- 21.Reading from an SPI slavespi, communication-protocolsmedium
- 22.UART framing errorsuart, clocksmedium
- 23.Who wins CAN arbitrationcan-bus, communication-protocolsmedium
- 24.What filled the flashlinker, code-sizemedium
- 25.Dropping unused functionstoolchain, code-sizemedium
- 26.Initialised global reads garbagestartup-code, memory-layoutmedium
- 27.Stuck in Default_Handlerinterrupts, startup-codemedium
- 28.Unit testing driver logicunit-testing, firmware-architecturemedium
- 29.Unused pins and sleep currentlow-power-design, gpiomedium
- 30.Clock speed and powerlow-power-design, clocksmedium
- 31.Atomic GPIO writesgpio, concurrencymedium
- 32.Cortex-M interrupt priority numbersinterrupts, mcu-architecturemedium
- 33.Multiplying Q15 numbersfixed-point, embedded-cmedium
- 34.Feeding the watchdog with an RTOSwatchdog, reliabilitymedium
- 35.Declaring a function pointerembedded-c, function-pointersmedium
- 36.A command dispatch tableembedded-c, function-pointersmedium
- 37.Callbacks with a context pointerembedded-c, function-pointersmedium
- 38.Arithmetic on void pointersembedded-c, pointersmedium
- 39.Extracting a register fieldembedded-c, bit-manipulationmedium
- 40.Writing a register fieldembedded-c, bit-manipulationmedium
- 41.Returning a pointer through a parameterembedded-c, pointersmedium
- 42.const and volatile togetherembedded-c, registersmedium
- 43.A variable changes by itselfembedded-c, undefined-behaviourmedium
- 44.Changing a string literalembedded-c, undefined-behaviourmedium
- 45.strncpy and the missing terminatorembedded-c, stringsmedium
- 46.Shifting bytes inside a bufferembedded-c, undefined-behaviourmedium
- 47.Row-major layout of a 2D arrayembedded-c, pointersmedium
- 48.What offsetof givesembedded-c, memory-layoutmedium
- 49.A linked list without mallocembedded-c, memory-managementmedium
- 50.State machine with function pointersembedded-c, function-pointersmedium
- 51.Pointer size on an 8-bit AVRembedded-c, integer-typesmedium
- 52.A NULL check after useembedded-c, undefined-behaviourmedium
- 53.A struct over peripheral registersembedded-c, registersmedium
- 54.What *p++ doesembedded-c, pointersmedium
- 55.Calling an unset callbackembedded-c, function-pointersmedium
- 56.Building a value from bytesembedded-c, endiannessmedium
- 57.Heap and stack meetingembedded-c, memory-layoutmedium
- 58.Same global in two filesembedded-c, linkermedium
- 59.The MEMORY block of a linker scriptembedded-c, linkermedium
- 60.Putting a buffer in a special RAMembedded-c, linkermedium
- 61.The first two vector table wordsembedded-c, startup-codemedium
- 62.What runs before mainembedded-c, startup-codemedium
- 63.Weak handlers in startup filesembedded-c, linkermedium
- 64.Per-function stack figuresembedded-c, toolchainmedium
- 65.const tables still in RAM on AVRembedded-c, memory-layoutmedium
- 66.Is returning a literal safeembedded-c, storage-classesmedium
- 67.Fixed-size block poolembedded-c, memory-managementmedium
- 68.malloc fails with free memoryembedded-c, memory-managementmedium
- 69.A variable-length arrayembedded-c, memory-layoutmedium
- 70.A struct copy inside an ISRembedded-c, memory-layoutmedium
- 71.Small helpers in a headerembedded-c, storage-classesmedium
- 72.How startup finds .dataembedded-c, startup-codemedium
- 73.Where newlib gets heap memoryembedded-c, memory-managementmedium
- 74.Library order on the link lineembedded-c, linkermedium
- 75.What LTO addsembedded-c, code-sizemedium
- 76.Reading bytes of a value via a unionembedded-c, memory-layoutmedium
- 77.char on ARM and x86embedded-c, integer-typesmedium
- 78.Shifting a negative number rightembedded-c, integer-typesmedium
- 79.A timeout that survives wraparoundembedded-c, integer-typesmedium
- 80.Raw ADC count to millivoltsembedded-c, fixed-pointmedium
- 81.Rounding an integer divisionembedded-c, fixed-pointmedium
- 82.Remainder of a negative numberembedded-c, integer-typesmedium
- 83.i = i++ and similarembedded-c, undefined-behaviourmedium
- 84.Two reads in one callembedded-c, undefined-behaviourmedium
- 85.A volatile counter loses countsembedded-c, concurrencymedium
- 86.Reading a 64-bit tick on a 32-bit MCUembedded-c, concurrencymedium
- 87.A formatter used by main and an ISRembedded-c, concurrencymedium
- 88.A MAX macro with side effectsembedded-c, preprocessormedium
- 89.Why do { } while (0)embedded-c, preprocessormedium
- 90.A config flag set to 0embedded-c, preprocessormedium
- 91.Checking a struct size at build timeembedded-c, preprocessormedium
- 92.Widening a negative byteembedded-c, integer-typesmedium
- 93.Adding without wrappingembedded-c, integer-typesmedium
- 94.Only a few breakpoints allowedfirmware, debug-probesmedium
- 95.Is a CRC enough for an updatefirmware, secure-boot, bootloadermedium
- 96.App dies on first interruptfirmware, bootloader, interruptsmedium
- 97.Counter read gives odd valuesfirmware, interrupts, concurrencymedium
- 98.Lost GPIO pin changesfirmware, gpio, concurrencymedium
- 99.Sample rate for SPI capturefirmware, logic-analyser, hardware-debuggingmedium
- 100.Ringing seen on the scopefirmware, oscilloscope, hardware-debuggingmedium
- 101.Works only with the debuggerfirmware, debug-probesmedium
- 102.Variable shows "optimized out"firmware, debug-probes, build-toolsmedium
- 103.Lookup table eating RAMfirmware, linker-scripts, c-languagemedium
- 104.Logging without slowing the loopfirmware, debug-probes, tracingmedium
- 105.Debugger drops in low-power modefirmware, low-power, debug-probesmedium
- 106.Probe cannot attach any morefirmware, debug-probesmedium
- 107.Magic value lost across resetfirmware, bootloader, linker-scriptsmedium
- 108.Interrupts stop during erasefirmware, flash-memory, interruptsmedium
- 109.Where the app must startfirmware, bootloader, linker-scriptsmedium
- 110.Why did it resetfirmware, watchdog, field-debuggingmedium
- 111.Brownout and corrupt settingsfirmware, power, flash-memorymedium
- 112.Halted in Default_Handlerfirmware, interrupts, startup-codemedium
- 113.Board stuck at clock setupfirmware, clocks, hardware-debuggingmedium
- 114.Is HTTPS enough for OTAfirmware, secure-boot, ota-updatesmedium
- 115.Confirming a new imagefirmware, ota-updates, bootloadermedium
- 116.Overwrite versus swap updatesfirmware, ota-updates, bootloadermedium
- 117.What actually gets signedfirmware, secure-bootmedium
- 118.Verify once or every bootfirmware, secure-bootmedium
- 119.High-priority task starvesfirmware, rtos, concurrencymedium
- 120.Two tasks stop foreverfirmware, rtos, concurrencymedium
- 121.Blocking call in an ISRfirmware, rtos, interruptsmedium
- 122.Watchdog for many tasksfirmware, watchdog, rtosmedium
- 123.Reset from refreshing too soonfirmware, watchdogmedium
- 124.Cellular data for a fleet updatefirmware, ota-updatesmedium
- 125.Time to send an image over BLEfirmware, ota-updates, bluetoothmedium
- 126.Image built for another boardfirmware, bootloader, ota-updatesmedium
- 127.RTOS tick in a sleepy devicefirmware, rtos, low-powermedium
- 128.Measuring sleep and burst currentfirmware, low-power, hardware-debuggingmedium
- 129.Debugging crashes in the fieldfirmware, fault-analysis, field-debuggingmedium
- 130.What asserts do in releasefirmware, fault-analysis, field-debuggingmedium
- 131.malloc fails after daysfirmware, memory-managementmedium
- 132.Bug disappears when you lookfirmware, concurrency, hardware-debuggingmedium
- 133.Two tasks share strtokfirmware, rtos, c-languagemedium
- 134.Probe stops the oscillatorfirmware, clocks, oscilloscopemedium
- 135.What diagnostic coverage isfirmware, functional-safetymedium
- 136.Testing RAM at start-upfirmware, functional-safety, self-testmedium
- 137.Guarding a critical variablefirmware, functional-safetymedium
- 138.Two sensors disagreefirmware, functional-safetymedium
- 139.malloc in safety codefirmware, misra-c, functional-safetymedium
- 140.What static analysis addsfirmware, functional-safety, misra-cmedium
- 141.Resets when the radio sendsfirmware, power, hardware-debuggingmedium
- 142.SPI data off by one bitfirmware, spi, hardware-debuggingmedium
- 143.Finding which part is shortedfirmware, hardware-debuggingmedium
- 144.Fault that comes and goesfirmware, hardware-debuggingmedium
- 145.Inputs for an ASIL ratingfirmware, functional-safetymedium
- 146.Independent watchdog for safetyfirmware, watchdog, functional-safetymedium
- 147.Proving an output switchedfirmware, functional-safetymedium
- 148.Battery voltage from an ADC countfirmware, adcmedium
- 149.What flash ECC can fixfirmware, flash-memory, functional-safetymedium
- 150.What SPI mode 3 meansmicrocontrollers, spimedium
- 151.Datasheet gives address 0xD0microcontrollers, i2cmedium
- 152.NACK at the end of an I2C readmicrocontrollers, i2cmedium
- 153.Baud error with an integer dividermicrocontrollers, uart, clocksmedium
- 154.Reading a quadrature encodermicrocontrollers, timersmedium
- 155.Center-aligned PWM periodmicrocontrollers, timers, pwmmedium
- 156.Dead time in a half bridgemicrocontrollers, timers, pwmmedium
- 157.Continuous ADC capture with DMAmicrocontrollers, dma, adcmedium
- 158.DMA increment settings for UART TXmicrocontrollers, dma, uartmedium
- 159.ADC reads low from a 100 kΩ dividermicrocontrollers, adcmedium
- 160.Extra resolution by oversamplingmicrocontrollers, adcmedium
- 161.Refreshing a window watchdog too earlymicrocontrollers, watchdogmedium
- 162.Independent watchdog timeoutmicrocontrollers, watchdogmedium
- 163.Code runs slow after waking from stopmicrocontrollers, low-power, clocksmedium
- 164.Where code resumes after standbymicrocontrollers, low-powermedium
- 165.WFI compared with WFEmicrocontrollers, low-power, cortex-mmedium
- 166.Sleep-on-exit for an event-driven appmicrocontrollers, low-power, interruptsmedium
- 167.Why RTC crystals are 32.768 kHzmicrocontrollers, rtc, clocksmedium
- 168.Time quanta in a CAN bitmicrocontrollers, canmedium
- 169.CAN FD payload sizemicrocontrollers, canmedium
- 170.A CAN node alone on the busmicrocontrollers, canmedium
- 171.Which IDs a CAN filter acceptsmicrocontrollers, canmedium
- 172.Estimating CAN bus loadmicrocontrollers, canmedium
- 173.CAN bit stuffingmicrocontrollers, canmedium
- 174.Second SPI slave breaks the firstmicrocontrollers, spimedium
- 175.What RTS/CTS flow control doesmicrocontrollers, uartmedium
- 176.Receiving variable-length UART messagesmicrocontrollers, uart, dmamedium
- 177.UART overrun errormicrocontrollers, uartmedium
- 178.RS-485 reply loses its last bytemicrocontrollers, uart, rs-485medium
- 179.GPIO speed setting for a slow LEDmicrocontrollers, gpiomedium
- 180.Interrupts on PA0 and PB0microcontrollers, interrupts, gpiomedium
- 181.Preemption priority versus subprioritymicrocontrollers, nvic, interruptsmedium
- 182.Tail-chaining on Cortex-Mmicrocontrollers, interrupts, cortex-mmedium
- 183.Registers saved on interrupt entrymicrocontrollers, cortex-m, interruptsmedium
- 184.Nested disable and enable of interruptsmicrocontrollers, interrupts, critical-sectionsmedium
- 185.Masking only some interruptsmicrocontrollers, interrupts, nvicmedium
- 186.Work done before mainmicrocontrollers, memory, startupmedium
- 187.Raising clock speed and flash latencymicrocontrollers, clocks, flashmedium
- 188.Writing over existing flash datamicrocontrollers, flashmedium
- 189.Saving a counter to flash every minutemicrocontrollers, flashmedium
- 190.Exact ADC sample ratemicrocontrollers, adc, timersmedium
- 191.SysTick reload for a 1 ms tickmicrocontrollers, timers, cortex-mmedium
- 192.Battery voltage from an ADC codemicrocontrollers, adcmedium
- 193.Current through a held buttonmicrocontrollers, gpio, low-powermedium
- 194.Distance from an ultrasonic echomicrocontrollers, timersmedium
- 195.Centring a hobby servomicrocontrollers, timers, pwmmedium
- 196.Sleep current high only under debugmicrocontrollers, low-power, debuggingmedium
- 197.Board hangs without the debuggermicrocontrollers, debuggingmedium
- 198.HAL_Delay inside an interruptmicrocontrollers, interrupts, timersmedium
- 199.Why did the field unit rebootmicrocontrollers, reset, debuggingmedium
- 200.Loop rate with vTaskDelayrtos, freertos, timingmedium
- 201.How long vTaskDelay(1) waitsrtos, freertos, timingmedium
- 202.When a 32-bit tick count wrapsrtos, freertos, timingmedium
- 203.Timeout check that survives wraprtos, freertos, timingmedium
- 204.Why portYIELD_FROM_ISR is neededrtos, freertos, interruptsmedium
- 205.Lost interrupts with a binary semaphorertos, freertos, synchronisationmedium
- 206.First take of a new binary semaphorertos, freertos, synchronisationmedium
- 207.Releasing another task mutexrtos, freertos, synchronisationmedium
- 208.Mutex held during a long waitrtos, synchronisationmedium
- 209.Limits of priority inheritancertos, synchronisation, schedulingmedium
- 210.How many bits an event group holdsrtos, freertos, synchronisationmedium
- 211.Three tasks meeting at a pointrtos, freertos, synchronisationmedium
- 212.Event bit stays set and loopsrtos, freertos, synchronisationmedium
- 213.Setting event bits from an ISRrtos, freertos, interruptsmedium
- 214.Blocking inside a timer callbackrtos, freertos, timersmedium
- 215.xTimerStart returns pdFAILrtos, freertos, timersmedium
- 216.A 2.5 ms software timerrtos, freertos, timersmedium
- 217.Queueing pointers to large buffersrtos, freertos, queuesmedium
- 218.Waiting on two queues and a semaphorertos, freertos, queuesmedium
- 219.Overhead in a message bufferrtos, freertos, queuesmedium
- 220.Stream buffer trigger levelrtos, freertos, queuesmedium
- 221.ulTaskNotifyTake as a counterrtos, freertos, synchronisationmedium
- 222.When task notifications do not fitrtos, freertos, synchronisationmedium
- 223.Gatekeeper task for a shared UARTrtos, freertos, design-patternsmedium
- 224.Deleted tasks leak memoryrtos, freertos, memorymedium
- 225.Idle task and priority 0 tasksrtos, freertos, schedulingmedium
- 226.Waking a task out of a long delayrtos, freertos, tasksmedium
- 227.Measuring CPU use per taskrtos, freertos, debuggingmedium
- 228.CPU load from run-time statsrtos, debugging, schedulingmedium
- 229.Seeing task switches over timertos, debuggingmedium
- 230.Allocation fails with free memory leftrtos, freertos, memorymedium
- 231.Heap across two RAM banksrtos, freertos, memorymedium
- 232.Calling malloc from several tasksrtos, freertos, memorymedium
- 233.Task crashes after adding printfrtos, freertos, memorymedium
- 234.errno shared between tasksrtos, freertosmedium
- 235.Context of a Zephyr k_timer expiry functionrtos, zephyr, timersmedium
- 236.Running a job 500 ms later in Zephyrrtos, zephyr, timersmedium
- 237.One work item slows all othersrtos, zephyr, schedulingmedium
- 238.Waiting on several Zephyr objectsrtos, zephyr, synchronisationmedium
- 239.Data put in a Zephyr FIFO gets corruptedrtos, zephyr, queuesmedium
- 240.A Zephyr thread with priority -1rtos, zephyr, schedulingmedium
- 241.k_sched_lock compared with irq_lockrtos, zephyr, critical-sectionsmedium
- 242.Setting a flag from ISR and thread in Zephyrrtos, zephyr, synchronisationmedium
- 243.Checking a Zephyr device before usertos, zephyr, driversmedium
- 244.Moving a sensor to another I2C busrtos, zephyr, devicetreemedium
- 245.Logging inside a fast ISR in Zephyrrtos, zephyr, debuggingmedium
- 246.Running init code before main in Zephyrrtos, zephyrmedium
- 247.Finding Zephyr Kconfig optionsrtos, zephyr, kconfigmedium
- 248.Running Zephyr tests across boardsrtos, zephyr, testingmedium
- 249.Adding a bootloader for firmware updatesrtos, zephyr, bootloadermedium
- 250.Protecting data on a dual-core Zephyr SoCrtos, zephyr, smpmedium
- 251.Pinning a task to one corertos, freertos, smpmedium
- 252.Priority assumptions on two coresrtos, freertos, smpmedium
- 253.Wi-Fi jitter on an ESP32 control taskrtos, freertos, smpmedium
- 254.Isolating an untrusted taskrtos, freertos, memorymedium
- 255.Limiting a Zephyr thread to its own memoryrtos, zephyr, memorymedium
- 256.An interrupt the kernel never masksrtos, freertos, interruptsmedium
- 257.Lock-free ring buffer from ISR to taskrtos, interrupts, design-patternsmedium
- 258.Avoiding malloc after start-uprtos, memory, real-time-conceptsmedium
- 259.Long critical section and interrupt latencyrtos, freertos, interruptsmedium
- 260.Measuring task switch timertos, debugging, timingmedium
- 261.Raising the tick rate to 10 kHzrtos, freertos, timingmedium
- 262.Priority of an interrupt handler taskrtos, scheduling, interruptsmedium
- 263.Using timeouts on every blockrtos, design-patterns, synchronisationmedium
- 264.Embedded Linux or an RTOSrtos, real-time-conceptsmedium
- 265.Utilisation limit under EDFrtos, scheduling, real-time-conceptsmedium
- 266.Total CPU utilisation of a task setrtos, schedulingmedium
- 267.Testing FreeRTOS code on a PCrtos, freertos, testingmedium
- 268.Spotting a stuck taskrtos, freertos, debuggingmedium