Skip to content

Commit

Permalink
samples: matter: Fix WiFi release build by disabling RAM PWRDWN
Browse files Browse the repository at this point in the history
We must disable RAM powerdown library due to wrong WiFi
configuration. It selects COMMON_LIBC_MALLOC which cannot be
enabled together with RAM_POWER_DOWN_LIBRARY.

Signed-off-by: Arkadiusz Balys <[email protected]>
  • Loading branch information
ArekBalysNordic committed Dec 11, 2024
1 parent e28af5e commit e219de6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Do not enable RAM power-down library for nRF7002 DK due to incompatible WiFi configuration.
CONFIG_RAM_POWER_DOWN_LIBRARY=n
12 changes: 12 additions & 0 deletions samples/matter/lock/boards/nrf7002dk_nrf5340_cpuapp_release.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Do not enable RAM power-down library for nRF7002 DK due to incompatible WiFi configuration.
CONFIG_RAM_POWER_DOWN_LIBRARY=n

# Enable LTO to decrease the flash usage.
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
3 changes: 3 additions & 0 deletions samples/matter/lock/prj_thread_wifi_switched.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
# Enforce the use of mbedTLS crypto backend instead of PSA Crypto by
# building OpenThread from sources. Wi-Fi stack does not support PSA Crypto yet.
CONFIG_OPENTHREAD_SOURCES=y

# Do not enable RAM power-down library for nRF7002 DK due to incompatible WiFi configuration.
CONFIG_RAM_POWER_DOWN_LIBRARY=n

0 comments on commit e219de6

Please sign in to comment.