Skip to content

Commit 3157d5a

Browse files
committed
[LPC4088] Making it possible to reserve stack space by weak function.
1 parent a1a2fec commit 3157d5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ extern "C" {
1111

1212
#include <rt_misc.h>
1313
#include <stdint.h>
14+
#include "sys_helper.h"
1415

1516
extern char Image$$RW_IRAM1$$ZI$$Limit[];
1617

@@ -22,7 +23,7 @@ extern __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_
2223

2324
struct __initial_stackheap r;
2425
r.heap_base = zi_limit;
25-
r.heap_limit = sp_limit;
26+
r.heap_limit = sp_limit - __reserved_stack_size();
2627
return r;
2728
}
2829

workspace_tools/export/uvision4_lpc4088.uvopt.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</DaveTm>
2222

2323
<Target>
24-
<TargetName>mbed NXP LPC1768</TargetName>
24+
<TargetName>mbed NXP LPC4088</TargetName>
2525
<ToolsetNumber>0x4</ToolsetNumber>
2626
<ToolsetName>ARM-ADS</ToolsetName>
2727
<TargetOption>

0 commit comments

Comments
 (0)