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 committed Jul 18, 2024
1 parent ccfc000 commit 0909e20
Show file tree
Hide file tree
Showing 4 changed files with 8 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
6 changes: 5 additions & 1 deletion src/modules/logger/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,16 @@ int Logger::custom_command(int argc, char *argv[])
return print_usage("unknown command");
}

#if !defined(PX4_LOGGER_STACK_SIZE)
# define PX4_LOGGER_STACK_SIZE 3700
#endif

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(PX4_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 0909e20

Please sign in to comment.