# Upgrade the Qualcomm AI Engine Direct SDK (QNN)

You can upgrade the version of Qualcomm AI Engine Direct SDK (QNN) to a specified version.

To upgrade the Qualcomm AI Engine Direct SDK to a specified version, follow these steps:

**Steps:**

1. Find the `<release version>` of Qualcomm AI Engine Direct SDK on
Qualcomm Software Center (QSC).

    1. Go to [QSC](https://softwarecenter.qualcomm.com/#/), search and enter the **Qualcomm AI Engine Direct SDK** page.
    2. Choose **Linux** under **OS** and find a version from the **Version** dropdown list.
2. Download the required version SDK by running the following command:

Note

Replace `${QNPSDK_SRC_VER}` with the required version.

wget https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v${QNPSDK_SRC_VER}.zip
        Copy to clipboard

    **Example:**

wget https://softwarecenter.qualcomm.com/api/download/software/qualcomm_neural_processing_sdk/v2.22.0.240425.zip
        Copy to clipboard
3. Get the `sha256sum` value of the QNN zip file corresponding to the specified release version with this command:

sha256sum v${QNPSDK_SRC_VER}.zip
        Copy to clipboard

    **Example:**

sha256sum v2.22.0.240425.zip
        Copy to clipboard
4. Update the following variables in the file `<workspace>/layers/meta-qcom-robotics-sdk/recipes-sdk/function-sdks/qti-qnn.bb`.

    1. Update `QNPSDK_SRC_VER="$release version "`.

        **Example:**

QNPSDK_SRC_VER="2.22.0.240425"
            Copy to clipboard
    2. Update `QNPSDK_SRC_SHID` with the `sha256sum` value.

        **Example:**

QNPSDK_SRC_SHID="d68ed4d92187101a9759384cbce0a35bd383840b2e3c3c746a4d35f99823a75a"
        Copy to clipboard
5. After upgrade, recompile the QIRP SDK using the steps in [Build with Dockerfile](https://docs.qualcomm.com/doc/80-70017-265/topic/compile_3_2_3.html#compile-3-2-3).

Last Published: Dec 30, 2024

[Previous Topic
Upgrade the Qualcomm IM SDK](https://docs.qualcomm.com/bundle/publicresource/80-70017-265/topics/upgrade-the-qim-product-sdk_7_2.md) [Next Topic
Troubleshooting](https://docs.qualcomm.com/bundle/publicresource/80-70017-265/topics/troubleshooting_8.md)