aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sidrane <david_s5@nscdg.com>2015-03-04 04:21:00 -1000
committerDavid Sidrane <david_s5@nscdg.com>2015-03-05 08:33:56 -1000
commitbaf9bd0346d7ee8dd236dc0ce0214a7c5543544a (patch)
tree6eef19ef2a50c3b350dc62bca7846bafc2e07744
parent4a931a99f055c5e62a99d1ddfb5c513991df2e87 (diff)
downloadpx4-firmware-baf9bd0346d7ee8dd236dc0ce0214a7c5543544a.tar.gz
px4-firmware-baf9bd0346d7ee8dd236dc0ce0214a7c5543544a.tar.bz2
px4-firmware-baf9bd0346d7ee8dd236dc0ce0214a7c5543544a.zip
Adjust Stack Sizes like f7ef6 - but experimanting the CONFIG_IDLETHREAD_STACKSIZ on px4fmu-v2/nsh/defconfig
-rw-r--r--nuttx-configs/aerocore/nsh/defconfig7
-rw-r--r--nuttx-configs/px4fmu-v1/nsh/defconfig8
-rw-r--r--nuttx-configs/px4fmu-v2/nsh/defconfig5
3 files changed, 12 insertions, 8 deletions
diff --git a/nuttx-configs/aerocore/nsh/defconfig b/nuttx-configs/aerocore/nsh/defconfig
index dcb132e01..ca444ad95 100644
--- a/nuttx-configs/aerocore/nsh/defconfig
+++ b/nuttx-configs/aerocore/nsh/defconfig
@@ -332,7 +332,7 @@ CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_DRAM_START=0x20000000
CONFIG_DRAM_SIZE=262144
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
-CONFIG_ARCH_INTERRUPTSTACK=2048
+CONFIG_ARCH_INTERRUPTSTACK=1500
#
# Boot options
@@ -415,8 +415,9 @@ CONFIG_PREALLOC_TIMERS=50
#
# Stack and heap information
#
-CONFIG_IDLETHREAD_STACKSIZE=3500
-CONFIG_USERMAIN_STACKSIZE=2600
+# This should be 380 with 28 bytes free
+CONFIG_IDLETHREAD_STACKSIZE=1000
+CONFIG_USERMAIN_STACKSIZE=3000
CONFIG_PTHREAD_STACK_MIN=512
CONFIG_PTHREAD_STACK_DEFAULT=2048
diff --git a/nuttx-configs/px4fmu-v1/nsh/defconfig b/nuttx-configs/px4fmu-v1/nsh/defconfig
index 5bb7bed15..f7a95c1a7 100644
--- a/nuttx-configs/px4fmu-v1/nsh/defconfig
+++ b/nuttx-configs/px4fmu-v1/nsh/defconfig
@@ -424,7 +424,8 @@ CONFIG_BOARD_LOOPSPERMSEC=16717
# Interrupt options
#
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
-CONFIG_ARCH_INTERRUPTSTACK=2048
+# The actual usage is 420 bytes
+CONFIG_ARCH_INTERRUPTSTACK=1500
CONFIG_ARCH_HAVE_HIPRI_INTERRUPT=y
# CONFIG_ARCH_HIPRI_INTERRUPT is not set
@@ -575,8 +576,9 @@ CONFIG_SCHED_LPWORKSTACKSIZE=1800
#
# Stack and heap information
#
-CONFIG_IDLETHREAD_STACKSIZE=3500
-CONFIG_USERMAIN_STACKSIZE=2600
+# This should be 380 with 28 bytes free
+CONFIG_IDLETHREAD_STACKSIZE=1000
+CONFIG_USERMAIN_STACKSIZE=3000
CONFIG_PTHREAD_STACK_MIN=512
CONFIG_PTHREAD_STACK_DEFAULT=2048
# CONFIG_LIB_SYSCALL is not set
diff --git a/nuttx-configs/px4fmu-v2/nsh/defconfig b/nuttx-configs/px4fmu-v2/nsh/defconfig
index aaeb03a08..9f94f0dd3 100644
--- a/nuttx-configs/px4fmu-v2/nsh/defconfig
+++ b/nuttx-configs/px4fmu-v2/nsh/defconfig
@@ -451,7 +451,7 @@ CONFIG_BOARD_LOOPSPERMSEC=16717
# Interrupt options
#
CONFIG_ARCH_HAVE_INTERRUPTSTACK=y
-CONFIG_ARCH_INTERRUPTSTACK=2048
+CONFIG_ARCH_INTERRUPTSTACK=1500
CONFIG_ARCH_HAVE_HIPRI_INTERRUPT=y
# CONFIG_ARCH_HIPRI_INTERRUPT is not set
@@ -588,8 +588,9 @@ CONFIG_SCHED_LPWORKSTACKSIZE=1800
#
# Stack and heap information
#
+# This set to 380 with 28 bytes free
CONFIG_IDLETHREAD_STACKSIZE=380
-CONFIG_USERMAIN_STACKSIZE=2600
+CONFIG_USERMAIN_STACKSIZE=3000
CONFIG_PTHREAD_STACK_MIN=512
CONFIG_PTHREAD_STACK_DEFAULT=2048
# CONFIG_LIB_SYSCALL is not set