Skip to content
RED SAG Skills

Medium Embedded Systems Engineer questions

268 questions · 10 points each for a correct first answer.

  1. 1.Priority inversionmedium
  2. 2.Buffering UART datamedium
  3. 3.I2C device not respondingmedium
  4. 4.Counter shared with an ISRmedium
  5. 5.SPI returns garbagemedium
  6. 6.One press, many eventsmedium
  7. 7.Size of a structmedium
  8. 8.Passing data between tasksmedium
  9. 9.Adding two uint8_t valuesmedium
  10. 10.Comparing int with unsignedmedium
  11. 11.Bit-fields for hardware registersmedium
  12. 12.sizeof on an array parametermedium
  13. 13.Measuring a signal frequencymedium
  14. 14.Waking a task from an ISRmedium
  15. 15.C++ features often disabledmedium
  16. 16.Lighter than a semaphoremedium
  17. 17.Choosing task stack sizesmedium
  18. 18.Describing hardware in Zephyrmedium
  19. 19.Ring buffer index with a maskmedium
  20. 20.Slave holds SCL lowmedium
  21. 21.Reading from an SPI slavemedium
  22. 22.UART framing errorsmedium
  23. 23.Who wins CAN arbitrationmedium
  24. 24.What filled the flashmedium
  25. 25.Dropping unused functionsmedium
  26. 26.Initialised global reads garbagemedium
  27. 27.Stuck in Default_Handlermedium
  28. 28.Unit testing driver logicmedium
  29. 29.Unused pins and sleep currentmedium
  30. 30.Clock speed and powermedium
  31. 31.Atomic GPIO writesmedium
  32. 32.Cortex-M interrupt priority numbersmedium
  33. 33.Multiplying Q15 numbersmedium
  34. 34.Feeding the watchdog with an RTOSmedium
  35. 35.Declaring a function pointermedium
  36. 36.A command dispatch tablemedium
  37. 37.Callbacks with a context pointermedium
  38. 38.Arithmetic on void pointersmedium
  39. 39.Extracting a register fieldmedium
  40. 40.Writing a register fieldmedium
  41. 41.Returning a pointer through a parametermedium
  42. 42.const and volatile togethermedium
  43. 43.A variable changes by itselfmedium
  44. 44.Changing a string literalmedium
  45. 45.strncpy and the missing terminatormedium
  46. 46.Shifting bytes inside a buffermedium
  47. 47.Row-major layout of a 2D arraymedium
  48. 48.What offsetof givesmedium
  49. 49.A linked list without mallocmedium
  50. 50.State machine with function pointersmedium
  51. 51.Pointer size on an 8-bit AVRmedium
  52. 52.A NULL check after usemedium
  53. 53.A struct over peripheral registersmedium
  54. 54.What *p++ doesmedium
  55. 55.Calling an unset callbackmedium
  56. 56.Building a value from bytesmedium
  57. 57.Heap and stack meetingmedium
  58. 58.Same global in two filesmedium
  59. 59.The MEMORY block of a linker scriptmedium
  60. 60.Putting a buffer in a special RAMmedium
  61. 61.The first two vector table wordsmedium
  62. 62.What runs before mainmedium
  63. 63.Weak handlers in startup filesmedium
  64. 64.Per-function stack figuresmedium
  65. 65.const tables still in RAM on AVRmedium
  66. 66.Is returning a literal safemedium
  67. 67.Fixed-size block poolmedium
  68. 68.malloc fails with free memorymedium
  69. 69.A variable-length arraymedium
  70. 70.A struct copy inside an ISRmedium
  71. 71.Small helpers in a headermedium
  72. 72.How startup finds .datamedium
  73. 73.Where newlib gets heap memorymedium
  74. 74.Library order on the link linemedium
  75. 75.What LTO addsmedium
  76. 76.Reading bytes of a value via a unionmedium
  77. 77.char on ARM and x86medium
  78. 78.Shifting a negative number rightmedium
  79. 79.A timeout that survives wraparoundmedium
  80. 80.Raw ADC count to millivoltsmedium
  81. 81.Rounding an integer divisionmedium
  82. 82.Remainder of a negative numbermedium
  83. 83.i = i++ and similarmedium
  84. 84.Two reads in one callmedium
  85. 85.A volatile counter loses countsmedium
  86. 86.Reading a 64-bit tick on a 32-bit MCUmedium
  87. 87.A formatter used by main and an ISRmedium
  88. 88.A MAX macro with side effectsmedium
  89. 89.Why do { } while (0)medium
  90. 90.A config flag set to 0medium
  91. 91.Checking a struct size at build timemedium
  92. 92.Widening a negative bytemedium
  93. 93.Adding without wrappingmedium
  94. 94.Only a few breakpoints allowedmedium
  95. 95.Is a CRC enough for an updatemedium
  96. 96.App dies on first interruptmedium
  97. 97.Counter read gives odd valuesmedium
  98. 98.Lost GPIO pin changesmedium
  99. 99.Sample rate for SPI capturemedium
  100. 100.Ringing seen on the scopemedium
  101. 101.Works only with the debuggermedium
  102. 102.Variable shows "optimized out"medium
  103. 103.Lookup table eating RAMmedium
  104. 104.Logging without slowing the loopmedium
  105. 105.Debugger drops in low-power modemedium
  106. 106.Probe cannot attach any moremedium
  107. 107.Magic value lost across resetmedium
  108. 108.Interrupts stop during erasemedium
  109. 109.Where the app must startmedium
  110. 110.Why did it resetmedium
  111. 111.Brownout and corrupt settingsmedium
  112. 112.Halted in Default_Handlermedium
  113. 113.Board stuck at clock setupmedium
  114. 114.Is HTTPS enough for OTAmedium
  115. 115.Confirming a new imagemedium
  116. 116.Overwrite versus swap updatesmedium
  117. 117.What actually gets signedmedium
  118. 118.Verify once or every bootmedium
  119. 119.High-priority task starvesmedium
  120. 120.Two tasks stop forevermedium
  121. 121.Blocking call in an ISRmedium
  122. 122.Watchdog for many tasksmedium
  123. 123.Reset from refreshing too soonmedium
  124. 124.Cellular data for a fleet updatemedium
  125. 125.Time to send an image over BLEmedium
  126. 126.Image built for another boardmedium
  127. 127.RTOS tick in a sleepy devicemedium
  128. 128.Measuring sleep and burst currentmedium
  129. 129.Debugging crashes in the fieldmedium
  130. 130.What asserts do in releasemedium
  131. 131.malloc fails after daysmedium
  132. 132.Bug disappears when you lookmedium
  133. 133.Two tasks share strtokmedium
  134. 134.Probe stops the oscillatormedium
  135. 135.What diagnostic coverage ismedium
  136. 136.Testing RAM at start-upmedium
  137. 137.Guarding a critical variablemedium
  138. 138.Two sensors disagreemedium
  139. 139.malloc in safety codemedium
  140. 140.What static analysis addsmedium
  141. 141.Resets when the radio sendsmedium
  142. 142.SPI data off by one bitmedium
  143. 143.Finding which part is shortedmedium
  144. 144.Fault that comes and goesmedium
  145. 145.Inputs for an ASIL ratingmedium
  146. 146.Independent watchdog for safetymedium
  147. 147.Proving an output switchedmedium
  148. 148.Battery voltage from an ADC countmedium
  149. 149.What flash ECC can fixmedium
  150. 150.What SPI mode 3 meansmedium
  151. 151.Datasheet gives address 0xD0medium
  152. 152.NACK at the end of an I2C readmedium
  153. 153.Baud error with an integer dividermedium
  154. 154.Reading a quadrature encodermedium
  155. 155.Center-aligned PWM periodmedium
  156. 156.Dead time in a half bridgemedium
  157. 157.Continuous ADC capture with DMAmedium
  158. 158.DMA increment settings for UART TXmedium
  159. 159.ADC reads low from a 100 kΩ dividermedium
  160. 160.Extra resolution by oversamplingmedium
  161. 161.Refreshing a window watchdog too earlymedium
  162. 162.Independent watchdog timeoutmedium
  163. 163.Code runs slow after waking from stopmedium
  164. 164.Where code resumes after standbymedium
  165. 165.WFI compared with WFEmedium
  166. 166.Sleep-on-exit for an event-driven appmedium
  167. 167.Why RTC crystals are 32.768 kHzmedium
  168. 168.Time quanta in a CAN bitmedium
  169. 169.CAN FD payload sizemedium
  170. 170.A CAN node alone on the busmedium
  171. 171.Which IDs a CAN filter acceptsmedium
  172. 172.Estimating CAN bus loadmedium
  173. 173.CAN bit stuffingmedium
  174. 174.Second SPI slave breaks the firstmedium
  175. 175.What RTS/CTS flow control doesmedium
  176. 176.Receiving variable-length UART messagesmedium
  177. 177.UART overrun errormedium
  178. 178.RS-485 reply loses its last bytemedium
  179. 179.GPIO speed setting for a slow LEDmedium
  180. 180.Interrupts on PA0 and PB0medium
  181. 181.Preemption priority versus subprioritymedium
  182. 182.Tail-chaining on Cortex-Mmedium
  183. 183.Registers saved on interrupt entrymedium
  184. 184.Nested disable and enable of interruptsmedium
  185. 185.Masking only some interruptsmedium
  186. 186.Work done before mainmedium
  187. 187.Raising clock speed and flash latencymedium
  188. 188.Writing over existing flash datamedium
  189. 189.Saving a counter to flash every minutemedium
  190. 190.Exact ADC sample ratemedium
  191. 191.SysTick reload for a 1 ms tickmedium
  192. 192.Battery voltage from an ADC codemedium
  193. 193.Current through a held buttonmedium
  194. 194.Distance from an ultrasonic echomedium
  195. 195.Centring a hobby servomedium
  196. 196.Sleep current high only under debugmedium
  197. 197.Board hangs without the debuggermedium
  198. 198.HAL_Delay inside an interruptmedium
  199. 199.Why did the field unit rebootmedium
  200. 200.Loop rate with vTaskDelaymedium
  201. 201.How long vTaskDelay(1) waitsmedium
  202. 202.When a 32-bit tick count wrapsmedium
  203. 203.Timeout check that survives wrapmedium
  204. 204.Why portYIELD_FROM_ISR is neededmedium
  205. 205.Lost interrupts with a binary semaphoremedium
  206. 206.First take of a new binary semaphoremedium
  207. 207.Releasing another task mutexmedium
  208. 208.Mutex held during a long waitmedium
  209. 209.Limits of priority inheritancemedium
  210. 210.How many bits an event group holdsmedium
  211. 211.Three tasks meeting at a pointmedium
  212. 212.Event bit stays set and loopsmedium
  213. 213.Setting event bits from an ISRmedium
  214. 214.Blocking inside a timer callbackmedium
  215. 215.xTimerStart returns pdFAILmedium
  216. 216.A 2.5 ms software timermedium
  217. 217.Queueing pointers to large buffersmedium
  218. 218.Waiting on two queues and a semaphoremedium
  219. 219.Overhead in a message buffermedium
  220. 220.Stream buffer trigger levelmedium
  221. 221.ulTaskNotifyTake as a countermedium
  222. 222.When task notifications do not fitmedium
  223. 223.Gatekeeper task for a shared UARTmedium
  224. 224.Deleted tasks leak memorymedium
  225. 225.Idle task and priority 0 tasksmedium
  226. 226.Waking a task out of a long delaymedium
  227. 227.Measuring CPU use per taskmedium
  228. 228.CPU load from run-time statsmedium
  229. 229.Seeing task switches over timemedium
  230. 230.Allocation fails with free memory leftmedium
  231. 231.Heap across two RAM banksmedium
  232. 232.Calling malloc from several tasksmedium
  233. 233.Task crashes after adding printfmedium
  234. 234.errno shared between tasksmedium
  235. 235.Context of a Zephyr k_timer expiry functionmedium
  236. 236.Running a job 500 ms later in Zephyrmedium
  237. 237.One work item slows all othersmedium
  238. 238.Waiting on several Zephyr objectsmedium
  239. 239.Data put in a Zephyr FIFO gets corruptedmedium
  240. 240.A Zephyr thread with priority -1medium
  241. 241.k_sched_lock compared with irq_lockmedium
  242. 242.Setting a flag from ISR and thread in Zephyrmedium
  243. 243.Checking a Zephyr device before usemedium
  244. 244.Moving a sensor to another I2C busmedium
  245. 245.Logging inside a fast ISR in Zephyrmedium
  246. 246.Running init code before main in Zephyrmedium
  247. 247.Finding Zephyr Kconfig optionsmedium
  248. 248.Running Zephyr tests across boardsmedium
  249. 249.Adding a bootloader for firmware updatesmedium
  250. 250.Protecting data on a dual-core Zephyr SoCmedium
  251. 251.Pinning a task to one coremedium
  252. 252.Priority assumptions on two coresmedium
  253. 253.Wi-Fi jitter on an ESP32 control taskmedium
  254. 254.Isolating an untrusted taskmedium
  255. 255.Limiting a Zephyr thread to its own memorymedium
  256. 256.An interrupt the kernel never masksmedium
  257. 257.Lock-free ring buffer from ISR to taskmedium
  258. 258.Avoiding malloc after start-upmedium
  259. 259.Long critical section and interrupt latencymedium
  260. 260.Measuring task switch timemedium
  261. 261.Raising the tick rate to 10 kHzmedium
  262. 262.Priority of an interrupt handler taskmedium
  263. 263.Using timeouts on every blockmedium
  264. 264.Embedded Linux or an RTOSmedium
  265. 265.Utilisation limit under EDFmedium
  266. 266.Total CPU utilisation of a task setmedium
  267. 267.Testing FreeRTOS code on a PCmedium
  268. 268.Spotting a stuck taskmedium