Quick Manual - Raspberry Pi 5
Revision v1.3 (2026.11.06)
1. Introduction
The DX-M1 (& DX-M1M) is an entry-to-mid level edge NPU designed for high-performance AI acceleration. This manual provides technical guidance for integrating the DEEPX DX-M1 (& DX-M1M) Accelerator Card with the Raspberry Pi 5 via PCIe M.2. It covers hardware architecture, installation with thermal management, and the software setup required for AI inference, including sample applications and real-time monitoring via dxtop.
2. System Overview
This chapter provides a technical overview of the DEEPX DX-M1 accelerator and its integration environment.
2.1. Hardware Architecture: DX-M1 M.2
The system utilizes a high-performance heterogeneous architecture specifically engineered to support demanding edge AI workloads.
DX-M1 M.2 Accelerator Card Specifications
The DEEPX DX-M1 is a high-efficiency AI inference accelerator designed for seamless integration into edge computing environments through its optimized internal architecture.

Figure 1. DX-M1 M.2 Architecture
Table. DX-M1 M.2 Technical Specifications
| Features | Details |
|---|---|
| AI Performance | 25 TOPS (INT8) |
| Host Interface | PCIe Gen3 x4 (Supports Gen 1/2/3 & x1/x2/x4) |
| Memory | 4GB LPDDR5 (5600 MT/s) |
| Power Consumption | 1W (min) ~ 5W (max) |
| Form Factor | M.2 2280 (M Key), 22 x 80 mm |
| OS Support | Windows 11/10 Debian-based Linux (Ubuntu 24.04/22.04/20.04 LTS, Raspberry Pi OS) Yocto Project |
| AI Frameworks | Ultralytics, PyTorch, TensorFlow, ONNX, Keras |
| System Support | x86 and ARM-based Architectures |
2.2. Hardware Installation and I/O Setup
This section outlines the physical integration of the DEEPX DX-M1 accelerator. Follow these steps to ensure the host system and hardware components are properly configured for a stable edge AI environment.
Step-by-Step Connection Guide
Step 1. Raspberry Pi 5 Initial Setup
Complete the basic OS and power configuration by referring to the official documentation:
- Getting started with your Raspberry Pi: https://www.raspberrypi.com/documentation/computers/getting-started.html
Step 2. Connecting the DX-M1 M.2 Module
Once the host is prepared, install the DX-M1 M.2 NPU module via the PCIe M.2 HAT as shown in Figure 2.

Figure 2. DEEPX DX-M1 AI Accelerator for Raspberry Pi 5
Step 3. Connecting the Raspberry Pi Camera Module 3 (Wide)
To run the camera input demos, connect the Raspberry Pi Camera Module 3 (Wide) (Figure 3) to the CAM/DISP 0 or CAM/DISP 1 connector on the Raspberry Pi 5.

Figure 3. Raspberry Pi Camera Module 3 (Wide)
- Power off the Raspberry Pi 5 and disconnect the power supply.
- Gently lift the latch of the
CAM/DISP 0orCAM/DISP 1connector. - Insert the camera cable fully and straight into the connector.
- Press the latch down to secure the cable, as shown in Figure 4.

