Reduce exception stacks to 384 bytes on nrf52 and nrf51. Looks like stack use 
was over 200 bytes so I added more for stacked exception


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/e6194a93
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/e6194a93
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/e6194a93

Branch: refs/heads/master
Commit: e6194a9385ffb96e7a406883c452255612acc6ab
Parents: 5917f1d
Author: wes3 <w...@micosa.io>
Authored: Tue Feb 2 09:13:19 2016 -0800
Committer: wes3 <w...@micosa.io>
Committed: Tue Feb 2 09:13:19 2016 -0800

----------------------------------------------------------------------
 hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s  | 6 +-----
 hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s | 8 ++------
 2 files changed, 3 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/e6194a93/hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s 
b/hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s
index 1a9c5f5..d400fab 100755
--- a/hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s
+++ b/hw/bsp/nrf51dk/src/arch/cortex_m0/gcc_startup_nrf51.s
@@ -54,11 +54,7 @@ expected to be copied into the application project folder 
prior to its use!
 
     .section .stack
     .align 3
-#ifdef __STACK_SIZE
-    .equ    Stack_Size, __STACK_SIZE
-#else
-    .equ    Stack_Size, 512
-#endif
+    .equ    Stack_Size, 384
     .globl    __StackTop
     .globl    __StackLimit
 __StackLimit:

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/e6194a93/hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s 
b/hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s
index 54fb2af..9983efa 100755
--- a/hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s
+++ b/hw/bsp/nrf52pdk/src/arch/cortex_m4/gcc_startup_nrf52.s
@@ -54,11 +54,7 @@ expected to be copied into the application project folder 
prior to its use!
 
     .section .stack
     .align 3
-#ifdef __STACK_SIZE
-    .equ    Stack_Size, __STACK_SIZE
-#else
-    .equ    Stack_Size, 2048
-#endif
+    .equ    Stack_Size, 384
     .globl    __StackTop
     .globl    __StackLimit
 __StackLimit:
@@ -179,7 +175,7 @@ Reset_Handler:
     str    r0, [r2,r3]
     bgt    .LC1
 .LC0:
-    
+
     LDR     R0, =SystemInit
     BLX     R0
     LDR     R0, =_start

Reply via email to