From 0294d4a794110c5385661f0df4e6ba2e2da1b52d Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 29 Dec 2025 17:14:43 +1300 Subject: [PATCH] dataman: increase stack size for littlefs Increase stack size when using littlefs filesystem, which requires more stack space than traditional filesystems. --- src/modules/dataman/dataman.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/dataman/dataman.cpp b/src/modules/dataman/dataman.cpp index 8cefa477bc..ae5d294fda 100644 --- a/src/modules/dataman/dataman.cpp +++ b/src/modules/dataman/dataman.cpp @@ -63,7 +63,11 @@ __BEGIN_DECLS __EXPORT int dataman_main(int argc, char *argv[]); __END_DECLS +#ifdef CONFIG_FS_LITTLEFS +static constexpr int TASK_STACK_SIZE = 2000; /* littlefs needs more stack */ +#else static constexpr int TASK_STACK_SIZE = 1420; +#endif #ifdef CONFIG_DATAMAN_PERSISTENT_STORAGE /* Private File based Operations */