From f7a51e7bde3082ea406b9e3d4e6e160ce2cd71c8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 27 Oct 2013 18:52:21 -0600 Subject: apps/examples/cc3000: Updated by David Sidrane --- apps/examples/cc3000/Makefile | 2 +- apps/examples/cc3000/cc3000basic.c | 27 +++++++++++++++++++++++++-- apps/examples/cc3000/shell.h | 4 ++-- 3 files changed, 28 insertions(+), 5 deletions(-) (limited to 'apps/examples') 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 + #include #include "board.h" #include @@ -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 -- cgit v1.2.3