Skip to content
Permalink
Browse files

tests: cmsis_v1: properly set stack size

There are limits to CMSIS stack sizes, we can't just
add a number to it. Use the configured maximum.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie authored and nashif committed May 2, 2019
1 parent 8502a2e commit 68a55fc84cfcf87d590dc66a3fadaa04907b1ed0
Showing with 1 addition and 5 deletions.
  1. +1 −5 tests/cmsis_rtos_v1/src/thread_apis.c
@@ -8,11 +8,7 @@
#include <kernel.h>
#include <cmsis_os.h>

#ifdef CONFIG_COVERAGE
#define STACKSZ (512 + CONFIG_TEST_EXTRA_STACKSIZE)
#else
#define STACKSZ (512U)
#endif
#define STACKSZ CONFIG_CMSIS_THREAD_MAX_STACK_SIZE

static osPriority osPriorityDeadline = 10;

0 comments on commit 68a55fc

Please sign in to comment.
You can’t perform that action at this time.