diff options
-rw-r--r-- | apps/examples/cc3000/Makefile | 2 | ||||
-rw-r--r-- | apps/examples/cc3000/cc3000basic.c | 27 | ||||
-rw-r--r-- | apps/examples/cc3000/shell.h | 4 |
3 files changed, 28 insertions, 5 deletions
diff --git a/apps/examples/cc3000/Makefile b/apps/examples/cc3000/Makefile index 37910b841..2c29be4e1 100644 --- a/apps/examples/cc3000/Makefile +++ b/apps/examples/cc3000/Makefile @@ -41,7 +41,7 @@ include $(APPDIR)/Make.defs APPNAME = c3b PRIORITY = SCHED_PRIORITY_DEFAULT -STACKSIZE = 660 +STACKSIZE = 664 APPNAME1 = shell PRIORITY1 = SCHED_PRIORITY_DEFAULT diff --git a/apps/examples/cc3000/cc3000basic.c b/apps/examples/cc3000/cc3000basic.c index 6bce7e03b..3316b9234 100644 --- a/apps/examples/cc3000/cc3000basic.c +++ b/apps/examples/cc3000/cc3000basic.c @@ -79,14 +79,29 @@ * | * +---> CC3000 pin * - * ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ +/* + * Memory Analyses + * total used free largest + * Mem: 16560 11144 5416 5384 + * PID SIZE USED THREAD NAME + * 0 0 0 Idle Ta + * 1 796 772 init + * 2 660 644 c3b + * 3 332 316 <pthread0 + * + * 8 460 436 <pthread0 + * + * 9 292 268 <pthread + * 10 492 468 Telnet dd + * 11 960 940 Telnet sd + */ -#include <nuttx/config.h> + #include <nuttx/config.h> #include "board.h" #include <stdio.h> @@ -129,6 +144,11 @@ void ShowInformation(void); #define US_PER_MS 1000 #define US_PER_SEC 1000000 +/* Define to help debug stack size issues */ + +#undef CONFIG_EXAMPLE_CC3000_MEM_CHECK + + /**************************************************************************** * Private Data ****************************************************************************/ @@ -392,6 +412,9 @@ void Initialize(void) printf("Initializing CC3000...\n"); CC3000_Init(); +#ifdef CONFIG_EXAMPLE_CC3000_MEM_CHECK + stkmon_disp(); +#endif printf(" CC3000 init complete.\n"); if (nvmem_read_sp_version(fancyBuffer) == 0) diff --git a/apps/examples/cc3000/shell.h b/apps/examples/cc3000/shell.h index c25da9c0e..ded2554b2 100644 --- a/apps/examples/cc3000/shell.h +++ b/apps/examples/cc3000/shell.h @@ -59,7 +59,7 @@ #endif #ifndef CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE -# define CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE 580 +# define CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE 492 #endif #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTPRIO @@ -67,7 +67,7 @@ #endif #ifndef CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE -# define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 990 +# define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 964 #endif #undef CONFIG_EXAMPLE_CC3000_MEM_CHECK |