Migration guide to Zephyr v4.6.0 (Working Draft)

This document describes the changes required when migrating your application from Zephyr v4.5.0 to Zephyr v4.6.0.

Any other changes (not directly related to migrating applications) can be found in the release notes.

Common

  • The scripts/footprint/size_report, scripts/footprint/compare_footprint, and scripts/kconfig/diffconfig scripts have been renamed to scripts/footprint/size_report.py, scripts/footprint/compare_footprint.py, and scripts/kconfig/diffconfig.py, respectively. Users must update their invocations.

Build System

Kernel

  • k_queue_cancel_wait() and k_fifo_cancel_wait now wake every k_poll() call waiting on the queue with -EINTR and submit every k_work_poll_submit() item waiting on it, not only the first. Code that treated a cancel as addressed to one waiter must re-check its own condition.

  • z_clock_hw_cycles_per_sec can no longer be assigned. Timer drivers and SoC code that set the system timer frequency at run time must call z_sys_clock_hw_cycles_per_sec_set() instead.

Boards

  • On the Nordic nRF54L and nRF71 Series SoCs, the push area that the Key Management Unit (KMU) of CRACEN uses to push keys is now reserved at the start of the SRAM by the kmu_push_area devicetree node of the SoC. The zephyr,sram chosen node of the in-tree boards is now cpuapp_sram_app, a child node of cpuapp_sram that starts after the push area. The nodes are not present when USE_NON_SECURE_ADDRESS_MAP is used. Out-of-tree boards that use the CRACEN KMU key push should be updated, as otherwise the application RAM overlaps the push area without any diagnostic. Boards that do not use it can keep using the whole RAM:

    • Replace zephyr,sram = &cpuapp_sram with zephyr,sram = &cpuapp_sram_app.

    • To limit the SRAM available to the application, resize cpuapp_sram_app and keep its offset, for example reg = <0x60 (DT_SIZE_K(184) - 0x60)>. Changing reg of cpuapp_sram no longer changes the SRAM that zephyr,sram refers to.

    • If the memory layout deletes and redefines cpuapp_sram, assign the redefined node to zephyr,sram and leave the first 0x60 bytes of the SRAM free.

    • Remove custom nodes and linker sections that reserve the push area, such as nrf_kmu_reserved_push_area. They would overlap the kmu_push_area node.

  • On Nordic SoCs, CONFIG_TRUSTED_EXECUTION_NONSECURE no longer enables CONFIG_BUILD_WITH_TFM by default, as TF-M is not the only possible secure firmware. The in-tree /ns board targets now enable TF-M themselves. Out-of-tree non-secure board targets that use TF-M must do the same, in their Kconfig.defconfig:

    configdefault BUILD_WITH_TFM
            default y if BOARD_MY_BOARD_NRF9160_NS
    
  • STM32 Minimum Development Board now declares two SoCs, so the SoC qualifier is mandatory. Applications and test configurations that used stm32_min_dev, stm32_min_dev@blue or stm32_min_dev@black must use stm32_min_dev@blue/stm32f103x8 or stm32_min_dev@black/stm32f103x8 instead. stm32_min_dev_defconfig was renamed accordingly to stm32_min_dev_stm32f103x8_defconfig.

  • The Adafruit ESP32 Feather board target adafruit_feather_esp32 has been renamed to Adafruit Feather ESP32 V2 (adafruit_feather_esp32_v2) to match the manufacturer’s naming: Adafruit ESP32 Feather V2. The old adafruit_feather_esp32 board target is deprecated and now automatically redirects to the new target with a warning. Update board targets from adafruit_feather_esp32/esp32/procpu and adafruit_feather_esp32/esp32/appcpu to adafruit_feather_esp32_v2/esp32/procpu and adafruit_feather_esp32_v2/esp32/appcpu respectively. The new board defines no revisions, so drop the @2 revision suffix if it was specified: adafruit_feather_esp32@2 is not redirected and fails with an invalid board revision error.

  • PSOC™ 4100S Max pioneer kit: the console moved from SCB2 to SCB1 on the same pins (P0.4, P0.5), and its node label changed from uart2 to uart1. The spi1 node on SCB1 (P2.0 to P2.2) was removed. SCB2 is now arduino_spi on the Arduino header pins D11 to D13 (P10.0 to P10.2), disabled by default.

  • LiteX: The deprecated CONFIG_LITEX_CSR_DATA_WIDTH Kconfig option has been removed. Only the 32 bit CSR data width is supported. Designs that use an 8 bit CSR data width must be rebuilt with a 32 bit CSR data width. (GitHub #124793)

  • The Andes AE350 SoC is now provided per AndesCore core, for example ae350_a25 for the A25 core. The ae350 SoC and CONFIG_SOC_AE350 are deprecated and will be removed in a future release. Kconfig, CMake and code checking CONFIG_SOC_AE350 should check CONFIG_SOC_SERIES_AE350 instead. (GitHub #122288)

    • The AE350 board targets of ADP-XC7K and Tang Mega 138K Pro Dock have been renamed after the core. The previous board targets are deprecated and map to the new board targets:

      • adp_xc7k/ae350 to adp_xc7k/ae350_a25

      • adp_xc7k/ae350/clic to adp_xc7k/ae350_d23/clic

      • tang_mega_138k_pro_dock/ae350 to tang_mega_138k_pro_dock/ae350_a25

      • tang_mega_138k_pro_dock/ae350/demo to tang_mega_138k_pro_dock/ae350_a25/demo

    • Applications must rename their board specific files after the new board targets, for example boards/adp_xc7k_ae350.overlay to boards/adp_xc7k_ae350_a25.overlay, as the files named after the previous board targets are no longer applied. Kconfig, CMake and code checking CONFIG_BOARD_ADP_XC7K_AE350 must check CONFIG_BOARD_ADP_XC7K_AE350_A25 instead.

    • Out-of-tree boards using the ae350 SoC should use the ae350_<core> SoC of their core in board.yml, rename the board files named after the SoC, select SOC_AE350_<core> instead of SOC_AE350, and include the riscv/andes/andes_v5_ae350_<core>.dtsi of their core. Boards describing their own CPU nodes must use the compatible of the core, for example andestech,a25, which enables the CONFIG_CPU_ANDES_<core> option selecting the CPU features of the core.

    • riscv/andes/andes_v5_ae350.dtsi now describes a single CPU instead of eight, and the PLIC also has the supervisor mode context of the hart. Out-of-tree boards including it must drop the deletes of the other CPU nodes. Multicore boards must add the other CPU nodes and add them to the interrupts-extended of plic0, mtimer and plic_sw, or include the riscv/andes/andes_v5_ae350_<core>mp.dtsi of their core.

  • The RAKwireless rak3172 board is renamed to RAK3272S Breakout Board. It was named after the WisDuo stamp module it carries rather than the board it describes, which is the RAK3272S Breakout Board. The other carrier for the same module is the new RAK3372 WisBlock Core Module WisBlock Core Module. boards/deprecated.cmake keeps -b rak3172 working with a warning, but out-of-tree code testing CONFIG_BOARD_RAK3172 must switch to CONFIG_BOARD_RAK3272S.

  • RAK3272S Breakout Board no longer defines led0. The RAK3272S carries no LEDs and leaves the two module pins the nodes used unrouted. Applications that relied on the alias, such as Blinky, need an overlay pointing at a LED wired to the headers.

  • The Espressif SoC family is renamed from espressif_esp32 to espressif. The CONFIG_SOC_FAMILY string is now "espressif" and the family option is CONFIG_SOC_FAMILY_ESPRESSIF. CONFIG_SOC_FAMILY_ESPRESSIF_ESP32 is still set for Espressif SoCs, but it is deprecated and will be removed in a future release. Use CONFIG_SOC_FAMILY_ESPRESSIF instead.

  • The Kconfig options defined by the Espressif SoCs in soc/espressif now use the SoC symbol prefixes required by the Kconfig naming conventions. Options shared by the Espressif SoC family use SOC_FAMILY_ESPRESSIF_ and options that belong to a single SoC use SOC_<SoC>_. The former ESP_, ESP32_, ESP32<SoC>_ and SOC_ESP32_ prefixes are dropped, and options that had no vendor prefix, such as SPIRAM_*, SPI_FLASH_* and BOOTLOADER_*, gain the family prefix. The flash options lose the ESPTOOLPY_ tool name (FLASHFREQ and FLASHMODE become FLASH_FREQ and FLASH_MODE), and a few redundant words are dropped. For example:

    The old names of the options that can be set by users are kept as deprecated options and will be removed in a future release. Setting one of them forwards the value to the renamed option and prints a deprecation warning when the value differs from the default of that option. Configuration files should still be updated, because the following uses of the old names are not covered:

    • Code that tests an old boolean CONFIG_ macro. A deprecated boolean option only appears in autoconf.h when it is set.

    • Board Kconfig.defconfig files that change the default of a renamed option or choice, for example choice SPIRAM_MODE. They must use the new option and choice names.

    • A deprecated option set by an application does not override a value that a board sets for the renamed option.

    The options CONFIG_ESPTOOLPY_FLASHSIZE_*, CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE, CONFIG_ESPTOOLPY_BEFORE_*, CONFIG_ESPTOOLPY_AFTER_*, CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY, CONFIG_SPIRAM_TYPE_ESPPSRAM*, CONFIG_ESP32S3_INSTRUCTION_CACHE_WRAP, CONFIG_ESP32S3_DATA_CACHE_WRAP, CONFIG_ESP32_ULP_PANIC_OUTPUT_ENABLE and CONFIG_ESP32_ULP_RISCV_INTERRUPT_ENABLE have been removed because they had no effect. Remove them from configuration files. Board Kconfig.defconfig files must drop their choice SPIRAM_TYPE overrides. The flash size comes from the zephyr,flash devicetree node.

  • On LiteX SoCs, CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC no longer falls back to the CPU clock-frequency when /cpus has no timebase-frequency. Out-of-tree boards must set timebase-frequency on the /cpus node. (GitHub #124446)

  • The NXP LPC54xxx DTSI files are named after the sub-family they describe and all live in dts/arm/nxp/lpc/lpc54xxx/. Out-of-tree boards must update their includes:

    • LPC5411x: nxp/lpc/lpc54xxx/nxp_lpc54xxx.dtsi, nxp/lpc/lpc54xxx/nxp_lpc54xxx_m4.dtsi and nxp/lpc/lpc54xxx/nxp_lpc54xxx_m0.dtsi are now nxp/lpc/lpc54xxx/nxp_lpc5411x.dtsi, nxp/lpc/lpc54xxx/nxp_lpc5411x_m4.dtsi and nxp/lpc/lpc54xxx/nxp_lpc5411x_m0.dtsi.

    • LPC546xx: nxp/lpc/nxp_lpc546xx.dtsi is now nxp/lpc/lpc54xxx/nxp_lpc546xx.dtsi.

    The root compatible of the LPCXpresso54114 board is now nxp,lpc5411x instead of nxp,lpc54xxx. (GitHub #125465)

  • Antmicro stm32h7_renode_reference_board has been renamed to stm32h7_renode_reference_platform. The previous -b stm32h7_renode_reference_board and -b stm32h7_renode_reference_board/stm32h753xx are deprecated and now map to stm32h7_renode_reference_platform and stm32h7_renode_reference_platform/stm32h753xx.

  • On MIMXRT1180-EVK, the optional DTS overlay files (cm33_sram_dtcm.overlay, cm7_code_hyperram.overlay, cm7_flash_boot.overlay) and on FRDM-iMXRT1186 the cm33_sram_dtcm.overlay file were moved from the board root directory into a dedicated dts/ subdirectory. Out-of-tree applications that referenced these files with an explicit path must update it to include the dts/ component (e.g. use boards/nxp/mimxrt1180_evk/dts/cm7_flash_boot.overlay instead of boards/nxp/mimxrt1180_evk/cm7_flash_boot.overlay).

  • On the Alif Ensemble RTSS and Balletto cores, CONFIG_NUM_IRQS now defaults to the highest IRQ of the enabled devicetree nodes plus one, instead of 480. Applications that connect a higher IRQ with IRQ_CONNECT() or irq_connect_dynamic() must set CONFIG_NUM_IRQS explicitly.

Device Drivers and Devicetree

ADC

Audio Codec

  • The wolfson,wm8904 binding now requires the clocks and clock-names properties. The MCLK input must always be described in devicetree, either by a clock controller or by a fixed-clock node when it is not backed by a controllable clock source. The driver no longer falls back to computing MCLK as fs-ratio * <sample rate>.

    The fs-ratio property has been replaced by fll-sysclk-fs-ratio, which now only sets the SYSCLK to sample rate ratio generated by the FLL when clock-source is "FLL". It is ignored when clock-source is "MCLK".

    Out-of-tree boards and overlays must be updated, for example:

    mclk: mclk {
            compatible = "fixed-clock";
            clock-frequency = <12288000>;
            #clock-cells = <0>;
    };
    
    &wm8904 {
            clocks = <&mclk>;
            clock-names = "mclk";
    };
    

    When using a fixed-clock node, CONFIG_CLOCK_CONTROL_FIXED_RATE_CLOCK must be enabled.

Clock control

  • NXP MCXC and K32L2B3 SoCs now use the nxp,mcg-lite binding and driver for the MCG-Lite clock generator. Out-of-tree devicetrees must update the mcg node to use the new compatible and replace any use of KINETIS_MCG_OUT_CLK with NXP_MCG_LITE_OUT_CLK. The lircdiv2 property is no longer supported by nxp,kinetis-mcg and should be removed from existing devicetrees.

Comparator

  • The deprecated mcux_lpcmp sensor driver, its public header zephyr/drivers/sensor/mcux_lpcmp.h, the CONFIG_MCUX_LPCMP_TRIGGER option and its sample have been removed. Applications using CONFIG_MCUX_LPCMP must enable CONFIG_COMPARATOR and CONFIG_COMPARATOR_NXP_LPCMP and migrate to the Comparator instead of the sensor API.

    The nxp,lpcmp devicetree compatible is unchanged, but existing overlays must be updated for the comparator driver. Legacy sensor properties remain in the binding but are not consumed by the comparator driver:

    • Replace hysteresis-level with hysteresis-mode, converting integer values 0 through 3 to strings "LEVEL0" through "LEVEL3".

    • power-level = "low" becomes power-mode = "low_speed" and power-level = "high" becomes power-mode = "high_speed". The old "nano" value has no corresponding power-mode setting.

    • Replace enable-output-pin with enable-pin-out. Use invert-output for output inversion.

    • The function-clock property is not used by the comparator driver. Review the SoC clock configuration and the standard clocks property separately; clocks is not a direct replacement for the LPCMP internal functional clock-source selection.

    Refer to dts/bindings/comparator/nxp,lpcmp.yaml for the property definitions. The tests/drivers/comparator/gpio_loopback test provides an example of the comparator API. (GitHub #124232).

Entropy

  • On the Nordic nRF54L05/10/15, nRF54LM20, nRF54LV10A and nRF7120 SoCs, the nordic,nrf-cracen-ctrdrbg rng node is now a child of the new nordic,nrf-cracen cracen node, which only exists in the secure address map. The rng label is unchanged, but references to the node by path (/rng) must be updated to use &rng. As the node no longer exists in non-secure builds, non-secure board files no longer need /delete-node/ rng;, which can be removed, and must not reference &rng; they should select a zephyr,psa-crypto-rng node as zephyr,entropy instead.

  • Initialisation of the nrfx CRACEN library and arbitration of access to the CRACEN hardware have moved from the entropy driver to the new CONFIG_NORDIC_CRACEN driver. It is enabled by default whenever the rng node is enabled. To use the CRACEN exclusively from the PSA crypto CRACEN driver, disable &rng and select psa_rng as zephyr,entropy, as before. Application code that accesses the CRACEN through nrfx directly while rng is enabled must wrap each access in nordic_cracen_acquire() and nordic_cracen_release().

Ethernet

  • CONFIG_ETH_PHY_DRIVER is no longer enabled by default. It is now selected by the Ethernet drivers that need a PHY driver. Out-of-tree Ethernet drivers that use a PHY driver must select it as well. (GitHub #120871)

  • The Kconfig option CONFIG_ETH_INTEL_IGC_NET_MTU has been removed. The Intel IGC Ethernet driver now always uses the standard Ethernet MTU of 1500 bytes, as the Ethernet L2 does not support jumbo frames. (GitHub #122863)

  • The reset-gpios timing properties of the Ethernet PHY bindings, such as ethernet-phy and ethernet-phy-fixed-link, have been renamed to align with the Linux Ethernet PHY binding, which uses the same names. Replace reset-assert-duration-us with reset-assert-us, and replace reset-deassertion-timeout-ms with reset-deassert-us, multiplying its value by 1000 as it is now in microseconds. (GitHub #124061)

  • The ETHERNET_LLDP value of ethernet_hw_caps has been removed. LLDP is now enabled on every Ethernet interface when CONFIG_NET_LLDP is set. Out-of-tree Ethernet drivers must stop reporting it. (GitHub #124787)

  • The ETHERNET_DSA_USER_PORT and ETHERNET_DSA_CONDUIT_PORT values of ethernet_hw_caps have been removed. Use net_eth_get_dsa_port_type() to get the DSA port type of an interface instead. (GitHub #124790)

  • gPTP now drops received event messages (Sync, Pdelay_Req, Pdelay_Resp) for which the driver has not called net_pkt_set_rx_timestamping(). Out-of-tree Ethernet drivers that only populate pkt->timestamp must set the flag, or gPTP will not synchronize.

Flash

  • The Espressif flash encryption compatibility option CONFIG_ESP_FLASH_ENCRYPTION is now CONFIG_ESP32_FLASH_ENCRYPTION, defined by the ESP32 flash driver. The old name is kept as a deprecated option and will be removed in a future release.

I2S

Interrupt Controllers

  • GIC v3 LPI and ITS tables now use static storage instead of the system heap. Applications must provision enough table capacity for their devices and interrupt vectors. (GitHub #120728)

    Enabling CONFIG_GIC_V3_ITS requires CONFIG_NUM_IRQS to be greater than 8192 because LPI INTIDs start at 8192. Set CONFIG_NUM_IRQS to at least 8192 plus the total number of required LPIs across all ITS instances. Hardware support and zephyr,lpi-id-bits can further limit the usable LPI range.

    Set CONFIG_GIC_V3_ITS_MAX_DEVICES to at least the number of distinct DeviceIDs registered with each ITS instance; the default is 16. Set CONFIG_GIC_V3_ITS_MAX_VECTORS to at least the largest number of vectors requested for any one device. Use a power of two from 2 to 2048. The default is 32. Increasing these capacities can increase the statically reserved memory, including space for devices that are not registered.

    The zephyr,device-id-bits property of arm,gic-v3-its must cover the largest DeviceID used by the platform, rather than the number of devices. Its default of 16 covers the PCIe RequesterID space. The zephyr,lpi-id-bits property of arm,gic-v3 controls the LPI table provision and defaults to 16; reduce it only when all required INTIDs fit in the smaller range.

    Platforms with known ITS table geometry can use zephyr,device-table-size to cap the Device table reservation in bytes. The driver reserves the smaller of this cap and the automatically calculated size. The reservation must fit the direct table or, in indirect mode, the root and enough second-level pages for the configured device capacity. If all supported layouts exceed the reservation or the BASER page limit, ITS initialization fails with -ENOSPC before enabling the tables.

    Remove application or board CONFIG_HEAP_MEM_POOL_SIZE overrides that only reserved space for GIC v3 LPI or ITS tables. The ITS no longer contributes a minimum heap size. Retain any heap space needed by other drivers or application allocations.

    its_alloc_intid() is deprecated. Its signature and the its_api_alloc_intid_t driver callback remain unchanged during deprecation. The GICv3 ITS driver now returns 0 from this function when it cannot allocate an LPI INTID. Callers that still use it must check for 0 before using the returned INTID. Use its_alloc_intids() with a count of 1 to allocate a single INTID:

    unsigned int intid;
    int ret = its_alloc_intids(dev, 1U, &intid);
    
    if (ret != 0) {
            /* ret is -ENOSPC or another negative error code. */
    }
    

    The new its_alloc_intids() and its_alloc_map_intids() functions return 0 on success, a negative error code on failure, and store the first allocated INTID through the output parameter. The output parameter is left unchanged on failure. ITS driver implementations retain the alloc_intid callback and implement the new alloc_intids and alloc_map_intids callbacks for the replacement APIs.

    Map each EventID only once per DeviceID. its_map_intid() returns -EBUSY for an existing mapping. Use its_send_int() only after mapping the EventID successfully.

    A failed mapping request leaves its output parameter unchanged. If hardware rollback cannot be confirmed, potentially mapped INTIDs and EventIDs remain reserved. These INTIDs reduce the capacity available to later requests, and retrying the same EventIDs returns -EBUSY. Published indirect Device table pages also remain reserved after failed device setup.

MFD

  • nPM13xx event callbacks now use mfd_npm13xx_event_callback instead of gpio_callback. Set its handler and event_mask fields directly instead of calling gpio_init_callback(). The handler takes a pointer to the new callback structure and an npm13xx_event_t event mask; existing BIT(NPM13XX_EVENT_*) masks are unchanged. (GitHub #123060)

Modem

  • Sierra Wireless HL78xx: the CONFIG_HL78XX_EVT_MONITOR_HEAP_SIZE option has been replaced by CONFIG_HL78XX_EVT_MONITOR_QUEUE_DEPTH. The queue of notifications waiting for the deferred event monitors is now sized as a number of notifications instead of a heap size in bytes. Applications that set the old option must remove it, and set the new one if the default of 16 notifications is not enough. A notification that does not fit is dropped and counted; the count is available from hl78xx_evt_monitor_dropped_count(). The slots are reserved statically, one queued notification each, so the default of 16 uses more RAM than the 256-byte heap it replaces. (GitHub #120425)

OPAMP

  • The NXP OPAMP drivers (nxp,opamp and nxp,opamp-fast) hold a power state constraint while the device is active, and the OPAMP nodes declare zephyr,disabling-power-states. With CONFIG_PM_POLICY_DEVICE_CONSTRAINTS an enabled OPAMP therefore keeps the system out of Power Down and Deep Power Down for as long as it is active, which without CONFIG_PM_DEVICE_RUNTIME is from init onwards. Enable device runtime PM for the node, or suspend it explicitly, to let the system reach those states. (GitHub #122135)

  • nxp,opamp-fast no longer enables an instance marked with is-reference-source from its init function; the instance follows its own power state like every other instance. With CONFIG_PM_DEVICE_RUNTIME an application has to hold a runtime reference on the reference source while it measures an amplifier fed by it. Builds without device runtime PM are unaffected: the device is resumed at init and the instance comes up enabled as before. (GitHub #122135)

PCIe

  • pcie_msi_map() now returns uint64_t instead of uint32_t, and the address member of msi_vector_generic is now uint64_t. Out-of-tree implementations of pcie_msi_map() and code that reads the MSI vector address must be updated. The ITS getter (its_get_msi_addr()) also returns uint64_t. (GitHub #124156)

  • A 32-bit MSI capability whose ITS target address is above 4 GiB now makes pcie_msi_enable() return false without writing the configuration space or enabling bus mastering; dependent drivers such as NVMe, ivshmem and IGC fail to initialize. This is intentional: use a 64-bit MSI capability or a target address below 4 GiB. (GitHub #124156)

Power Management

  • NXP MCX nxp,spc wakeup-delay specifies regulator-settling delay in SPC timer cycles. At the nominal 10 MHz timer frequency, every additional 100 cycles adds approximately 10 us to wake-up time. A nonzero programmed delay can also apply when LP_CFG and ACTIVE_CFG select the same voltage. SoC power-state exit-latency-us defaults include SPC settling and mode-specific recovery allowances. Board/application overlays can select counts for their regulator, voltages, output capacitance and external power circuitry. Measure the total wake-up time for the actual project, including clock recovery and resume processing, and adjust exit-latency-us accordingly; these defaults are not measured worst-case bounds.

PTP Clock

Serial

  • The CONFIG_UART_ESP32_RX_FIFO_THRESH and CONFIG_UART_ESP32_TX_FIFO_THRESH Kconfig options of the Espressif UART driver are deprecated. Set the rx-fifo-threshold and tx-fifo-threshold properties of each UART node in devicetree instead. The Kconfig options applied to every UART instance, while the properties apply to the node that sets them. (GitHub #119492)

  • The CONFIG_UART_XLNX_PS Kconfig option has been removed in favour of CONFIG_UART_CDNS. Nodes with xlnx,xuartps must add cdns,uart; the xlnx,xuartps compatible remains valid as a hardware identifier, the unified driver matches on cdns,uart. The bdiv property has been removed; the baud rate is now computed from clock-frequency and current-speed. (GitHub #114729)

Timers

  • The deprecated Cortex-M SysTick low-power companion Kconfig options have been removed. Replace them with their generic system timer equivalents:

    Removed option

    Replacement

    CONFIG_CORTEX_M_SYSTICK_LPM_TIMER_NONE

    CONFIG_SYSTEM_TIMER_LPM_COMPANION_NONE

    CONFIG_CORTEX_M_SYSTICK_LPM_TIMER_COUNTER

    CONFIG_SYSTEM_TIMER_LPM_COMPANION_COUNTER

    CONFIG_CORTEX_M_SYSTICK_LPM_TIMER_HOOKS

    CONFIG_SYSTEM_TIMER_LPM_COMPANION_HOOKS

    CONFIG_CORTEX_M_SYSTICK_RESET_BY_LPM

    CONFIG_SYSTEM_TIMER_RESET_BY_LPM

  • The deprecated chosen /chosen/zephyr,cortex-m-idle-timer is no longer supported. Use the zephyr,system-timer-companion chosen instead to select the low-power companion counter.

  • The deprecated drivers/timer/cortex_m_systick.h compatibility header has been removed. Include include/zephyr/drivers/timer/system_timer_lpm.h instead, and replace z_cms_lptim_hook_on_lpm_entry and z_cms_lptim_hook_on_lpm_exit with z_sys_clock_lpm_enter() and z_sys_clock_lpm_exit(), respectively. (GitHub #124238).

  • The CONFIG_MCUX_OS_TIMER_MIN_DELAY Kconfig option has been removed. The NXP OS Timer driver now uses the generic system timer core, which keeps the match value at least 16 timer cycles ahead of the counter. Remove the option from application and board configurations.

W1

  • The 1-Wire API now uses controller/peripheral terminology. The former names remain available as deprecated aliases:

  • The common devicetree binding include files w1-master.yaml and w1-slave.yaml are deprecated in favor of w1-controller.yaml and w1-peripheral.yaml. Out-of-tree bindings should update their include: statements accordingly; the old files are kept as thin includes of the new ones for compatibility.

Wi-Fi

  • CONFIG_ESP32_WIFI_STA_RECONNECT now only applies to an Espressif station that loses an established connection. It reconnects with a growing backoff until it succeeds or the application disconnects. While it reconnects, connection requests fail with -EALREADY. The option no longer changes how connection requests made by the application are handled.

  • CONFIG_ESP32_WIFI_STA_RECONNECT is now enabled by default, so an Espressif station that loses an established connection reconnects on its own. Set the option to n to keep the station disconnected instead.

  • Espressif Wi-Fi connection requests now retry authentication and association failures, such as an access point that rejects the first attempt after the station was reset, instead of failing on the first rejection. A request that leaves the timeout field of wifi_connect_req_params at 0 fails after three short retries. A request with a timeout retries until it expires and then reports a connection timeout, and one with SYS_FOREVER_MS retries until the application disconnects. A wrong WPA3-SAE password cannot be told apart from such a rejection, so it is retried as well.

  • The Atmel WINC1500 Wi-Fi driver has been removed together with CONFIG_WIFI_WINC1500, the atmel,winc1500 devicetree binding and the adafruit_winc1500 shield. It was deprecated in Zephyr 4.4 for lack of a maintainer and has no in-tree replacement.

Bluetooth

Bluetooth Audio

  • BAP

  • MCP

    • The media proxy API has been removed and users will need to use the bt_mcs, bt_mcc or bt_mcp_media_control_server APIs. Users of the media player API like media_proxy_pl_init can seamlessly switch to using bt_mcp_media_control_server_register(). Users using the bt_mcc API can continue as is, but struct mpl_cmd is now struct bt_mcs_cmd, and struct mpl_search is now struct bt_mcs_search. Uses of media_proxy_ctrl_ for local operations can in most places just search-and-replace with bt_mcp_media_control_server_. Uses of media_proxy_ctrl_ for remote operations will need to switch to the bt_mcc API. (GitHub #102994)

Bluetooth Classic

Bluetooth HCI

  • The STM32WB HCI driver now constructs its generated public Bluetooth address using the low 16 bits of the device UDN, the device ID, and the full 24-bit ST company ID. This corrects the previous address layout and changes the generated address on affected devices. Previously bonded peers may need to remove the old bond and pair with the device again.

Bluetooth Host

  • The ATT prepare write buffers (CONFIG_BT_ATT_PREPARE_COUNT) are now shared equally between connections: a single connection holds at most CONFIG_BT_ATT_PREPARE_COUNT_PER_CONN of them, which defaults to CONFIG_BT_ATT_PREPARE_COUNT / CONFIG_BT_MAX_CONN but at least 1 (a pool smaller than CONFIG_BT_MAX_CONN therefore stays over-subscribed), and its further Prepare Write Requests are rejected with Prepare Queue Full. Applications with CONFIG_BT_MAX_CONN above 1 whose long or reliable writes need more buffers than that share must either raise CONFIG_BT_ATT_PREPARE_COUNT or set CONFIG_BT_ATT_PREPARE_COUNT_PER_CONN explicitly, accepting in the latter case that one connection can hold buffers the others need. The recommended sizing is CONFIG_BT_ATT_PREPARE_COUNT = buffers needed by one client multiplied by CONFIG_BT_MAX_CONN, which keeps every connection’s capacity independent of the other connections.

  • CONFIG_BT_ISO_TX_MTU has been removed. Applications should define their own SDU buffer sizes. The ISO HCI data buffer size can be configured for the Controller with CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE, and the SDU size with CONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX. In most cases CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE should be set to 4 (if timestamps are not used) or 8 (if timestamps are used) above CONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX. For larger values of CONFIG_BT_CTLR_ISO_TX_SDU_LEN_MAX it may be better to increase CONFIG_BT_CTLR_ISO_TX_BUFFERS instead of CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE.

Bluetooth Mesh

  • The deprecated legacy provisioning OOB API was removed together with the CONFIG_BT_MESH_PROV_OOB_API_LEGACY Kconfig option. The maximum numeric OOB authentication size is now always 32 bytes. Applications must replace:

  • The Bluetooth Mesh shell sar rx-set command now takes its arguments in the order the SAR Receiver states are documented and printed: <SegThresh> <AckDelayInc> <DiscardTimeout> <RxSegIntStep> <AckRetransCount>. AckRetransCount moved from the third position to the last, so an existing invocation keeps the same number of arguments but assigns them to different states. The sar rx-get and sar rx-set responses are printed in this new order too. Update scripts that call sar rx-set or parse those responses.

  • The Bluetooth Mesh shell dfu cli send command now takes the transfer mode as push or pull instead of a number, matching blob cli tx. Replace a numeric mode argument with push or pull.

Networking

Ethernet

OpenThread

  • The OPENTHREAD_THREAD_VERSION_1_4 Kconfig option is now enabled by default.

  • Applications that require an older OpenThread version must explicitly select the desired version in their project Kconfig configuration.

WiFi

Other subsystems

Shell

  • Calling a shell command with an unknown subcommand, such as kernel foo, now returns -ENOEXEC instead of SHELL_CMD_HELP_PRINTED (1). The help is still printed. Update code that checks the return value of shell_execute_cmd() for this case.

Task Watchdog

  • If task_wdt_add() fails to set up a hardware watchdog fallback, it now returns the error without leaving a channel allocated. Applications must check the returned errors and avoid requesting pause options their backend does not support.

Tools

  • Deprecate the --esp-baud-rate argument on the esp32 runner, the -b / --baudrate argument on the bflb_mcu_tool runner, the -b argument on the bflb_flash_command runner and the --baudrate argument on the amebaflash runner. They are replaced with a generic --baud-rate argument.

  • The stm32flash runner now defaults to 115200 baud instead of 57600 when no --baud-rate is given. Pass --baud-rate=57600 to keep the previous speed.

  • The deprecated --toolchains and --no-toolchains options of west sdk install have been removed. Use --gnu-toolchains and --no-gnu-toolchains instead.

IPC

Modules

  • Espressif hal_espressif options moved from soc/espressif to modules/Kconfig.esp32:

    The old names that can be set by users are kept as deprecated options and will be removed in a future release.

  • The zephyr-lang-rust module providing Rust language support is no longer an optional module of the Zephyr manifest. It is now an external module; add it to the application manifest to keep using Rust. The manifest.project-filter +zephyr-lang-rust west setting no longer has an effect.

Architectures

  • On ARM Cortex-A/R with CONFIG_USE_SWITCH, ISRs run in SYS mode instead of IRQ mode, and nested interrupts and the handlers they call use the per-CPU interrupt stack rather than the interrupted thread’s stack. Boards and applications that sized CONFIG_ISR_STACK_SIZE for the outermost ISR frame alone may need a larger interrupt stack, and code or debuggers that inspect the processor mode inside an ISR see SYS mode. (GitHub #123041)

  • The portable CPU performance monitoring API has been renamed to disambiguate it from power-management units (the pmu name is used by both). The header include/zephyr/arch/pmu.h is now include/zephyr/arch/perf_counter.h, and its pmu_* functions and types gained a perf_counter_ prefix. (GitHub #125939)

  • On Xtensa, the HiFi register sharing code was generalized to any coprocessor, and the fields it adds to the architecture structures were renamed: hifi_regs in struct _thread_arch is now cp_regs, and hifi_owner and save_hifi in struct _cpu_arch are now cp_owner and save_cp. Code accessing these fields must use the new names. The CONFIG_XTENSA_HIFI_SHARING options are unchanged. (GitHub #120790)