From 7d64aa80575c348f2086bbd3e9592e42286e3266 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 11 May 2016 08:01:42 +0200 Subject: [PATCH] ekf2: raise stack size on Snapdragon It seems that the stack size was exhausted on Snapdragon. --- src/modules/ekf2/ekf2_main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 25441ca16f..c8eddba90c 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -873,11 +873,19 @@ int Ekf2::start() { ASSERT(_control_task == -1); +#ifdef __PX4_QURT + // On the DSP we seem to get random crashes with a stack size below 13000. + const unsigned stack_size = 15000; +#else + const unsigned stack_size = 9000; +#endif + + /* start the task */ _control_task = px4_task_spawn_cmd("ekf2", SCHED_DEFAULT, SCHED_PRIORITY_MAX - 5, - 9000, + stack_size, (px4_main_t)&Ekf2::task_main_trampoline, nullptr);