Figure 4. Camera Cable Connected to the Raspberry Pi 5 Camera Connector
The Raspberry Pi 5 uses mini 22-pin camera connectors, while the cable included with the Camera Module 3 is a standard 15-pin cable. A Standard-to-Mini camera cable is required to connect the camera to the Raspberry Pi 5.
3. Getting Started
This chapter provides a concise guide to configuring the DEEPX DX-M1 development environment. It covers the essential steps from verifying system requirements to executing your first AI inference benchmarks.
3.1. System Prerequisites
Before proceeding with the driver installation, ensure the host system is properly configured by following these environment preparation steps.
Environment Preparation
Step 1. Install Raspberry Pi OS
- Download and install the OS using the Raspberry Pi Imager.
- Link: https://www.raspberrypi.com/software/
Step 2. Connect to the Internet
- Verify that the Raspberry Pi has an active Internet connection.
- A stable connection is required to access external repositories and download necessary dependencies during the setup process.
Step 3. Connect and Verify the Camera
- Connect the Raspberry Pi Camera Module 3 (Wide) as described in Section 2.2, Step 3.
- Run the following command to verify that the camera is recognized.
$ rpicam-hello --list-cameras
If the camera is recognized correctly, imx708_wide is listed in the output.
3.2. Software Setup and Demo Execution
This section provides a brief guide to installing the necessary drivers and executing AI inference benchmarks using the DEEPX DX-M1 accelerator.
3.2.1. Install DEEPX DX-M1 Driver and Runtime
Follow these steps to download and install the DEEPX Runtime (DX-RT) library, known as libdxrt, along with the necessary driver modules.
Step 1. Download the Debian Packages
Execute the following commands to download the latest Debian packages.
# Download the Debian packages to the Downloads folder
$ wget -P ~/Downloads https://github.com/DEEPX-AI/dx_rt/raw/refs/heads/main/release/3.5.0/libdxrt-bin_3.5.0_arm64.deb
$ wget -P ~/Downloads https://github.com/DEEPX-AI/dx_rt_npu_linux_driver/raw/refs/heads/main/release/2.7.0/dxrt-driver-dkms_2.7.0-2_all.deb
Step 2. Installation of DXRT and Driver
Install the DEEPX Runtime (DX-RT) library and the NPU driver.
$ sudo apt install -y ~/Downloads/dxrt-driver-dkms_2.7.0-2_all.deb
$ sudo apt install -y ~/Downloads/libdxrt-bin_3.5.0_arm64.deb

Figure 5. DEEPX Runtime Library (libdxrt) Installation Progress
Step 3. Hardware Status Verification
Confirm that the DEEPX DX-M1 module is correctly interfaced and recognized by the system.
$ dxcli -s

Figure 6. Hardware Verification using dxcli -s Command
3.2.2. [Optional] Firmware Update
To ensure full compatibility between the libdxrt library and the hardware, the device firmware must meet the minimum version requirements.
Prerequisites for Update
Perform a firmware update if any of the following conditions occur.
- Version Mismatch: The current firmware version is lower than the minimum requirement.
- Execution Error: A
[dxrt-exception] Invalid operationerror occurs during model execution.
Firmware Download
The latest firmware binaries and guides are available at the official DEEPX GitHub repository.
Quick Update Procedure
After downloading the firmware, execute the following commands.
# 1. Stop service
$ sudo systemctl stop dxrt.service
# 2. Update firmware
$ dxcli -u <path_to_fw_bin>
# 3. Restart service
$ sudo systemctl start dxrt.service
Do not power off the device during the update to prevent permanent hardware damage.
3.2.3. Execution of Sample Applications
A. AI Inference Demo (dx_app)
The dx_app demonstrates real-time AI inference capabilities. The execution script automatically handles the acquisition of sample video assets and pre-compiled models.
$ mkdir ~/sample
$ cd ~/sample
$ git clone --recurse-submodules https://github.com/DEEPX-AI/dx_app.git
$ cd dx_app
$ ./install.sh --all --venv_path ./venv
$ source ./venv/bin/activate
$ ./run_demo.sh

Figure 7. dx_app Video Demo: Demo Menu Selection (terminal) and Real-time Object Detection Result (result window)
The default execution mode (cpp_sync) runs without additional packages. To use the Python execution modes (py_sync, py_async, py_sync_cpp_postprocess, py_async_cpp_postprocess), install the dx_engine Python package in the activated virtual environment. The wheel that matches your Python version is selected automatically.
$ pip install dx_engine --find-links /usr/share/libdxrt-bin/python
Camera Input Demo (dx_app)
The run_demo.sh script supports video and image inputs only. To run real-time inference on a camera input, execute an example directly with the -c <camera index> option.
$ cd ~/sample/dx_app
$ source ./venv/bin/activate
$ ./bin/yolo11-n_640x640_async -c 0
The example automatically detects the connected camera, either a USB webcam or the Raspberry Pi camera, and runs with it. For the Raspberry Pi camera, use the camera index shown by rpicam-hello --list-cameras (for example, 0).

