# My device is bricked

If your device is not booting (even with proper power supply as described in [Getting
Started](https://docs.luxonis.com/hardware/platform/deploy/oak4-deployment-guide.md) guide), chances are it is bricked.

To unbrick a device, you need to:

 1. put it into EDL mode (Emergency Download Mode)
 2. determine the time of production of your camera
 3. choose one of two guides to flash the new OS according to the time of production

### Enter EDL mode

 1. Plug out all cables from the camera
 2. Hold down the factory reset button on the back of the device
 3. Plug in the USB-C (which on the other end is connected to your PC) while holding the button down
 4. Plug in the PoE M12 cable
 5. After a few seconds release the reset button.

If the device is not in EDL mode, perform the steps above again, but this time flip the USB-C cable orientation (only one
orientation works).

### Determine the time of production

Flip the camera upside down to determine the year and week of production.

If the number is bigger then 2536 (produced after year 2025, week 36) follow the [Newer
Devices](#Newer%20Devices%20(produced%20after%20year%202025%2C%2036th%20week)) guide, otherwise follow [Older
Devices](#My%2520device%2520is%2520bricked-Older%2520Devices%2520(produced%2520before%2520year%25202025%252C%252036th%2520week)-OAK4)
guide.

If, for any reason, you can't read the information from the sticker, contact us at support@luxonis.com.

### Flash new OS

### For Newer Devices (produced after year 2025, 36th week)

Follow the OS flash guide on [Updating OS docs page](https://docs.luxonis.com/software-v3/sw-stack/luxonis-os.md) and flash latest
OS.

### Older Devices (produced before year 2025, 36th week)

 1. Make sure fastboot is installed on your computer.
 2. Download [this OS image](https://luxonisos-rvc4.fra1.digitaloceanspaces.com/fastboot-images/fastboot-luxonisos.tar.xz).
 3. Open a terminal, go to wherever you dowloaded the OS image, and run:

```bash
cd <path-to-downloaded-os-image>
tar xvf fastboot-luxonisos.tar.xz
cd fastboot-luxonis-debug
bash fastboot_cmds
```

After the device is unbricked, it is recommended to update to the latest OS via OTA. Follow the OTA update steps on the [Updating
OS docs page](https://docs.luxonis.com/software-v3/sw-stack/luxonis-os.md).

If you're encountering problems please write to support@luxonis.com.

If you can successfully ping the device but are unable to connect to it in any other way (even when searching by its IP address),
perform a factory reset - the device may be soft-bricked. Follow the [PoE Deployment Guide under Factory Reset
section](https://docs.luxonis.com/hardware/platform/deploy/poe-deployment-guide.md).
