> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/troubleshooting/usb-firmware-update-fails.md).

# The firmware update from a USB drive doesn't work

The RTU doesn't load the new firmware, or the ER light flashes twice afterwards.

If the firmware update fails, the red ER status LED will flash twice and the OK LED will not slowly fade on/off. If the problem occurs when using a high-capacity USB drive, try using a smaller USB 2.0 8GB drive or similar, formatted FAT32. Check the correct files are at the root level of the USB drive and repeat the update process.

{% hint style="info" %}
**Applies to:** XL4 Plus, firmware v7.x, application updates from the USB host port.
{% endhint %}

## Check these in order

1. **The files.** USB drive (formatted as FAT 32) containing both the Q04 Plus Application firmware file (.elf) and the MD5 validation file (.md5) at the root level of the USB drive. The .elf and .md5 files are distributed by QTech.
2. **The drive.** If you have trouble upgrading the application with a large USB drive (e.g. 32 GB or more) try using a smaller USB 2.0 8GB drive or similar, formatted FAT32.
3. **The bootloader.** The RTU Bootloader firmware must be upgraded to V3.04 before upgrading the application firmware to V7.18. See [Which version do I have?](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/which-version.md)
4. **Repeat the update.** Disconnect power from the RTU, insert the USB drive, then power up the RTU. Do not remove power from the RTU during this programming process. The Bootloader can take approx. 10s to reformat the FLASH and there is no LED activity during this time. Be patient and don't repower the RTU during this time.
5. **Remove the drive afterwards.** Do not leave the USB drive in the socket after upgrading is complete. Otherwise, the next time the RTU reboots it will reload the new firmware again.

## Lights after an update

| What you see                          | What it means                                                                                                                                                                                                                                                                                                              |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| OK fades on and off                   | When that is complete the OK led starts its characteristic fade on and off to show that the application is running.                                                                                                                                                                                                        |
| OK fades, ER flashes a code such as 7 | After reprogramming it is normal to see the error LED flash a number of times. Code 7: the DLP is not loaded or is corrupted.                                                                                                                                                                                              |
| ER flashes fast and continuously      | If the ERR LED flashes rapidly this indicates the RTU does not have a valid license. It does not mean the upgrade has failed. See [The error light flashes fast, or the serial number shows ?????](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/troubleshooting/licence-or-serial-number-lost.md). |
| ER flashes 2, OK not fading           | The application is not running. Repeat the update process. See [Error code 2: bootloader cannot access filesystem](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/troubleshooting/error-code-2.md).                                                                                                  |

For the full procedure, see [Update the firmware](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/update-firmware.md).

## Still not working?

Contact QTech. Have the RTU's serial number, the firmware version you're installing, the size of the USB drive, what the lights show and what you've tried ready.