Figure 8. dx_app Camera Input Demo: Camera Inference Command (terminal) and Real-time Object Detection Result (result window)
If a USB webcam and the Raspberry Pi camera are connected at the same time, -c 0 opens the USB webcam. To use the Raspberry Pi camera, disconnect the USB webcam.
B. GStreamer Plugin Demo (dx_stream)
The dx_stream sample is optimized for high-performance video streaming pipelines utilizing the GStreamer framework.
$ cd ~/sample
$ git clone --recurse-submodules https://github.com/DEEPX-AI/dx_stream.git
$ cd dx_stream
$ ./install.sh
$ ./build.sh
$ ./run_demo.sh

Figure 9. dx_stream GStreamer Pipeline: Demo Menu Selection (terminal) and Multi-Object Detection Result (result window)
Camera Input Demo (dx_stream)
When the Raspberry Pi Camera Module 3 (Wide) is connected, run_demo.sh lists additional [Raspberry Pi Camera] demos. Enter one of the following keys at the demo menu to run inference on the camera input.
c: Object Detection (YOLO26n)p: Pose Estimation (YOLO26n_Pose)s: Instance Segmentation (YOLO26n_Seg)d: Depth Estimation (YOLO26n_Depth)
$ cd ~/sample/dx_stream
$ ./run_demo.sh

Figure 10. dx_stream Camera Input Demo: Demo Menu Selection (terminal) and Real-time Object Detection Result (result window)
The demo menu waits for 10 seconds. If no selection is made within this time, demo 0 runs by default.
3.2.4. System Monitoring
NPU Utilization (dxtop)
The dxtop utility provides a real-time CLI (Command Line Interface) to monitor NPU utilization, temperature, and operational status.
$ dxtop

Figure 11. Real-time NPU Resource Monitoring via dxtop
3.2.5. PCIe Gen3 Configuration
To maximize the throughput of the DX-M1 accelerator, it is recommended to manually force the interface to PCIe Gen3.
Manual Configuration via config.txt
This method involves editing the system configuration file to enforce Gen3 speeds manually.
Step 1. Open the configuration file
$ sudo nano /boot/firmware/config.txt
In older versions of the OS, the path may be /boot/config.txt.
Step 2. Add or modify the PCIe parameters
# Enable the PCIe external connector (M.2 HAT)
dtparam=pciex1
# Force PCIe Gen3 speed (Required for 25 TOPS performance)
dtparam=pciex1_gen=3
Step 3. Save and Exit
Press Ctrl + O, then Enter to save the changes, and press Ctrl + X to exit the editor.
Step 4. Reboot the system
$ sudo reboot
Verification of PCIe Link Speed
After rebooting, you can verify if the PCIe Gen3 configuration has been applied correctly by checking the Link Status.
$ sudo lspci -vv | grep -i LnkSta:
- If the output shows Speed 8GT/s, the system is successfully operating at PCIe Gen3 speeds.
- If the output shows Speed 5GT/s, it is operating at PCIe Gen2.
To achieve the maximum AI performance of 25 TOPS, the link speed must be confirmed as 8GT/s.
Appendix. Troubleshooting
Q1. Firmware Version Mismatch Error Message
Issue Description
When executing the AI demo application, the program terminates with a red [dxrt-exception] error message. This occurs when the current hardware firmware version is incompatible with the runtime library (libdxrt) requirements.

Figure 12. Firmware Version Mismatch Error in Demo Execution
Cause
- Version Conflict: The system has detected that the installed firmware is lower than the minimum required version needed.
Solution
- To resolve this, you must perform a manual firmware upgrade to ensure the hardware can communicate correctly with the latest SDK features. Refer to Section 3.2.2. [Optional] Firmware Update.