2023-01-11 20:30:26 -08:00
---
id: nrf52-erase
2023-01-15 20:40:43 -08:00
title: Flash nRF52 Factory Erase
sidebar_label: Factory Erase nRF52
2023-01-11 20:30:26 -08:00
sidebar_position: 3
---
2023-01-21 09:32:24 -08:00
import Link from "@docusaurus/Link";
2023-01-15 20:40:43 -08:00
Meshtastic uses the [littlefs](https://github.com/littlefs-project/littlefs) library to store configuration, logs, and other data in the internal flash of nRF52 devices. Updating the firmware does _not_ erase this additional data, which can cause issues when the format and location of data changes between releases.
2023-01-11 20:30:26 -08:00
2023-01-15 20:40:43 -08:00
To reset the flash storage on your nRF52 board:
2023-01-11 20:30:26 -08:00
Download and unzip the latest firmware from [Meshtastic Downloads](https://meshtastic.org/downloads).
1. Connect your device to your computer with a USB data cable.
2023-01-16 10:52:14 -08:00
2. Double click the reset button on your device (this will put it into bootloader mode)
2023-01-11 20:30:26 -08:00
3. Notice a new drive will be mounted on your computer (Windows, Mac, or Linux)
4. Open this drive and you should see three files: `CURRENT.UF2`, `INDEX.HTM`, and `INFO_UF2.TXT`
5. Copy the included file named `Meshtastic_nRF52_factory_erase.uf2` onto the virtual disk device. The device should reboot.
2023-01-16 10:52:14 -08:00
6. Connect to the device via serial console using the [Meshtastic CLI `--noproto`](/docs/software/python/cli/#--noproto) mode or a standalone serial client like `minicom`.
2023-01-11 20:30:26 -08:00
7. Press any key, you should see the message: `Formatting... Done`.
2023-01-21 09:32:24 -08:00
Once the device has been erased, you can proceed to install the latest Meshtastic firmware on a clean storage filesystem by clicking the link below.
<div className="indexCtasBody">
<Link
className={"button button--outline button--lg cta--button"}
to={"/docs/getting-started/flashing-firmware/nrf52/"}
>
2023-12-05 22:24:18 -08:00
Flash nRF52/RP2040 Firmware
2023-01-21 09:32:24 -08:00
</Link>
</div>