mirror of https://github.com/ARMmbed/mbed-os.git
Increase available RAM for RTX on LPC11U24
The INITIAL_SP value used by RTX was originally at the 4k limit instead of at the 8k limit. The HEAP_START macro was defined to __HeapLimit but the heap really starts at __end__. __HeapLimit is just used for some link time sanity checks to verify that the heap and stack can grow a bit without colliding.pull/109/head
parent
0abfca2938
commit
10126e0b2f
|
|
@ -203,7 +203,7 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
|
|||
#define INITIAL_SP (0x10008000UL)
|
||||
|
||||
#elif TARGET_LPC11U24
|
||||
#define INITIAL_SP (0x10001000UL)
|
||||
#define INITIAL_SP (0x10002000UL)
|
||||
|
||||
#elif TARGET_LPC1114
|
||||
#define INITIAL_SP (0x10001000UL)
|
||||
|
|
@ -226,8 +226,8 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
|
|||
extern unsigned char Image$$RW_IRAM1$$ZI$$Limit[];
|
||||
#define HEAP_START (Image$$RW_IRAM1$$ZI$$Limit)
|
||||
#elif defined(__GNUC__)
|
||||
extern unsigned char __HeapLimit[];
|
||||
#define HEAP_START (__HeapLimit)
|
||||
extern unsigned char __end__[];
|
||||
#define HEAP_START (__end__)
|
||||
#endif
|
||||
|
||||
void set_main_stack(void) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue