apps/system/system: A much larger stack is needed to run reliably on the simulation.

This commit is contained in:
Gregory Nutt 2016-08-25 13:22:06 -06:00
parent 743234ea40
commit b1d44a81b4
2 changed files with 11 additions and 2 deletions

View File

@ -1890,7 +1890,10 @@ examples/smp
examples/system examples/system
^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
This is a simple test of the system() command. This is a simple test of the system() command. The test simply executes this
system command:
ret = system("ls -Rl /");
examples/tcpecho examples/tcpecho
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^

View File

@ -15,10 +15,16 @@ if SYSTEM_SYSTEM
config SYSTEM_SYSTEM_STACKSIZE config SYSTEM_SYSTEM_STACKSIZE
int "system stack size" int "system stack size"
default 1536 default 2048 if !ARCH_SIM
default 4096 if ARCH_SIM
---help--- ---help---
The size of stack allocated for the shell. The size of stack allocated for the shell.
NOTE: I needed to set the stack size quite large to get this example
working on the simulated target (perhaps because of the 64-bit
stack?). I assume that a smaller stack would be okay on real
hardware, but I have not yet verified that.
config SYSTEM_SYSTEM_PRIORITY config SYSTEM_SYSTEM_PRIORITY
int "system priority" int "system priority"
default 100 default 100