From 492243f80103b48182a57ce539b26740c4241b87 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sun, 6 May 2018 15:19:38 +0200 Subject: [PATCH 1/5] Added _pvHeapStart entry This is needed for Semihosting --- right/src/link/MK22FN512xxx12_flash.ld | 1 + 1 file changed, 1 insertion(+) diff --git a/right/src/link/MK22FN512xxx12_flash.ld b/right/src/link/MK22FN512xxx12_flash.ld index dd1e065..7c724c9 100644 --- a/right/src/link/MK22FN512xxx12_flash.ld +++ b/right/src/link/MK22FN512xxx12_flash.ld @@ -236,6 +236,7 @@ SECTIONS . = ALIGN(8); __end__ = .; PROVIDE(end = .); + _pvHeapStart = .; /* Add for _sbrk */ __HeapBase = .; . += HEAP_SIZE; __HeapLimit = .; From c3407e1410e1d8e00f721ef15b2345579735caaa Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sun, 6 May 2018 15:22:24 +0200 Subject: [PATCH 2/5] Added Makefiles as linked resources, so they show up in the IDE --- left/build/.project | 10 ++++++++++ right/build/.project | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/left/build/.project b/left/build/.project index 2449508..bbecb43 100644 --- a/left/build/.project +++ b/left/build/.project @@ -31,6 +31,16 @@ org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + Makedefs.mk + 1 + PARENT-2-PROJECT_LOC/scripts/Makedefs.mk + + + Makefile + 1 + PARENT-1-PROJECT_LOC/Makefile + drivers 2 diff --git a/right/build/.project b/right/build/.project index b54366a..0e8d94f 100644 --- a/right/build/.project +++ b/right/build/.project @@ -30,6 +30,16 @@ org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + Makedefs.mk + 1 + PARENT-2-PROJECT_LOC/scripts/Makedefs.mk + + + Makefile + 1 + PARENT-1-PROJECT_LOC/Makefile + bootloader-shared 2 From 58fa1ed6a47847bf34c6b12cee7df350ab0ecf84 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sun, 6 May 2018 15:38:07 +0200 Subject: [PATCH 3/5] Use the bundled Makefiles instead of having the IDE generate them automatically --- left/build/.cproject | 12 ++++++------ right/build/.cproject | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/left/build/.cproject b/left/build/.cproject index 7f7de42..541e3ae 100644 --- a/left/build/.cproject +++ b/left/build/.cproject @@ -5,16 +5,16 @@ + - - +