> For the complete documentation index, see [llms.txt](https://docs.ruuvi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ruuvi.com/ruuvi-air-firmware/air-firmware-loader.md).

# Air Firmware Loader

The firmware loader is a self-contained minimal program which allows for receiving firmware update images over the air. The received images are stored in flash memory and after a reboot the second stage bootloader validates and installs the image.

Generally the firmware loader should not be used in normal operation of Ruuvi Air, it is a backup option for recovery update in case a firmware update breaks the main application somehow.

If both main application and firmware loader are broken, a factory reset can be executed by holding down button on Ruuvi Air for at least 15 seconds. After factory reset, the device is back to initial state and can receive the updates.

The source code is available at <https://github.com/ruuvi/ruuvi.air.fw_loader>
