Skip to content

Commit 3913980

Browse files
committed
src: modules: Adust stack sizes
Adjust stack sizes to prevent stack overflows observed in recent testing. Signed-off-by: Simen S. Røstad <[email protected]>
1 parent 09e6fbe commit 3913980

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

app/src/modules/cloud/Kconfig.cloud

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ config APP_CLOUD_BACKOFF_MAX_SECONDS
8282

8383
config APP_CLOUD_THREAD_STACK_SIZE
8484
int "Thread stack size"
85-
default 4096
85+
default 5120
8686

8787
config APP_CLOUD_MESSAGE_QUEUE_SIZE
8888
int "Message queue size"

app/src/modules/environmental/Kconfig.environmental

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if APP_ENVIRONMENTAL
1313

1414
config APP_ENVIRONMENTAL_THREAD_STACK_SIZE
1515
int "Thread stack size"
16-
default 512
16+
default 1024
1717

1818
config APP_ENVIRONMENTAL_WATCHDOG_TIMEOUT_SECONDS
1919
int "Watchdog timeout"

app/src/modules/location/Kconfig.location

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if APP_LOCATION
1212

1313
config APP_LOCATION_THREAD_STACK_SIZE
1414
int "Thread stack size"
15-
default 2048
15+
default 2560
1616

1717
config APP_LOCATION_WATCHDOG_TIMEOUT_SECONDS
1818
int "Watchdog timeout"

app/src/modules/network/Kconfig.network

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ config APP_NETWORK_SHELL
1515

1616
config APP_NETWORK_THREAD_STACK_SIZE
1717
int "Thread stack size"
18-
default 1024
18+
default 1536
1919

2020
config APP_NETWORK_WATCHDOG_TIMEOUT_SECONDS
2121
int "Watchdog timeout"

app/src/modules/power/Kconfig.power

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ config APP_POWER_DISABLE_UART_ON_VBUS_REMOVED
3030
config APP_POWER_THREAD_STACK_SIZE
3131
int "Thread stack size"
3232
default 2048 if MEMFAULT_NRF_PLATFORM_BATTERY_NPM13XX
33-
default 1344
33+
default 1536
3434

3535
config APP_POWER_WATCHDOG_TIMEOUT_SECONDS
3636
int "Watchdog timeout"

app/src/modules/storage/Kconfig.storage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if APP_STORAGE
1212

1313
config APP_STORAGE_THREAD_STACK_SIZE
1414
int "Storage module thread stack size"
15-
default 1024
15+
default 1536
1616

1717
config APP_STORAGE_BACKEND_RAM
1818
bool "RAM storage backend"

docs/modules/storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ The following includes the key configuration categories:
222222

223223
### Thread Configuration
224224

225-
- **`CONFIG_APP_STORAGE_THREAD_STACK_SIZE`** (default: 1024): Stack size for the storage module's main thread.
225+
- **`CONFIG_APP_STORAGE_THREAD_STACK_SIZE`** (default: 1536): Stack size for the storage module's main thread.
226226

227227
- **`CONFIG_APP_STORAGE_WATCHDOG_TIMEOUT_SECONDS`** (default: 60): Watchdog timeout for detecting stuck operations.
228228

0 commit comments

Comments
 (0)