chg: increase stack size - hf mfu simlation needs it

This commit is contained in:
iceman1001 2020-06-14 12:16:27 +02:00
commit 62ce1cdf13
2 changed files with 3 additions and 2 deletions

View file

@ -361,9 +361,10 @@ static void SendStatus(void) {
#endif #endif
printConnSpeed(); printConnSpeed();
DbpString(_CYAN_("Various")); DbpString(_CYAN_("Various"));
// pointer arithmetic is times 4. (two shifts to the left)
for (uint32_t *p = &_stack_start; ; ++p) { for (uint32_t *p = &_stack_start; ; ++p) {
if (*p != 0xdeadbeef) { if (*p != 0xdeadbeef) {
Dbprintf(" Max stack usage so far..%d", (&_stack_end - p)*4); Dbprintf(" Max stack usage.........%d / %d bytes", (&_stack_end - p) << 2, (&_stack_end - &_stack_start) << 2);
break; break;
} }
} }

View file

@ -9,7 +9,7 @@ ms of the GNU GPL, version 2 or,
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
*/ */
stacksize = DEFINED(stacksize) ? stacksize : 5K; stacksize = DEFINED(stacksize) ? stacksize : 6K;
commonareasize = 0x20; commonareasize = 0x20;
/* AT91SAM7S256 has 256k Flash and 64k RAM */ /* AT91SAM7S256 has 256k Flash and 64k RAM */