Skip to content

Commit

Permalink
littlefs: needs more stack when used
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut authored and dagar committed Aug 19, 2024
1 parent c60b1d1 commit ecfdbd2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static constexpr wq_config_t ttyS9{"wq:ttyS9", 1728, -30};
static constexpr wq_config_t ttyACM0{"wq:ttyACM0", 1728, -31};
static constexpr wq_config_t ttyUnknown{"wq:ttyUnknown", 1728, -32};

static constexpr wq_config_t lp_default{"wq:lp_default", 2000, -50};
static constexpr wq_config_t lp_default{"wq:lp_default", 2350, -50};

static constexpr wq_config_t test1{"wq:test1", 2000, 0};
static constexpr wq_config_t test2{"wq:test2", 2000, 0};
Expand Down
8 changes: 8 additions & 0 deletions src/modules/logger/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ menuconfig USER_LOGGER
depends on BOARD_PROTECTED && MODULES_LOGGER
---help---
Put logger in userspace memory

menuconfig LOGGER_STACK_SIZE
int "stack size of logger task"
default 3700
depends on MODULES_LOGGER
---help---
Stack size of the logger task. Some configurations require more stack
than the default.
2 changes: 1 addition & 1 deletion src/modules/logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ int Logger::task_spawn(int argc, char *argv[])
_task_id = px4_task_spawn_cmd("logger",
SCHED_DEFAULT,
SCHED_PRIORITY_LOG_CAPTURE,
PX4_STACK_ADJUSTED(3700),
PX4_STACK_ADJUSTED(CONFIG_LOGGER_STACK_SIZE),
(px4_main_t)&run_trampoline,
(char *const *)argv);

Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/hardfault_log/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ px4_add_module(
MAIN hardfault_log
COMPILE_FLAGS
-Wno-cast-align # TODO: fix and enable
STACK_MAIN 4096
SRCS
hardfault_log.c
DEPENDS
Expand Down
1 change: 1 addition & 0 deletions src/systemcmds/param/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ px4_add_module(
MAIN param
COMPILE_FLAGS
-Wno-array-bounds
STACK_MAIN 4096
SRCS
param.cpp
DEPENDS
Expand Down

0 comments on commit ecfdbd2

Please sign in to comment.