From 5fdc27f1f89ef63be435c0582bcf2414e97697eb Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Fri, 23 Sep 2016 00:40:29 +0800 Subject: [PATCH] Allocate another 1K bytes to CC2538 stack (#654) Reduce the size of message buffer to save 1k bytes SRAM space for stack. --- examples/platforms/cc2538/startup-gcc.c | 2 +- src/core/openthread-core-default-config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/cc2538/startup-gcc.c b/examples/platforms/cc2538/startup-gcc.c index 06b09cad0..67f280597 100644 --- a/examples/platforms/cc2538/startup-gcc.c +++ b/examples/platforms/cc2538/startup-gcc.c @@ -59,7 +59,7 @@ extern void RFCoreRxTxIntHandler(void); extern void RFCoreErrIntHandler(void); extern void main(void); -static uint64_t stack[384] __attribute__((section(".stack"))); +static uint64_t stack[512] __attribute__((section(".stack"))); __attribute__((section(".vectors"), used)) void (*const vectors[])(void) = diff --git a/src/core/openthread-core-default-config.h b/src/core/openthread-core-default-config.h index c2c77f278..4a8580a84 100644 --- a/src/core/openthread-core-default-config.h +++ b/src/core/openthread-core-default-config.h @@ -42,7 +42,7 @@ * */ #ifndef OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS -#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 48 +#define OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS 40 #endif // OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS /**