Skip to content

Commit ec1a027

Browse files
committed
Merge pull request #109 from adamgreen/rtxIncreaseRAM
Increase available RAM for RTX on LPC11U24
2 parents 0abfca2 + 10126e0 commit ec1a027

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: libraries/rtos/rtx/RTX_CM_lib.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
203203
#define INITIAL_SP (0x10008000UL)
204204

205205
#elif TARGET_LPC11U24
206-
#define INITIAL_SP (0x10001000UL)
206+
#define INITIAL_SP (0x10002000UL)
207207

208208
#elif TARGET_LPC1114
209209
#define INITIAL_SP (0x10001000UL)
@@ -226,8 +226,8 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL}
226226
extern unsigned char Image$$RW_IRAM1$$ZI$$Limit[];
227227
#define HEAP_START (Image$$RW_IRAM1$$ZI$$Limit)
228228
#elif defined(__GNUC__)
229-
extern unsigned char __HeapLimit[];
230-
#define HEAP_START (__HeapLimit)
229+
extern unsigned char __end__[];
230+
#define HEAP_START (__end__)
231231
#endif
232232

233233
void set_main_stack(void) {

0 commit comments

Comments
 (0)