From 596d20e2a3869af6f497d31bfcb1d11622ef5236 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 10 Nov 2012 18:32:20 +0100 Subject: [PATCH] Increased stack sizes, 1K is not enough when calling printf() from within app --- apps/drivers/hil/hil.cpp | 6 +++--- apps/drivers/px4fmu/fmu.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/drivers/hil/hil.cpp b/apps/drivers/hil/hil.cpp index a8cb31f0a7..bef21848b5 100644 --- a/apps/drivers/hil/hil.cpp +++ b/apps/drivers/hil/hil.cpp @@ -222,11 +222,11 @@ HIL::init() /* reset GPIOs */ // gpio_reset(); - /* start the IO interface task */ - _task = task_spawn("fmuservo", + /* start the HIL interface task */ + _task = task_spawn("fmuhil", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT, - 1024, + 2048, (main_t)&HIL::task_main_trampoline, nullptr); diff --git a/apps/drivers/px4fmu/fmu.cpp b/apps/drivers/px4fmu/fmu.cpp index ae888323d8..3eb4a9ef22 100644 --- a/apps/drivers/px4fmu/fmu.cpp +++ b/apps/drivers/px4fmu/fmu.cpp @@ -224,7 +224,7 @@ PX4FMU::init() _task = task_spawn("fmuservo", SCHED_DEFAULT, SCHED_PRIORITY_DEFAULT, - 1024, + 2048, (main_t)&PX4FMU::task_main_trampoline, nullptr);