Migration guide for nRF Connect SDK v2.8.0 (Working draft)

This document describes the changes required or recommended when migrating your application from nRF Connect SDK v2.7.0 to nRF Connect SDK v2.8.0.

Required changes

The following changes are mandatory to make your application work in the same way as in previous releases.

Samples and applications

This section describes the changes related to samples and applications.

nRF54L Series

Serial LTE Modem (SLM)

  • The handling of Release Assistance Indication (RAI) socket options has been updated in the #XSOCKETOPT command. The individual RAI-related socket options have been consolidated into a single SO_RAI option. You must modify your application to use the new SO_RAI option with the corresponding value to specify the RAI behavior. The changes are as follows:

    The SO_RAI_NO_DATA, SO_RAI_LAST, SO_RAI_ONE_RESP, SO_RAI_ONGOING, and SO_RAI_WAIT_MORE options have been replaced by the SO_RAI option with values from 1 to 5.

    Replace the following commands in your application code if they were used previously:

    • AT#XSOCKETOPT=1,50, with AT#XSOCKETOPT=1,61,1 to indicate RAI_NO_DATA.

    • AT#XSOCKETOPT=1,51, with AT#XSOCKETOPT=1,61,2 to indicate RAI_LAST.

    • AT#XSOCKETOPT=1,52, with AT#XSOCKETOPT=1,61,3 to indicate RAI_ONE_RESP.

    • AT#XSOCKETOPT=1,53, with AT#XSOCKETOPT=1,61,4 to indicate RAI_ONGOING.

    • AT#XSOCKETOPT=1,54, with AT#XSOCKETOPT=1,61,5 to indicate RAI_WAIT_MORE.

SUIT DFU for nRF54H20

  • The manifest sequence number is no longer configured through a sysbuild Kconfig option. The values are now read from the VERSION file, used for Application version management in Zephyr and the nRF Connect SDK. This change to the sysbuild Kconfig option requires the following updates in the SUIT templates for your project:

    • Remove from all templates:

      suit-manifest-sequence-number: {{ sysbuild['config']['SB_CONFIG_SUIT_ENVELOPE_SEQUENCE_NUM'] }}
      
    • Add the line that corresponds to the manifest name, that is APP_ROOT_SEQ_NUM for the application root manifest:

      suit-manifest-sequence-number: {{ APP_ROOT_SEQ_NUM }}
      

    If the value of the sequence number was changed in your application, append the following line to the VERSION file:

    APP_ROOT_SEQ_NUM = <N>
    

    For the list of all variables, set through the VERSION, refer to the How to customize the SUIT DFU process.

Nordic Secure Immutable Bootloader (NSIB, B0, or B0n)

Custom printing has been dropped in favor of using the logging subsystem, with output printed out to the default logging device. The CONFIG_SECURE_BOOT_DEBUG Kconfig option has been removed. To disable logging in B0 or B0n, set the CONFIG_LOG option to n. To send logs over RTT instead of UART, apply the following settings:

nRF70 Series

  • The nRF70 Series support is now part of Zephyr upstream and it requires the following changes:

  • The nRF70 Series driver namespace has been renamed from NRF700X to NRF70. For example, CONFIG_NRF700X_RAW_DATA_RX to CONIFG_NRF70_RAW_DATA_RX. Update your application configurations to use the new namespace.

  • The nRF70 Series driver now uses per-module kernel heap with a higher default. If a sample or an application uses the kernel heap but uses less than the default size, a build warning is displayed. Use the CONFIG_HEAP_MEM_POOL_IGNORE_MIN Kconfig option and enable it to suppress the warning.

  • The WPA supplicant is also now part of Zephy upstream and it requires the following changes:

  • The WPA supplicant namespace has been renamed from WPA_SUPP to WIFI_NM_WPA_SUPPLICANT. For example, CONFIG_WPA_SUPP=y to CONFIG_WIFI_NM_WPA_SUPPLICANT=y. Update your application configurations to use the new namespace.

Libraries

This section describes the changes related to libraries.

Wi-Fi®

  • For Wi-Fi credentials library:

    • Syntax for add command has been modified to support getopt model.

      For example, the following command with old syntax: wifi_cred add SSID WPA2-PSK password should be replaced with the following command with new syntax: wifi_cred add -s SSID -k 1 -p password. wifi_cred add --help command will provide more information on the new syntax.

AT command parser

nRF Cloud

nRF Security

  • The CONFIG_CRACEN_LOAD_KMU_SEED Kconfig option was renamed to CONFIG_CRACEN_IKG_SEED_LOAD.

  • The CONFIG_MBEDTLS_CIPHER_MODE_CFB and CONFIG_MBEDTLS_CIPHER_MODE_OFB Kconfig options have been removed. Use other cipher modes instead.