MYNEWT-619 Splitty - Console does not output The problem was a stack overflow. The "task1" stack was only 32 words. This wasn't enough for the logging that it performs.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/b9a8ae72 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b9a8ae72 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b9a8ae72 Branch: refs/heads/develop Commit: b9a8ae72bcabdd046d4f564905939deeea4fe46b Parents: 6b0d977 Author: Christopher Collins <ccoll...@apache.org> Authored: Mon Feb 6 13:51:46 2017 -0800 Committer: Christopher Collins <ccoll...@apache.org> Committed: Mon Feb 6 13:54:35 2017 -0800 ---------------------------------------------------------------------- apps/splitty/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/b9a8ae72/apps/splitty/src/main.c ---------------------------------------------------------------------- diff --git a/apps/splitty/src/main.c b/apps/splitty/src/main.c index 9bf5ca6..267b4bc 100755 --- a/apps/splitty/src/main.c +++ b/apps/splitty/src/main.c @@ -44,7 +44,7 @@ /* Task 1 */ #define TASK1_PRIO (8) -#define TASK1_STACK_SIZE OS_STACK_ALIGN(32) +#define TASK1_STACK_SIZE OS_STACK_ALIGN(128) #define MAX_CBMEM_BUF 300 static struct os_task task1; static volatile int g_task1_loops;