Skip to content

Commit a814078

Browse files
author
Deepika
committed
Target_UNO_91H: Remove custom _sbrk, update heap limits
1 parent 73f4a52 commit a814078

File tree

4 files changed

+5
-88
lines changed

4 files changed

+5
-88
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/TOOLCHAIN_ARM_STD/sys.cpp

Lines changed: 0 additions & 36 deletions
This file was deleted.

targets/TARGET_RDA/TARGET_UNO_91H/device/TOOLCHAIN_GCC_ARM/TARGET_UNO_91H/RDA5981C.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ SECTIONS
166166
__end__ = .;
167167
end = __end__;
168168
*(.heap*)
169+
. = ORIGIN(DRAM) + LENGTH(DRAM);
169170
__HeapLimit = .;
170171
} > DRAM
171172
PROVIDE(__sbrk_start = ADDR(.heap));

targets/TARGET_RDA/TARGET_UNO_91H/device/TOOLCHAIN_GCC_ARM/rda_retarget.c

Lines changed: 0 additions & 37 deletions
This file was deleted.

targets/TARGET_RDA/mbed_rtx.h

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,13 @@
2929
#define OS_CLOCK 160000000
3030
#endif
3131

32-
#if defined(__CC_ARM)
32+
#if defined(__ARMCC_VERSION)
3333
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
3434
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
35-
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
36-
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
37-
#define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
38-
#define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
39-
#define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
40-
#define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
35+
#define HEAP_START Image$$ARM_LIB_HEAP$$ZI$$Base
36+
#define HEAP_SIZE Image$$ARM_LIB_HEAP$$ZI$$Length
4137
#elif defined(__GNUC__)
42-
extern uint32_t __StackTop[];
43-
extern uint32_t __StackLimit[];
44-
extern uint32_t __end__[];
45-
extern uint32_t __HeapLimit[];
46-
#define HEAP_START ((unsigned char*)__end__)
47-
#define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
48-
#define ISR_STACK_START ((unsigned char*)__StackLimit)
49-
#define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
38+
/* No region declarations needed */
5039
#elif defined(__ICCARM__)
5140
/* No region declarations needed */
5241
#else

0 commit comments

Comments
 (0)