Skip to content

Commit 7653e6c

Browse files
ArekBalysNordicLuDuda
authored andcommitted
[nrf noup] Fix issue with stack sizes
The stack sizes are too low when Oberon and CC3XX driver are enabled.
1 parent 33ec94f commit 7653e6c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

config/nrfconnect/chip-module/Kconfig.defaults

+9
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ config IEEE802154_NRF5_RX_STACK_SIZE
229229
default 1024
230230

231231
config OPENTHREAD_THREAD_STACK_SIZE
232+
default 6144 if PSA_CRYPTO_DRIVER_CC3XX && PSA_CRYPTO_DRIVER_OBERON
232233
default 4096
233234

234235
config OPENTHREAD_DEFAULT_TX_POWER
@@ -318,6 +319,14 @@ config PSA_WANT_ALG_SHA_224
318319
config MBEDTLS_PSA_KEY_SLOT_COUNT
319320
default 64
320321

322+
if PSA_CRYPTO_DRIVER_CC3XX && PSA_CRYPTO_DRIVER_OBERON
323+
324+
# Do not use CC3XX hash driver when both Oberon and CC3xx are enabled.
325+
config PSA_USE_CC3XX_HASH_DRIVER
326+
default n
327+
328+
endif
329+
321330
endif
322331

323332
if !CHIP_CRYPTO_PSA

src/platform/nrfconnect/CHIPDevicePlatformConfig.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
#endif // CHIP_DEVICE_CONFIG_CHIP_TASK_PRIORITY
216216

217217
#ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
218-
#ifdef CONFIG_LTO
218+
#if defined(CONFIG_LTO) || (defined(CONFIG_PSA_CRYPTO_DRIVER_CC3XX) && defined(CONFIG_PSA_CRYPTO_DRIVER_OBERON))
219219
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 8192
220220
#else
221221
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 6144

0 commit comments

Comments
 (0)