From 57913925914ffbb27077624d1344b8f2f9bd5d9f Mon Sep 17 00:00:00 2001 From: Gregory Nutt <gnutt@nuttx.org> Date: Mon, 16 Jun 2014 08:10:40 -0600 Subject: [PATCH] hex2bin: Needs a little larger stack --- system/hex2bin/Kconfig | 12 ++++++++++++ system/hex2bin/Makefile | 7 +++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/system/hex2bin/Kconfig b/system/hex2bin/Kconfig index ae01cfed2..58a316d49 100644 --- a/system/hex2bin/Kconfig +++ b/system/hex2bin/Kconfig @@ -22,6 +22,18 @@ config SYSTEM_HEX2BIN_BUILTIN if SYSTEM_HEX2BIN_BUILTIN +config SYSTEM_HEX2BIN_STACKSIZE + int "Program stack size" + default 1536 + ---help--- + The size of stack allocated for the hex2bin task. + +config SYSTEM_HEX2BIN_PRIORITY + int "Program priority" + default 100 + ---help--- + The priority of the hex2bin task. + config SYSTEM_HEX2BIN_BASEADDR hex "Binary base address" default 0x00000000 diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index 7b9acbade..4c29339aa 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -65,8 +65,11 @@ endif ROOTDEPPATH = --dep-path . VPATH = -PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 768 +CONFIG_SYSTEM_HEX2BIN_STACKSIZE ?= 2536 +CONFIG_SYSTEM_HEX2BIN_PRIORITY ?= 100 + +STACKSIZE = $(CONFIG_SYSTEM_HEX2BIN_STACKSIZE) +PRIORITY = $(CONFIG_SYSTEM_HEX2BIN_PRIORITY) # Build targets