diff --git a/samples/matter/common/src/persistent_storage/persistent_storage_shell.cpp b/samples/matter/common/src/persistent_storage/persistent_storage_shell.cpp index 5f087328b300..54764cec3bb3 100644 --- a/samples/matter/common/src/persistent_storage/persistent_storage_shell.cpp +++ b/samples/matter/common/src/persistent_storage/persistent_storage_shell.cpp @@ -6,9 +6,9 @@ #include "persistent_storage_shell.h" -#if defined(CONFIG_NVS) +#if defined(CONFIG_SETTINGS_NVS) #include -#elif defined(CONFIG_ZMS) +#elif defined(CONFIG_SETTINGS_ZMS) #include #endif #include @@ -18,9 +18,9 @@ using namespace Nrf; namespace { -#if defined(CONFIG_NVS) +#if defined(CONFIG_SETTINGS_NVS) nvs_fs *sStorage = nullptr; -#elif defined(CONFIG_ZMS) +#elif defined(CONFIG_SETTINGS_ZMS) zms_fs *sStorage = nullptr; #endif @@ -32,9 +32,9 @@ struct SettingsParams { int CalculateFreeSpace() { -#if defined(CONFIG_NVS) +#if defined(CONFIG_SETTINGS_NVS) return nvs_calc_free_space(sStorage); -#elif defined(CONFIG_ZMS) +#elif defined(CONFIG_SETTINGS_ZMS) return zms_calc_free_space(sStorage); #endif } @@ -133,9 +133,9 @@ bool PersistentStorageShell::Init() return false; } -#if defined(CONFIG_NVS) +#if defined(CONFIG_SETTINGS_NVS) sStorage = reinterpret_cast(storage); -#elif defined(CONFIG_ZMS) +#elif defined(CONFIG_SETTINGS_ZMS) sStorage = reinterpret_cast(storage); #endif diff --git a/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp.conf index cccb8cde877b..4024aad7f9fd 100644 --- a/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,7 +10,14 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index facc5415b309..d8a181712944 100644 --- a/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/light_bulb/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -22,3 +22,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp.conf index 5f3388a91552..dd415a88a3d1 100644 --- a/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,10 +10,17 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n # Low Power mode CONFIG_POWEROFF=y + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n diff --git a/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index facc5415b309..d8a181712944 100644 --- a/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/light_switch/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -22,3 +22,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp.conf index 5f3388a91552..dd415a88a3d1 100644 --- a/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,10 +10,17 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n # Low Power mode CONFIG_POWEROFF=y + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n diff --git a/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index facc5415b309..d8a181712944 100644 --- a/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/lock/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -22,3 +22,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/smoke_co_alarm/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/smoke_co_alarm/boards/nrf54l15dk_nrf54l15_cpuapp.conf index 5f3388a91552..dd415a88a3d1 100644 --- a/samples/matter/smoke_co_alarm/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/smoke_co_alarm/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,10 +10,17 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n # Low Power mode CONFIG_POWEROFF=y + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n diff --git a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp.conf index cccb8cde877b..4024aad7f9fd 100644 --- a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,7 +10,14 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.conf b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.conf index e2d1a570134f..89dc4581e1cb 100644 --- a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.conf +++ b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_internal.conf @@ -10,10 +10,12 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 44 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=11 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n # Disable SPI CONFIG_CHIP_SPI_NOR=n @@ -50,3 +52,8 @@ CONFIG_NCS_SAMPLE_MATTER_WATCHDOG=y # Enable LTO CONFIG_LTO=y CONFIG_ISR_TABLES_LOCAL_DECLARATION=y + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n diff --git a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index d9673cc89769..0d77bc75a566 100644 --- a/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/template/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -19,3 +19,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp.conf index cccb8cde877b..4024aad7f9fd 100644 --- a/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,7 +10,14 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index facc5415b309..d8a181712944 100644 --- a/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/thermostat/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -22,3 +22,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp.conf index 5f3388a91552..dd415a88a3d1 100644 --- a/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp.conf +++ b/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp.conf @@ -10,10 +10,17 @@ CONFIG_BT_LL_SOFTDEVICE_MULTIROLE=y # nRF54L15 requires bigger stack sizes than nRF52/nRF53 families CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=10240 CONFIG_MPSL_WORK_STACK_SIZE=2048 -CONFIG_CHIP_TASK_STACK_SIZE=7168 # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n # Low Power mode CONFIG_POWEROFF=y + +# Workaround: Disable MBEDTLS threading, as in the Mbed TLS 3.6.x the mutexes were added, what sometimes +# leads to bus faults when OpenThread calls psa_get_and_lock_key_slot on SRP service removal. +# This brings back the behavior that was proven to work before. +CONFIG_MBEDTLS_THREADING_C=n diff --git a/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf b/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf index facc5415b309..d8a181712944 100644 --- a/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf +++ b/samples/matter/window_covering/boards/nrf54l15dk_nrf54l15_cpuapp_ns.conf @@ -22,3 +22,6 @@ CONFIG_CHIP_CRYPTO_PSA_MIGRATE_DAC_PRIV_KEY=y # Set the ZMS sector count to match the settings partition size that is 40 kB for this application. CONFIG_SETTINGS_ZMS_SECTOR_COUNT=10 +# Workaround required as Zephyr L2 implies usage of NVS backend for settings. +# It should be removed once the proper fix will be applied in Zephyr. +CONFIG_NVS=n diff --git a/west.yml b/west.yml index bd523b4caa4b..c5503498f30e 100644 --- a/west.yml +++ b/west.yml @@ -161,7 +161,7 @@ manifest: - name: matter repo-path: sdk-connectedhomeip path: modules/lib/matter - revision: 5148b72bda4773ccaaf7df52149f765f01248079 + revision: 1fb979258d6bf71c2cb049d24d97a087e7a2de0c west-commands: scripts/west/west-commands.yml submodules: - name: nlio