---
title: "DEEPX DX-M1 errors and fixes on Raspberry Pi 5"
description: "Exact DEEPX DX-M1 error messages from dx_rt, DKMS, PCIe and DX-COM on Raspberry Pi 5, each with the cause, a command to confirm it, and the fix."
url: "https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/"
last_updated: "2026-10-12"
---

# DEEPX DX-M1 errors and fixes on Raspberry Pi 5

DEEPX DX-M1 error messages from dx_rt, DKMS, PCIe and DX-COM on a Raspberry Pi 5 with the AI HAT+ or the Edge AI Expansion Board, each with the cause, a command to confirm it, and the fix.

**Works with:** [AI HAT+](https://docs.sixfab.com/edge-ai/ai-hat-plus/), [Edge AI Expansion Board](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/)

Most errors trace back to four areas: the PCIe link, missing kernel headers for the DKMS driver build, version mismatches between dx_rt, the driver and the NPU firmware, and DX-COM compile settings. Most headings below are the message exactly as the tool prints it, and a few describe a symptom: search the page (`Ctrl+F`) for the line the terminal printed. For an error that is not here, see [Get help from community](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#get-help-from-community).

## First checks

Run these two commands before anything else. Together they tell whether the problem is hardware, driver or software.

```bash
lspci -d 1ff4:
```

`1ff4` is the DEEPX PCI vendor ID. The command prints one line for the card, for example `0001:01:00.0 Processing accelerators: DEEPX Co., Ltd. DX_M1 (rev 01)`. No output means the card is not on the PCIe bus: see [PCIe and hardware](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#pcie-and-hardware).

```bash
cd dx_rt_npu_linux_driver
sudo ./sanity_check.sh
```

With the driver installed from APT, the repository is not needed: run `sudo /usr/src/dxrt-driver-dkms-2.7.0-2/sanity_check.sh` instead.

The last line on success is `** Sanity check PASSED!`. On failure the script writes `sanity/result/dxrt_issue_bundle_<timestamp>.tar.gz` under the folder that holds it. Keep that file for a help request in the Sixfab Community or a support ticket ([Get help from community](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#get-help-from-community)).

## Version compatibility for dx_rt v3.5.0

The page applies to dx_rt v3.5.0, dxrt-driver-dkms v2.7.0 and NPU firmware v2.7.6. Most runtime errors on it are version mismatches: dx_rt v3.5.0 refuses to start below these minimums on Linux.

| Component | Minimum for dx_rt v3.5.0 | Check with |
| --- | --- | --- |
| `dxrt_driver` kernel module | 2.7.0 | `modinfo -F version dxrt_driver` |
| `dx_dma` PCIe driver | 2.7.0 | `modinfo -F version dx_dma` |
| NPU firmware | 2.7.6 | `dxrt-cli -i` |
| DX-COM (compiler used for the model) | 1.18.1 | printed in the error message |
| `.dxnn` file format | v6 to v9 | `dxparse -m model.dxnn` |
| ONNX Runtime (`libonnxruntime.so.1`) | 1.20.1 | `ldd $(which run_model) \| grep -i onnx` |

DX-COM 2.5.0 is the compiler paired with dx_rt v3.5.0. It writes `.dxnn` format v9 only, and dx_rt v3.4.2 and earlier cannot load that format.

The minimums and the error messages are checked against the dx_rt v3.5.0 and driver v2.7.0 sources: [`device_version.h`](https://github.com/DEEPX-AI/dx_rt/blob/main/lib/include/dxrt/device_version.h) and [`model.h`](https://github.com/DEEPX-AI/dx_rt/blob/main/lib/include/dxrt/model.h) in dx_rt.

Board-specific driver floors, from the [driver release notes](https://github.com/DEEPX-AI/dx_rt_npu_linux_driver/blob/main/RELEASE_NOTES.md): Raspberry Pi 5 safe link-up needs driver v1.8.0 or later; Raspberry Pi 4 (BCM2711) needs v2.3.0 or later for the 64-bit PCIe TLP fix.

The hardware tests ran on a Raspberry Pi 5 (8 GB) with Raspberry Pi OS Trixie 64-bit, dx_rt v3.4.2, dxrt-driver-dkms v2.6.0 and DX-COM 2.4.1, last verified on October 21, 2026.

## Driver installation with APT and DKMS

### `dpkg: dependency problems prevent configuration of dxrt-driver-dkms` (dkms not installed)

**Cause:** DKMS is missing. The driver package builds its kernel modules with DKMS and declares `Depends: dkms, build-essential`. `apt` installs those dependencies; `dpkg -i` does not.

```text
dpkg: dependency problems prevent configuration of dxrt-driver-dkms:
 dxrt-driver-dkms depends on dkms; however:
  Package dkms is not installed.
```

**Check:** when DKMS is missing, this command prints `dpkg-query: no packages found matching dkms`:

```bash
dpkg -l dkms
```

**Fix:** install DKMS and let the driver package finish configuring:

```bash
sudo apt update
sudo apt install dkms
sudo dpkg --configure -a
```

**Verify:** the command lists the module as installed for the running kernel, for example `dxrt-driver-dkms/2.7.0-2, 6.18.50+rpt-rpi-2712, aarch64: installed`:

```bash
dkms status -m dxrt-driver-dkms
```

To avoid the error next time, install a local package file with apt: `sudo apt install ./dxrt-driver-dkms_2.7.0-2_all.deb`.

Applies to: dxrt-driver-dkms v2.7.0.

### `E: Unable to locate package apt-repo-sixfab`

**Cause:** the install path is deprecated, and the `apt-repo-sixfab` package is not available from the configured sources. Install it from the release file below, which works on Raspberry Pi OS Bookworm and Trixie, then continue with setup.

```text
$ sudo apt install apt-repo-sixfab
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package apt-repo-sixfab
```

**Check:** the command prints `VERSION_CODENAME=bookworm` or `VERSION_CODENAME=trixie`; the fix works on both:

```bash
grep VERSION_CODENAME /etc/os-release
```

**Fix:** download and install the release file, then update the package lists:

```bash
wget https://github.com/sixfab/sixfab_dx/releases/download/v0.1/apt-repo-sixfab.deb
sudo apt install ./apt-repo-sixfab.deb
sudo apt update
```

**Verify:** the `Installed:` line shows a version, not `(none)`:

```bash
apt-cache policy apt-repo-sixfab
```

Then continue with [Get started with AI HAT+](https://docs.sixfab.com/edge-ai/ai-hat-plus/quickstart/).

Applies to: Raspberry Pi OS Bookworm and Trixie.

### `ERROR: Manual installation detected in /lib/modules/`

**Cause:** a manually built driver is blocking the DKMS package. A manual build (`./build.sh -c install`) puts modules under `/lib/modules/<kernel>/extra/`; the DKMS package uses `/lib/modules/<kernel>/updates/dkms/`. The package’s install script stops when it finds the manual copies, so that two versions of `dxrt_driver` never load together.

```text
Checking for conflicting manual installation...
ERROR: Found manually installed module: dxrt_driver.ko
/lib/modules/<kernel>/extra/rt/dxrt_driver.ko
ERROR: Found manually installed module: dx_dma.ko
/lib/modules/<kernel>/extra/pci_deepx/dx_dma.ko

===================================================================
ERROR: Manual installation detected in /lib/modules/
===================================================================
```

**Check:** the command lists `dxrt_driver.ko`, `dx_dma.ko` or both:

```bash
find /lib/modules/$(uname -r)/extra -name 'dx*.ko'
```

**Fix:** remove the manual install, then let the package finish configuring. With the driver source tree still on the device:

```bash
cd dx_rt_npu_linux_driver/modules
sudo ./build.sh -c uninstall
```

Without the source tree:

```bash
sudo rm /lib/modules/$(uname -r)/extra/rt/dxrt_driver.ko \
        /lib/modules/$(uname -r)/extra/pci_deepx/dx_dma.ko
sudo depmod -a
```

Then finish configuring the package:

```bash
sudo dpkg --configure -a
```

**Verify:** DKMS shows the module as `installed` for the running kernel, and `lsmod` lists both modules:

```bash
dkms status -m dxrt-driver-dkms
lsmod | grep -E 'dxrt_driver|dx_dma'
```

Applies to: dxrt-driver-dkms v2.7.0.

### `ERROR: Kernel configuration is invalid.` during driver build

**Cause:** the kernel headers for the running kernel are not installed, so the modules cannot be built. The message has two spaces after the colon.

```text
 ERROR:  Kernel configuration is invalid.
         missing  /lib/modules/<kernel>/build/include/generated/autoconf.h,
                  /lib/modules/<kernel>/build/include/config/auto.conf
 ** Please Install: sudo apt install --reinstall linux-headers-<kernel>
```

**Check:** the command prints `No such file or directory`, or the folder is empty:

```bash
ls /lib/modules/$(uname -r)/build
```

**Fix:** install the kernel headers for the board. Raspberry Pi 5:

```bash
sudo apt install linux-headers-rpi-2712
```

Raspberry Pi 4:

```bash
sudo apt install linux-headers-rpi-v8
```

Then rebuild and install the driver:

```bash
./build.sh
sudo ./build.sh -c install --reload
```

**Verify:** `sudo ./sanity_check.sh` ends with `** Sanity check PASSED!`.

Applies to: driver v2.7.0.

### `[ERROR] /dev/dxrt0 has incorrect permissions` (works only with sudo)

**Cause:** the udev rule that opens `/dev/dxrt*` to all users is missing. This usually follows a manual driver install, and shows first as apps that find the device only under `sudo`.

```text
==== Device File Check ====
[OK] /dev/dxrt0 exists.
[OK] /dev/dxrt0 is a character device.
[ERROR] /dev/dxrt0 has incorrect permissions: <600> (expected: 0666)
```

**Check:** the permissions are not `crw-rw-rw-`, and the rule file is missing:

```bash
ls -l /dev/dxrt*
ls /etc/udev/rules.d/51-deepx-udev.rules
```

**Fix:** install the udev rule. The script writes `/etc/udev/rules.d/51-deepx-udev.rules` and reloads udev:

```bash
cd dx_rt_npu_linux_driver/modules
sudo ./install-udev_rule.sh
```

**Verify:** `ls -l /dev/dxrt0` shows `crw-rw-rw-`, and the app runs without `sudo`.

Applies to: driver v2.7.0.

### `WARNING: Old driver modules are still loaded in memory.` after driver upgrade

**Cause:** an app or the `dxrt` service held the device during the upgrade, so the old modules could not be unloaded. The new modules are installed on disk and load on the next boot.

```text
Warning: dxrt_driver module is in use and could not be unloaded.

===================================================================
WARNING: Old driver modules are still loaded in memory.

New module files will be installed, but the old version remains
active until reboot. A reboot is REQUIRED to complete the upgrade.
===================================================================
...
Skipping module loading - old driver modules are still active.
The newly installed modules will be used after reboot.
Skipping service restart - reboot required to activate new modules.
```

**Fix:** reboot the Raspberry Pi:

```bash
sudo reboot
```

**Verify:** both commands show the new version:

```bash
modinfo -F version dxrt_driver
cat /sys/module/dxrt_driver/version
```

Before the next upgrade, stop the apps that use the NPU and run `sudo systemctl stop dxrt`.

Applies to: dxrt-driver-dkms v2.7.0.

## dx_rt build

### `[WARNING] PEP 668 externally-managed-environment error detected!`

**Cause:** dx_rt’s `build.sh` needs a Python virtual environment on Bookworm and Trixie. It installs the `dx-engine` Python package with pip; without a venv, pip targets the system Python, which both releases mark as externally managed (PEP 668). The C++ runtime still builds; only the Python package is skipped.

```text
[WARNING] PEP 668 externally-managed-environment error detected!
[WARNING] Skipping Python package installation due to system restrictions.
[HINT] Please use --venv_path option or activate a virtual environment:
example)$ python3 -m venv ./venv-dxnn; ./build.sh --venv_path ./venv-dxnn
```

**Check:** the variable is empty when no venv is active:

```bash
echo $VIRTUAL_ENV
```

**Fix:** create a venv and pass it to `build.sh`:

```bash
python3 -m venv --system-site-packages ./venv-dxnn
./build.sh --venv_path ./venv-dxnn
```

Or activate the venv first:

```bash
python3 -m venv --system-site-packages ./venv-dxnn
source ./venv-dxnn/bin/activate
./build.sh
```

`--system-site-packages` keeps system packages such as OpenCV visible inside the venv.

**Verify:** the list shows one `dx-engine` line with a version number:

```bash
source ./venv-dxnn/bin/activate
python3 -m pip list | grep dx-engine
```

If CMake fails after this, see [`\[ERROR\] CMake configuration failed`](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#cmake-configuration-failed).

Applies to: dx_rt v3.5.0, Raspberry Pi OS Bookworm and Trixie.

### `[ERROR] CMake configuration failed. If a Python virtualenv is active, it may be shadowing system cmake.`

**Cause:** a `cmake` installed by pip inside the venv runs instead of the system CMake. Another Python package often pulls it in, and it tends to show up right after the fix for [PEP 668](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#pep-668-externally-managed-environment).

```text
[ERROR] CMake configuration failed. If a Python virtualenv is active, it may be shadowing system cmake. Try deactivating the venv or ensure system CMake is used.
```

**Check:** the command prints a path inside the venv (under `venv-dxnn/bin/`):

```bash
which cmake
```

**Fix:** remove the pip copy, install the system CMake and build again:

```bash
source ./venv-dxnn/bin/activate
pip uninstall cmake
sudo apt install cmake
./build.sh --venv_path ./venv-dxnn
```

**Verify:** `which cmake` prints `/usr/bin/cmake`, and the build finishes.

The message `[ERROR] CMake binary not found. Please install cmake (e.g., sudo apt install cmake) and retry.` means CMake is not installed: run `sudo apt install cmake`.

Applies to: dx_rt v3.5.0.

## PCIe and hardware

These four entries form one diagnostic flow. If `lspci -d 1ff4:` prints nothing, use the first two and let the card LED decide between them. If `lspci` shows the card but the runtime does not, use the last two and check whether the kernel modules are loaded.

### `[ERROR] No supported DEEPX devices found (vendor=1ff4, device=0000 0100 0110 0101 0111).`

**Cause:** the card did not enumerate on the PCIe bus at boot. A soft reboot often does not reset the card: do a full power-cycle first.

```text
==== PCI Link-up Check ====
[ERROR] No supported DEEPX devices found (vendor=1ff4, device=0000 0100 0110 0101 0111).
```

**Check:** `lspci -d 1ff4:` prints nothing. Look at the card LED: if it is light blue or near white, go to [`No supported DEEPX devices found` with card LED light blue or near white](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#no-devices-found-led-light-blue).

**Fix:** shut down with `sudo shutdown -h now`, unplug the power supply from the wall, wait about 10 s and plug it back in. `sudo reboot` does not fully reset the card.

**Verify:** the command prints one line for the card, listed as `DEEPX Co., Ltd. DX_M1`:

```bash
lspci -d 1ff4:
```

Then `sudo ./sanity_check.sh` shows `[OK] Supported DEEPX devices found. (num=1)`.

Applies to: hardware.

### `No supported DEEPX devices found` with card LED light blue or near white

**Cause:** the PCIe link is not coming up: the FFC cable is not fully seated, or the cable or connector is damaged. The sanity check prints the same line as for a card that did not enumerate ([`\[ERROR\] No supported DEEPX devices found`](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#no-supported-deepx-devices-found)); the LED color tells the two apart.

**Fix:** reseat the FFC cable:

1. Power off and unplug the supply.
2. Open both connector latches, reinsert the cable fully at both ends with the contacts facing the correct side, and close the latches.
3. Power on and run `lspci -d 1ff4:`.
4. If the card is still missing, swap in another PCIe FFC cable and check again.

**Verify:** `lspci -d 1ff4:` lists the card.

If the card is still missing with a known-good cable, the board’s PCIe interface is suspect. Run `sudo ./sanity_check.sh` and open a support ticket with `sanity/result/dxrt_issue_bundle_<timestamp>.tar.gz` and a photo of the LED.

Applies to: hardware.

### `Device not found` from `dxrt-cli -s`, but `lspci` lists the card

**Cause:** the card enumerates, but the runtime cannot use the link at the Raspberry Pi 5’s default PCIe speed. The card LED is fully off after boot in this state. Enable PCIe Gen 3.

```text
$ dxrt-cli -s
Device not found
```

**Check:** rule out a driver problem first:

```bash
sudo ./sanity_check.sh
```

The output shows `[OK] dxrt_driver module is loaded.` and `[OK] dx_dma module is loaded.` If either says `NOT loaded`, go to [`\[ERROR\] dxrt_driver module is NOT loaded.` after kernel update](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#dxrt-driver-module-is-not-loaded) instead.

**Fix:** open the boot configuration file:

```bash
sudo nano /boot/firmware/config.txt
```

Add these lines at the end of the file:

```text
dtparam=pciex1
dtparam=pciex1_gen=3
```

Save and exit (`Ctrl+X`, then `Y`, then `Enter`), then reboot:

```bash
sudo reboot
```

**Verify:** the command prints the device and its versions, with the link at Gen 3:

```bash
dxrt-cli -s
```

```text
DXRT v3.5.0 (build: <build id>)
=======================================================
 * Device 0: M1M, Accelerator type
---------------------   Version   ---------------------
 * RT Driver version   : v2.7.0
 * PCIe Driver version : v2.7.0
-------------------------------------------------------
 * FW version          : v2.7.6
--------------------- Device Info ---------------------
 * Memory : LPDDR4 4200 Mbps, 1.92GiB
 * Board  : M.2, Rev 0.0
 * Chip Offset : 1
 * PCIe   : Gen3 X1 [01:00:00]

NPU 0: voltage 750 mV, clock 1000 MHz, temperature 41'C
NPU 1: voltage 750 mV, clock 1000 MHz, temperature 41'C
NPU 2: voltage 750 mV, clock 1000 MHz, temperature 41'C
=======================================================
```

Applies to: Raspberry Pi 5, dx_rt v3.5.0.

### `[ERROR] dxrt_driver module is NOT loaded.` after kernel update

**Cause:** DKMS could not rebuild the driver for the new kernel. DKMS rebuilds the DEEPX modules on every kernel update, but it needs the matching kernel headers; without them, no module exists for the kernel that booted.

```text
==== Kernel Module Check ====
[ERROR] dxrt_driver module is NOT loaded.
[ERROR] dx_dma module is NOT loaded.
[ERROR] PCIe <01:00.0> driver probe is fail.
```

**Check:** the output has no `installed` line for the running kernel, and the folder holds no `dxrt_driver.ko` or `dx_dma.ko`:

```bash
uname -r
dkms status -m dxrt-driver-dkms
ls /lib/modules/$(uname -r)/updates/dkms/
```

**Fix:** install the kernel headers for the board. Raspberry Pi 5:

```bash
sudo apt install linux-headers-rpi-2712
```

Raspberry Pi 4:

```bash
sudo apt install linux-headers-rpi-v8
```

Then rebuild and load the modules:

```bash
sudo dkms autoinstall
sudo modprobe dx_dma
sudo modprobe dxrt_driver
```

**Verify:** `sudo ./sanity_check.sh` ends with `** Sanity check PASSED!`.

Applies to: dxrt-driver-dkms, any version.

## Performance and thermals

### Low FPS from the start (PCIe link at Gen 2)

**Cause:** the Raspberry Pi 5 runs its PCIe link at Gen 2 by default, which caps NPU throughput. Use Gen 3 for every DX-M1 setup on a Raspberry Pi 5.

**Check:** at the default setting the command prints `LnkSta: Speed 5GT/s, Width x1` (Gen 2):

```bash
sudo lspci -vv -d 1ff4: | grep LnkSta:
```

**Fix:** add these lines to the end of `/boot/firmware/config.txt`, then run `sudo reboot`:

```text
dtparam=pciex1
dtparam=pciex1_gen=3
```

**Verify:** the same command shows `LnkSta: Speed 8GT/s, Width x1` (Gen 3). `lspci` may append `(downgraded)` to the width; the speed is what matters. `dxrt-cli -s` also lists `PCIe: Gen3 X1`.

FPS that starts high and drops after a few minutes under load is thermal throttling: see [Throttling notice](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#throttling-notice).

Applies to: Raspberry Pi 5.

### `Throttling notice: Device-ID=0 NPU-ID=0 temperature is N°C.`

**Cause:** the NPU is running hot and lowers its clock to protect itself. FPS drops after sustained load, unlike the Gen 2 case, where it is low from the start. The severe form is `Throttling emergency occurred: Device-ID=0 NPU-ID=0.`

```text
Throttling notice: Device-ID=0 NPU-ID=0 temperature is N°C.
```

The line may not appear in the terminal: on dx_rt v3.4.2 the clock fell in testing without it, so check the clock directly.

**Check:** watch the NPU while the workload runs:

```bash
dxrt-cli -m 1
```

```text
NPU 0: voltage 750 mV, clock 1000 MHz, temperature 64'C
...
NPU 0: voltage 750 mV, clock 800 MHz, temperature 88'C
```

The temperature climbs while the workload runs; a clock below 1000 MHz means the NPU is throttling. In a test, 3 parallel `yolo26-x` processes took the NPU from 64 °C to 89 °C in about 4 min, and the clock fell from 1000 MHz to 800 MHz.

**Fix:** fit a heatsink or fan to the card and improve airflow in the case. A passive cooler is the minimum; an active cooler (fan) is better.

**Verify:** rerun the same workload for 10 min with `dxrt-cli -m 1` open. The clock stays at 1000 MHz and FPS holds steady.

Applies to: dx_rt v3.5.0.

## Runtime and version compatibility

Check the minimums in [Version compatibility for dx_rt v3.5.0](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#version-compatibility-for-dx_rt-v350) first. Upgrading the runtime, the driver and the firmware together avoids most of these errors. On a Sixfab APT install, `sudo apt update && sudo apt install sixfab-dx` upgrades the runtime and the driver; the firmware is updated separately ([firmware entry](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#firmware-version)).

### `The current device driver version is X.Y.Z. Please update your device driver to version 2.7.0 or higher.`

**Cause:** the runtime is newer than the installed `dxrt_driver` kernel module. dx_rt v3.5.0 needs driver 2.7.0 or later on Linux.

```text
The current device driver version is X.Y.Z.
Please update your device driver to version 2.7.0 or higher.
```

**Check:** print the installed driver version:

```bash
modinfo -F version dxrt_driver
```

**Fix:** upgrade the driver package and reboot:

```bash
sudo apt update
sudo apt install --only-upgrade dxrt-driver-dkms
sudo reboot
```

**Verify:** `modinfo -F version dxrt_driver` prints 2.7.0 or later, and `dxrt-cli -s` runs without the error.

Applies to: dx_rt v3.5.0.

### `The current pcie driver version is X.Y.Z. Please update your pcie driver to version 2.7.0 or higher.`

**Cause:** the `dx_dma` PCIe module is older than the runtime expects. dx_rt v3.5.0 needs 2.7.0 or later. `dx_dma` ships in the same package as `dxrt_driver`, so the fix is the same as for the [device driver message](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#device-driver-version).

```text
The current pcie driver version is X.Y.Z.
Please update your pcie driver to version 2.7.0 or higher.
```

**Check:** print the installed PCIe driver version:

```bash
modinfo -F version dx_dma
```

**Fix:** upgrade the driver package and reboot:

```bash
sudo apt update
sudo apt install --only-upgrade dxrt-driver-dkms
sudo reboot
```

**Verify:** `modinfo -F version dx_dma` prints 2.7.0 or later.

Applies to: dx_rt v3.5.0.

### `The current firmware version is X.Y.Z. Please update your firmware to version 2.7.6 or higher.`

**Cause:** the NPU’s on-board firmware is older than the runtime supports. dx_rt v3.5.0 needs firmware 2.7.6 or later.

```text
The current firmware version is X.Y.Z.
Please update your firmware to version 2.7.6 or higher.
```

**Check:** print the firmware version:

```bash
dxrt-cli -i
```

**Fix:** run the update script for the board; the two commands differ by one letter. AI HAT+ (DX-M1M):

```bash
curl -fsSL https://scripts.sixfab.com/firmware_update_deepx_m1m.sh | bash
```

Edge AI Expansion Board (DX-M1 M.2):

```bash
curl -fsSL https://scripts.sixfab.com/firmware_update_deepx_m1.sh | bash
```

To see which NPU the board carries, run `dxrt-cli -s` and check the `Device 0` line.

The script downloads the firmware from the open-source [DEEPX firmware repository](https://github.com/DEEPX-AI/dx_fw) and flashes it. The device resets after the update by default. Keep the power connected until the update finishes.

A card that reports `The current device firmware is X.Y.Z. The firmware must be version 2.0.0 or higher to update.` cannot update itself: open a support ticket.

**Verify:** `dxrt-cli -i` shows firmware 2.7.6 or later.

Applies to: dx_rt v3.5.0.

### `The model's compiler version(X.Y.Z) is not compatible in this RT library.`

**Cause:** the `.dxnn` was compiled with a DX-COM older than 1.18.1, which dx_rt v3.5.0 no longer loads.

```text
[dxrt-exception] Invalid model exception {"The model's compiler version(1.17.0-rc1) is not compatible in this RT library.
Please use a model file generated with a compiler version 1.18.1 or higher.":...buildTasksAndSubgraphMap} error-code=262
```

**Fix:** recompile the original ONNX with a current DX-COM, or download the model again from the [Sixfab Model Zoo](https://docs.sixfab.com/edge-ai/ai-model-deployment/sixfab-model-zoo/).

**Verify:** the new `.dxnn` loads and runs.

Applies to: dx_rt v3.5.0.

### `Model file format version N is not supported.`

**Cause:** the `.dxnn` uses a file format this runtime cannot read. dx_rt v3.5.0 loads formats v6 to v9. DX-COM 2.5.0 writes v9 only, so its models need dx_rt v3.5.0 or later.

```text
Model file format version N is not supported.
Please use model file version between 6 and 9.
```

**Check:** the output lists the model’s `.dxnn` format and compiler versions:

```bash
dxparse -m model.dxnn
```

**Fix:** upgrade to dx_rt v3.5.0, driver 2.7.0 and firmware 2.7.6 (the entries above), or recompile the original ONNX with the DX-COM version that matches the runtime. See the [DEEPX version compatibility matrix](https://developer.deepx.ai/tech-docs/DX-AllSuite/Version_Compatibility).

**Verify:** the `.dxnn` loads and runs.

Applies to: dx_rt v3.5.0.

### `version 'VERS_1.20.1' not found (required by libdxrt.so)`

**Cause:** the app loaded an ONNX Runtime older than 1.20.1. dx_rt links against `libonnxruntime.so.1` and needs ONNX Runtime 1.20.1 or later. If an older copy comes first in the library path, the app stops at load time, before dx_rt can print its own version message.

```text
run_model: /path/to/libonnxruntime.so.1: version `VERS_1.20.1' not found (required by /usr/local/lib/libdxrt.so)
```

dx_rt may also print its own message when it checks the version: `The current ONNX Runtime version is X.Y.Z. Please update your ONNX Runtime to version 1.20.1 or higher.`

**Check:** see which `libonnxruntime` the app loads:

```bash
ldd $(which run_model) | grep -i onnx
echo $LD_LIBRARY_PATH
```

`libonnxruntime.so.1` resolves to a path in `/usr/local/lib/`, for example `/usr/local/lib/libonnxruntime.so.1`. If it points to another folder, such as one listed in `LD_LIBRARY_PATH`, that copy is the old one.

**Fix:** take the old copy’s folder out of `LD_LIBRARY_PATH` (run `unset LD_LIBRARY_PATH`, and remove the line from `~/.bashrc` if it sets it). If the old copy sits in a system folder, remove it or replace it with ONNX Runtime 1.20.1 or later.

The `onnxruntime` pip package is a separate copy; upgrading it does not affect this error.

**Verify:** `ldd` shows ONNX Runtime 1.20.1 or later, and the app starts.

Applies to: dx_rt v3.5.0.

### `dxrt service is not running`

**Cause:** the `dxrt` systemd service is stopped or was never enabled. The runtime talks to the `dxrtd` daemon, which runs as this service. This is common after a manual build.

```text
$ run_model -m model.dxnn
...
Inference by loops: count=30
[dxrt-exception] Service input & output exception {dxrt service is not running} error-code=264
```

**Check:** the status is `inactive (dead)`, or the command prints `Unit dxrt.service could not be found.`

```bash
systemctl status dxrt
```

**Fix:** enable and start the service:

```bash
sudo systemctl enable --now dxrt
```

If the unit does not exist on an APT install, run `sudo apt install --reinstall libdxrt-bin`. After a manual build, rerun dx_rt `./build.sh` on the device. Either one creates `dxrt.service`.

**Verify:** `systemctl is-active dxrt` prints `active`.

Applies to: dx_rt v3.5.0.

### `Dynamic IPC task init failed` or `Ran out of NPU memory`

**Cause:** the models loaded on one card exceed its NPU memory. This usually comes from several large models, or from creating a new inference engine per thread or request. In a test, starting 17 copies of a 113 MB model on a 2 GB card triggered it; on dx_rt v3.4.2 the failing app printed:

```text
[dxrt-exception] Service input & output exception {"Dynamic IPC task init failed":/__w/dx_rt/dx_rt/dx_rt/lib/device_pool/service_layer.cpp:353:SignalTaskInitLocked} error-code=264
```

On dx_rt v3.5.0 the message also ends with a return code. Other dx_rt builds print `Ran out of NPU memory`, or `Ran out of NPU memory for task id=N`.

**Check:** watch the NPU memory fill while the apps run: `dxtop` shows it per device, for example `1.72 GiB / 1.92 GiB`. Then load the models one at a time and note which one triggers the error.

**Fix:** load fewer or smaller models per card, and reuse one inference engine per model. The DX-M1 comes in 1 GB and 2 GB NPU memory versions: run `dxrt-cli -s` and read the `Memory` line to see which one the board carries (a 2 GB card reports `1.92GiB`).

**Verify:** all models load and run.

Applies to: dx_rt v3.5.0.

## DX-COM model compilation

All examples compile with:

```bash
dxcom -m model.onnx -c config.json -o out/
```

Entries that apply to DX-COM 2.4.1 were reproduced on that version; on DX-COM 2.5.0 the messages may differ slightly. A successful compile writes `out/<model>.dxnn`. The configuration rules come from the [dx-compiler JSON configuration reference](https://github.com/DEEPX-AI/dx-compiler/blob/main/source/docs/02_05_JSON_File_Configuration.md).

### `Error in PhaseLabels.SURGERY: [UnknownError]` with YOLO model

**Cause:** DX-COM reports a PPU configuration it cannot apply with this message, and the message does not say which part is wrong. A wrong layer node name, a wrong `ppu.type` and a `ppu` block on a model without a YOLO-style detection head all produce the same error. Check the three in order.

```text
[ERROR] - Error in PhaseLabels.SURGERY: [UnknownError]
[ERROR] - Unknown error occurred during compilation. Please contact DEEPX.
```

**Check 1:** the layer node names. Names under `ppu.layer` must exist in the ONNX graph. Example names from the DEEPX docs (`Mul_441`, `Sigmoid_442`) do not match another export, and newer exporters use path-style names. Open the model in [Netron](https://netron.app) and trace back from the outputs:

- Type 0 (YOLOv3, YOLOv4, YOLOv5, YOLOv7): the detection-head Conv layers, for example `/model.105/m.0/Conv`.
- Type 1, YOLOv8 and later: back from the final `Concat`. `bbox` usually comes from a `Mul` or `Add`, `cls_conf` from a `Sigmoid`.

For a YOLOv8n exported with Ultralytics at 640 × 640, these names compiled with DX-COM 2.4.1; another export may use other names:

```json
"ppu": {
  "type": 1,
  "conf_thres": 0.25,
  "num_classes": 80,
  "layer": [ {"bbox": "/model.22/Mul_2", "cls_conf": "/model.22/Sigmoid"} ]
}
```

**Check 2:** `ppu.type` matches the model family.

| `ppu.type` | Architecture | Models | `layer` format |
| --- | --- | --- | --- |
| 0 | Anchor-based | YOLOv3, YOLOv4, YOLOv5, YOLOv7 | dict: Conv node → `num_anchors` |
| 1 | Anchor-free | YOLOX, YOLOv8 to YOLOv12 | list: `bbox`, `cls_conf` (+ `obj_conf` for YOLOX) |

**Check 3:** the model needs a PPU at all. The PPU only accelerates YOLO-style detection heads. Classification models (ResNet, MobileNet) and segmentation models (DeepLab, U-Net) do not use it: remove the whole `ppu` block from the config.

Also set `num_classes` to the model’s actual class count. YOLOv8-style heads output `[1, 4 + num_classes, N]`, so `[1, 84, 8400]` means 80 classes. The PPU has a class limit: for a model with a very large class count, remove the `ppu` block and run post-processing on the CPU.

**Verify:** the compile finishes and writes the `.dxnn`. A YOLOv8n with the config above compiled to a `.dxnn` file in testing.

Applies to: DX-COM 2.4.1.

### `Input names mismatch between model and config.`

**Cause:** the key under `inputs` must exactly match the ONNX input tensor name. Exporters use different names (`images`, `input`, `input.1`), so names copied from examples often do not match.

```text
[ERROR] - Error in PhaseLabels.PREPARE: ConfigInputError
[ERROR] - Input names mismatch between model and config.
```

**Check:** print the model’s input names; the output is a list such as `['images']`:

```bash
python3 -c "import onnx; m=onnx.load('model.onnx'); print([i.name for i in m.graph.input])"
```

**Fix:** use that name as the key under `inputs`:

```json
"inputs": { "images": [1, 3, 640, 640] }
```

**Verify:** the compile finishes.

Applies to: DX-COM 2.4.1.

### `ConfigInputError: Input shape mismatch` (batch size is not 1)

**Cause:** DX-COM takes the input shape from the config and checks it against the model. The batch dimension must be 1 in both: a model with a symbolic `batch` dimension compiles as long as the config says 1, and a config that says anything else fails.

```text
[ERROR] - Error in PhaseLabels.PREPARE: ConfigInputError
[ERROR] - Input shape mismatch for input 'images' at dimension 0: model shape (1, 3, 64, 64), config shape [2, 3, 64, 64].
```

**Check:** print the model’s input shape and compare it with the `inputs` entry in the config. The first dimension in the config must be `1`:

```bash
python3 -c "import onnx; m=onnx.load('model.onnx'); print(m.graph.input[0].type.tensor_type.shape)"
```

**Fix:** set the batch dimension in the config to 1:

```json
"inputs": { "images": [1, 3, 640, 640] }
```

A model exported with a fixed batch other than 1 also fails to compile: re-export it with a static batch of 1. With Ultralytics:

```python
from ultralytics import YOLO
YOLO("yolov8n.pt").export(format="onnx", dynamic=False, batch=1)
```

Export with `dynamic=False`. A YOLOv8n exported with `dynamic=True` (dynamic batch, height and width) failed with `Error in PhaseLabels.SURGERY: [UnknownError]` in testing, even with a fixed shape in the config.

**Verify:** the compile finishes and writes the `.dxnn`.

Applies to: DX-COM 2.4.1.

### `The dataloader provides a single input, but the model expects 2 inputs.`

**Cause:** `dxcom` with a JSON config supports a single input only. Multi-input models need the `dx_com` Python module with a torch DataLoader.

```text
[ERROR] - Error in PhaseLabels.SURGERY: DataLoaderError
[ERROR] - The dataloader provides a single input, but the model expects 2 inputs.
```

**Check:** the input-name command in [`Input names mismatch between model and config.`](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#input-names-mismatch) prints more than one name.

**Fix:** compile with the `dx_com` Python module and a torch DataLoader. `batch_size` must be 1; for a multi-input model, return each item as a dict keyed by the ONNX input name. This example follows the DEEPX documentation (“Python Wheel Package Usage” in [Execution of DX-COM](https://github.com/DEEPX-AI/dx-compiler/blob/main/source/docs/02_06_Execution_of_DX-COM.md)):

```python
import dx_com
from torch.utils.data import Dataset, DataLoader

class CustomDataset(Dataset):
    def __init__(self):
        # Initialize your dataset
        pass

    def __len__(self):
        return len(self.data)

    def __getitem__(self, idx):
        # Multi-input: return a dict keyed by ONNX input node name (recommended).
        return self.data[idx]

dataset = CustomDataset()
dataloader = DataLoader(dataset, batch_size=1, shuffle=True)

dx_com.compile(
    model="model.onnx",
    output_dir="./compiled",
    dataloader=dataloader,
)
```

Apply the same preprocessing inside `__getitem__` that the app uses at inference time. The JSON `preprocessings` block is not used when a DataLoader is passed.

Applies to: DX-COM 2.4.1.

### `Given extensions ['jpg'] do not exist`

**Cause:** either `dataset_path` is wrong, or the files’ extensions are not in `file_extensions`. Treat the match as case-sensitive: `jpg` does not cover `JPG`.

```text
[ERROR] - Error in PhaseLabels.PREPARE: DataNotFoundError
[ERROR] - Given extensions ['jpg'] do not exist in /path/to/dataset.
```

**Check:** count the files by extension. The output shows zero files, or extensions missing from the list (for example `100 JPG`):

```bash
find [DATASET_PATH] -type f | sed 's/.*\.//' | sort | uniq -c
```

**Fix:** list every extension the dataset uses:

```json
"file_extensions": ["jpg", "JPG", "jpeg", "JPEG", "png"]
```

**Verify:** calibration runs over `calibration_num` samples and the compile finishes.

Applies to: DX-COM 2.4.1.

### `Error in PhaseLabels.QUANTIZATION: [UnknownError]` with `enhanced_scheme` and `--use_q_pro`

**Cause:** automatic Q-PRO (`--use_q_pro`) and a manual `enhanced_scheme` cannot be combined, and DX-COM does not say so in the message. Both pick a DXQ quantization scheme: each option compiles on its own, and together they fail.

```text
[ERROR] - Error in PhaseLabels.QUANTIZATION: [UnknownError]
[ERROR] - Unknown error occurred during compilation. Please contact DEEPX.
```

**Check:** look for `enhanced_scheme` in the config and `--use_q_pro` in the command.

**Fix:** keep `--use_q_pro` and delete `enhanced_scheme` from the config, or keep `enhanced_scheme` and drop the flag. `enhanced_scheme` needs DX-COM v2.1.0 or later.

**Verify:** the compile finishes.

Applies to: DX-COM 2.4.1.

### `PPU type 2 post-processing is deprecated`

**Cause:** PPU type 2 is deprecated as of DX-Compiler v2.4.0 and is to be removed in a future release. It still compiles and prints a warning; on DX-Compiler v2.4.x the warning reads:

```text
[WARNING] - PPU type 2 post-processing is deprecated and will be removed in a future release. Use dx_com.pre_optimize(model, passes={'yolo_postprocess': {...}}) instead.
```

**Fix:** move to the [`dx_com.pre_optimize()` API](https://github.com/DEEPX-AI/dx-compiler/blob/main/source/docs/02_09_Pre_Optimize_API.md). It does the same TopK-first optimization and adds instance segmentation, pose and YOLO26 support.

DX-COM 2.5.0 changed this API. The pass is now `yolo_dfl_postprocess`, and the old `yolo_postprocess` name raises an error. `task` is required (`base`, `seg` or `pose`), and `input_height` and `input_width` were removed: passing them raises `ValueError`.

This example follows the API page for DX-COM 2.5.0. Replace the layer names with the model’s:

```python
import onnx
import dx_com

model = onnx.load("model.onnx")
optimized = dx_com.pre_optimize(model, passes={
    "yolo_dfl_postprocess": {
        "task": "base",
        "layers": [
            {"bbox": "bbox_head_p3", "cls_conf": "cls_head_p3"},
            {"bbox": "bbox_head_p4", "cls_conf": "cls_head_p4"},
            {"bbox": "bbox_head_p5", "cls_conf": "cls_head_p5"},
        ],
        "num_classes": 80,
        "topk": 512,
    },
})
dx_com.compile(model=optimized, config="config.json", output_dir="./output")
```

**Verify:** the new flow compiles without the warning.

Applies to: DX-Compiler v2.4.0 and later.

### Low accuracy after compiling, with `[INFO] - Added nodes:` in log

**Cause:** the compiler folded the preprocessing into the NPU graph, and the host code applies it a second time.

```text
[INFO] - Added nodes: Div(x=255)
```

**Check:** search the compile log for the line:

```bash
grep "Added nodes" [COMPILE_LOG]
```

**Fix:** remove the listed operations from the host-side preprocessing. Before:

```python
img = img / 255.0
img = (img - mean) / std
output = ie.run(img)
```

After:

```python
output = ie.run(img)   # the NPU now does /255 and normalize
```

Keep every step the log does not list (resize, letterbox, color conversion).

**Verify:** detections match the original ONNX on the same image.

Applies to: DX-COM 2.4.1 and 2.5.0, dx_rt v3.5.0.

## Frequently asked questions

### How do I check whether the DEEPX DX-M1 is detected on my Raspberry Pi 5?

Run `lspci -d 1ff4:`: one line means the card is on the PCIe bus. Then run `sudo ./sanity_check.sh` from the driver repository; `** Sanity check PASSED!` confirms the driver, the device file and PCIe communication. See [First checks](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#first-checks).

### Do I need PCIe Gen 3 for the AI HAT+?

Yes, for full NPU throughput, and on some setups the runtime does not see the card without it. Add `dtparam=pciex1` and `dtparam=pciex1_gen=3` to `/boot/firmware/config.txt` and reboot ([Low FPS from the start](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#low-fps-pcie-link-at-gen-2)).

### Which driver and firmware versions work with dx_rt v3.5.0?

`dxrt_driver` 2.7.0 or later, `dx_dma` 2.7.0 or later, and NPU firmware 2.7.6 or later. Models must be compiled with DX-COM 1.18.1 or later and use `.dxnn` format v6 to v9. See [Version compatibility for dx_rt v3.5.0](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#version-compatibility-for-dx_rt-v350).

### Why does the driver stop working after `apt full-upgrade`?

A kernel update needs a DKMS rebuild of the DEEPX modules, and that rebuild needs matching kernel headers. Install `linux-headers-rpi-2712` (Raspberry Pi 5), then run `sudo dkms autoinstall` ([dxrt_driver module is NOT loaded](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#dxrt-driver-module-is-not-loaded)).

### Should I install the driver with DKMS or build it manually?

Use the DKMS package (`dxrt-driver-dkms`). It rebuilds the modules automatically on kernel updates. Manual builds put modules in a different folder and conflict with the package ([Manual installation detected](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#manual-installation-detected)), so pick one method.

### Why does FPS drop after a few minutes on the DEEPX DX-M1?

The NPU is most likely thermal throttling. Check the temperature with `dxrt-cli -m 1` while the workload runs, and add a heatsink or fan if it keeps climbing ([Throttling notice](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#throttling-notice)). If FPS is low from the first frame instead, check the PCIe link speed first ([Low FPS from the start](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#low-fps-pcie-link-at-gen-2)).

### How do I check which dx_rt, driver and firmware versions are installed?

Run `dxrt-cli -s`. It prints the runtime, the RT driver, the PCIe driver and the firmware versions. To check each one separately, use `modinfo -F version dxrt_driver`, `modinfo -F version dx_dma` and `dxrt-cli -i` (firmware), and compare the results with [Version compatibility for dx_rt v3.5.0](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#version-compatibility-for-dx_rt-v350).

### Why does my app find the DEEPX DX-M1 only with sudo?

The udev rule that opens `/dev/dxrt*` to all users is missing, usually after a manual driver install. Run `sudo ./install-udev_rule.sh` from `dx_rt_npu_linux_driver/modules`, then check that `ls -l /dev/dxrt0` shows `crw-rw-rw-` ([/dev/dxrt0 has incorrect permissions](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#dev-dxrt0-has-incorrect-permissions)).

### Why does my .dxnn model stop loading after a dx_rt upgrade?

dx_rt v3.5.0 only loads models compiled with DX-COM 1.18.1 or later, in `.dxnn` format v6 to v9. Recompile the original ONNX with a current DX-COM, or download the model again from the Sixfab Model Zoo ([compiler version is not compatible](https://docs.sixfab.com/guides/deepx-dx-m1-errors-fixes-raspberry-pi-5/#compiler-version-not-compatible)).

## Get help from community

Post an error that is not on this page in the [Sixfab Community](https://community.sixfab.com/t/deepx-dx-m1-on-raspberry-pi-5-the-most-common-errors-and-fixes/3733). Other users and the Sixfab team read it, and new errors the team can reproduce are added to this page. Include:

1. The full terminal output, not only the last line.
2. The Raspberry Pi model and OS (`cat /etc/os-release`), and `uname -r`.
3. Whether the setup uses the AI HAT+ or the Edge AI Expansion Board.
4. The output of `dxrt-cli -s` (the dx_rt and driver versions), or of `lspci -d 1ff4:` if that fails.
5. The `sanity/result/dxrt_issue_bundle_<timestamp>.tar.gz` file from `sudo ./sanity_check.sh`.

For a card that looks faulty (the LED stays light blue or off with a known-good cable, or the board’s PCIe interface is not detected), open a support ticket instead and attach the same files.

## Next steps

- [Get started with AI HAT+](https://docs.sixfab.com/edge-ai/ai-hat-plus/quickstart/): Mount the AI HAT+, install the DEEPX runtime, check the driver and firmware versions and run a detection demo on the NPU.
- [AI HAT+ troubleshooting](https://docs.sixfab.com/edge-ai/ai-hat-plus/troubleshooting/): Symptoms and fixes for the AI HAT+: NPU detection, runtime, PCIe link, power, temperature and inference results.
- [Edge AI Expansion Board troubleshooting](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/troubleshooting/): Symptoms and fixes for the Expansion Board: NPU detection, PCIe cable and pogo pins, SSD and modem, power and temperature.
- [DEEPX version compatibility matrix](https://developer.deepx.ai/tech-docs/DX-AllSuite/Version_Compatibility): Match dx_rt, driver, firmware and DX-COM versions across DEEPX releases.
