Embedded Systems & Firmware

What is the role of a bootloader in an embedded device?

  1. AIt runs first at power-on, starting the main firmware or updating it with new firmware
  2. BA part for fixing the device's casing
  3. CIt automatically fixes bugs in the program
Show answer and explanation

Answer: A. It runs first at power-on, starting the main firmware or updating it with new firmware

A bootloader is a small program stored at a fixed location in flash that runs first at power-on. Normally it verifies the main firmware and starts it, but it can also receive new firmware over UART, USB, radio and so on and write it to flash. It is usually excluded from updates and protected so that the bootloader itself is never corrupted.

  • A. Correct. It is essential for firmware updates.
  • B. It is software, not a mechanical part.
  • C. It does not fix bugs automatically.
Practice this topic Back to topic

More Embedded Systems & Firmware questions

  1. In devices updated over the air (OTA), why is flash divided into two firmware slots (A and B)?
  2. What is the main purpose of using a microcontroller's sleep mode in a battery-powered embedded device?
  3. A sensor device runs at 10 mA for 1% of the time and sleeps at 10 µA for the remaining 99%. What is the closest average current?
  4. Why does firmware on small microcontrollers often avoid dynamic memory allocation such as malloc?
  5. On a small microcontroller without an MMU, what should be kept in mind about excessive stack use?