Skip to content

Commit 25a127e

Browse files
author
Deepika
committed
target_Gigadevice: Set the heap size and limit
1 parent e03455a commit 25a127e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

targets/TARGET_GigaDevice/TARGET_GD32F30X/TARGET_GD32F307VG/device/TOOLCHAIN_GCC_ARM/GD32F307xG.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ SECTIONS
110110
__end__ = .;
111111
end = __end__;
112112
*(.heap*)
113+
. = ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;
113114
__HeapLimit = .;
114115
} > RAM
115116

targets/TARGET_GigaDevice/mbed_rtx.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,4 @@
4545

4646
#endif
4747

48-
#if (defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC_VERSION) && defined(TWO_RAM_REGIONS))
49-
extern uint32_t __StackLimit[];
50-
extern uint32_t __StackTop[];
51-
extern uint32_t __end__[];
52-
extern uint32_t __HeapLimit[];
53-
#define HEAP_START ((unsigned char*)__end__)
54-
#define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
55-
#define ISR_STACK_START ((unsigned char*)__StackLimit)
56-
#define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
57-
#endif
58-
5948
#endif /* MBED_MBED_RTX_H */

0 commit comments

Comments
 (0)