> 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/error-code-2.md).

# Error code 2: bootloader cannot access filesystem

The RTU has stopped, the ER light flashes twice, and the OK light isn't fading.

If the RTU has stopped working, the red ER light flashes **2** times, and the green OK light **isn't** fading on and off, the bootloader cannot access the file system. If the file system cannot be accessed, then the application cannot be run. This means the bootloader is intact and does not need reprogramming. The following procedure will enable the RTU to be manually restored to its original working configuration without the need to return to QTech.

{% hint style="info" %}
**Applies to:** XL4 Plus, firmware v7.x. In general users should maintain RTU on the latest firmware version to take advantage of new features and avoid known issues that have since been rectified.
{% endhint %}

## Check it's this fault

| What you see                                           | What it means                                                                                                                                                                                     |
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ER flashes 2, OK **fading**                            | Clock battery low. Not this fault.                                                                                                                                                                |
| ER flashes 2, OK **not** fading                        | This fault: the application isn't running                                                                                                                                                         |
| ER flashes 2 just after you installed a new bootloader | Normal: the application was erased. Install the application from a USB drive. See [Update the firmware](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/update-firmware.md). |

Code 2 will be flashed in ms (200 on, 200 off, 200 on, 200 off, 1000 off, repeat).

This fault was seen on three RTUs in quick succession during March 2023. The cause is not known, but the following procedure allows the RTU to be recovered from this state.

## What you need

* A USB drive with the latest XL4 Plus application files (.elf and .md5 files stored in root directory)
* Switches to assert digital inputs 1 & 2
* QTech Workbench and a USB type A to B cable
* The original analogue calibration data. Contact QTech support to retrieve the original calibration data from test records.

![A switch jig for turning digital inputs on and off](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FHmFol3ySlwXM9YymHge4%2Fxl4plus-switch-jig.jpg?alt=media)

## Recover the RTU

1. Remove power from the RTU, undo screws and separate case. You can now see the Q04 processor board.
2. Install the **INIT** jumper. Install the jumper to short the two pins.
3. Install switches to assert digital inputs 1 & 2. This will perform memory tests only, not erase.
4. Insert a USB drive with latest XL4 Plus application files.
5. Apply power to RTU.
6. Wait for memory tests to run to completion. Watch the digital input and digital output LEDs. Digital outputs 1 & 2 should lit on completion. Be patient. It can take a while before the tests start, then you will see the LEDs perform a sweeping pattern.
7. Power off RTU.
8. Uninstall INIT jumper. Leave present on one pin only.
9. Apply power to RTU.
10. Expect to see the application update (as USB drive is installed). LEDs will perform a sweeping pattern. Once programming is complete the OK LED should be fading ON/OFF.
11. Remove USB drive.
12. Connect the cable to the computer and the RTU. Wait for any drivers to be installed. Connect RTU to QTech Workbench using a USB type A to B cable. Click the **Connect** button.
13. Select the **Licensing** menu in Workbench. Confirm the serial number and license information is present. Then select **Read Licence**. If not, 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).
14. Configure the analogue calibration. Contact QTech support to retrieve the original calibration data from test records. Select **RTU Input / Output > Analogue Calibration > Input**, select **Read from RTU**, enter the calibration details provided by QTech, then select **Write to RTU**.
15. Configure RTU to your requirements. Configure comms, expansion modules, I/O, etc.

{% hint style="warning" %}
Always remove the INIT jumper after performing self-tests otherwise self-test functions may be inadvertently conducted when the digital input harness is reconnected and the device repowered. Powering up the unit with the INIT jumper fitted and with a digital input wiring harness in place may render the unit inoperable.
{% endhint %}

All the codes are listed in [Status lights and diagnostics](https://help.qtech.co.nz/datran/datran-telemetry/datran-xl4-plus-rtu/status-lights-and-diagnostics.md).

## Still not working?

If the RTU still shows code 2, contact QTech.
