Skip to content

Commit

Permalink
[nrfconnect] Introduced Kconfig to configure CHIP stack size
Browse files Browse the repository at this point in the history
There is not Kconfig that would allow to set the CHIP task size,
what is not convenient, as other stacks can be configured using
Kconfig.
  • Loading branch information
kkasperczyk-no committed Jul 31, 2024
1 parent a16456f commit 7d8a217
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ config CHIP_LOG_FILE_NAME
config CHIP_MALLOC_SYS_HEAP
default y if !ARCH_POSIX

config CHIP_TASK_STACK_SIZE
int "The CHIP (Matter) thread stack size"
default 10240 if LTO
default 6144
help
Configures the stack size available for the CHIP (Matter) thread.

config CHIP_FACTORY_DATA
bool "Factory data provider"
select ZCBOR
Expand Down
6 changes: 1 addition & 5 deletions src/platform/nrfconnect/CHIPDevicePlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@
#endif // CHIP_DEVICE_CONFIG_CHIP_TASK_PRIORITY

#ifndef CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE
#if defined(CONFIG_LTO)
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 10240
#else
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE 6144
#endif // CONFIG_LTO
#define CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE CONFIG_CHIP_TASK_STACK_SIZE
#endif // CHIP_DEVICE_CONFIG_CHIP_TASK_STACK_SIZE

#define CHIP_DEVICE_CONFIG_MAX_EVENT_QUEUE_SIZE 64
Expand Down

0 comments on commit 7d8a217

Please sign in to comment.