ARM: Increase stack size above 1KB on ARM as printf() observed to use ~1700 bytes on GCC toolchain used during development.

This commit is contained in:
Kelvin Lawson
2013-03-07 02:59:35 +00:00
parent 3db5731941
commit 0aa74332d4
2 changed files with 8 additions and 3 deletions

View File

@@ -48,8 +48,8 @@ extern void dbg_format_msg (char *format, ...) ;
*/
#define _STR(x) x
/* Default thread stack size (in bytes) */
#define TEST_THREAD_STACK_SIZE 1024
/* Default thread stack size (in bytes). Allow plenty for printf(). */
#define TEST_THREAD_STACK_SIZE 4096
/* Uncomment to enable logging of stack usage to UART */
/* #define TESTS_LOG_STACK_USAGE */

View File

@@ -63,8 +63,13 @@
* stack saves and context switch saves, but the application main thread
* will generally be carrying out more nested function calls and require
* stack for application code local variables etc.
*
* 1KB might be adequate but if using printf() then at least 2KB would be
* prudent otherwise the stdio functions otherwise stack overruns are
* likely. Nearly 2KB was seen to be used on the toolchain used for
* development.
*/
#define MAIN_STACK_SIZE_BYTES 1024
#define MAIN_STACK_SIZE_BYTES 4096
/* Local data */