Back to the glossary
Embedded and systems
Flashing
Flashing means programming firmware into the non-volatile flash memory of a microcontroller or control unit, through a debug interface, a bootloader or a diagnostic protocol.
Also known as: firmware update, programming, reflashing
Ways to load firmware
- Debug interface: via JTAG or SWD with a debug probe, typical during development
- Bootloader: a small program on the device accepts the new firmware over UART, USB, CAN or Ethernet
- Diagnostic protocol: in vehicles usually via UDS, which defines dedicated services for downloading software
- Over the air: updates over a wireless link in the field
Flashing in test automation
If you test firmware automatically, you have to flash it automatically too. A typical CI pipeline builds the firmware, flashes it onto the device on the test bench, checks the version identifier and only then starts the tests.
What can go wrong
- An interruption during writing, for example a voltage drop: the device no longer boots
- The wrong firmware on the wrong hardware variant
- Outdated parameters or calibration data left in memory
The update process itself is therefore an important test subject: a device should survive any interruption and return to a recoverable state.