The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
160:5571c4ff569f
Parent:
140:97feb9bacc10
--- a/TARGET_NRF52840_DK/TOOLCHAIN_GCC_ARM/NRF52840.ld	Thu Nov 23 11:44:04 2017 +0000
+++ b/TARGET_NRF52840_DK/TOOLCHAIN_GCC_ARM/NRF52840.ld	Wed Jan 17 16:13:02 2018 +0000
@@ -16,9 +16,17 @@
 
 /* Linker script to configure memory regions. */
 
+#if !defined(MBED_APP_START)
+    #define MBED_APP_START 0x21000
+#endif
+
+#if !defined(MBED_APP_SIZE)
+  #define MBED_APP_SIZE 0xDF000
+#endif
+
 MEMORY
 {
-  FLASH (rx) : ORIGIN = 0x21000, LENGTH = 0xDF000
+  FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
   RAM (rwx) :  ORIGIN = 0x20003288, LENGTH = 0x3cd78
 }
 
@@ -130,7 +138,7 @@
         PROVIDE(__start_fs_data = .);
         KEEP(*(.fs_data))
         PROVIDE(__stop_fs_data = .);
-        
+
         *(.jcr)
         . = ALIGN(4);
         /* All data end */
@@ -146,7 +154,7 @@
       KEEP(*(.noinit))
       PROVIDE(__stop_noinit = .);
     } > RAM
-    
+
     .bss :
     {
         . = ALIGN(4);