ads1115 only

Fork of mbed by mbed official

Revision:
122:f9eeca106725
Parent:
99:dbbf35b96557
--- a/TARGET_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld	Wed May 25 16:44:06 2016 +0100
+++ b/TARGET_NRF51822/TOOLCHAIN_GCC_ARM/NRF51822.ld	Thu Jul 07 14:34:11 2016 +0100
@@ -124,18 +124,20 @@
 		__bss_end__ = .;
 	} > RAM
 
-	.heap (COPY):
+	.heap (NOLOAD):
 	{
 		__end__ = .;
 		end = __end__;
+		__HeapBase = .;
 		*(.heap*)
+		. = ORIGIN(RAM) + LENGTH(RAM) - Stack_Size;
 		__HeapLimit = .;
 	} > RAM
 
 	/* .stack_dummy section doesn't contains any symbols. It is only
 	 * used for linker to calculate size of stack sections, and assign
 	 * values to stack symbols later */
-	.stack_dummy (COPY):
+	.stack_dummy (NOLOAD):
 	{
 		*(.stack*)
 	} > RAM