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.
Diff: TARGET_LPC1768/TOOLCHAIN_GCC_ARM/LPC1768.ld
- Revision:
- 154:fb8e0ae1cceb
- Parent:
- 145:64910690c574
diff -r b484a57bc302 -r fb8e0ae1cceb TARGET_LPC1768/TOOLCHAIN_GCC_ARM/LPC1768.ld --- a/TARGET_LPC1768/TOOLCHAIN_GCC_ARM/LPC1768.ld Wed Oct 11 12:36:33 2017 +0100 +++ b/TARGET_LPC1768/TOOLCHAIN_GCC_ARM/LPC1768.ld Wed Oct 25 14:40:21 2017 +0100 @@ -1,9 +1,15 @@ /* Linker script for mbed LPC1768 */ +#if !defined(MBED_APP_START) + #define MBED_APP_START 0x00000000 +#endif +#if !defined(MBED_APP_SIZE) + #define MBED_APP_SIZE 512K +#endif /* Linker script to configure memory regions. */ MEMORY { - FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K + FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE RAM (rwx) : ORIGIN = 0x100000C8, LENGTH = (32K - 0xC8 - 32) /* topmost 32 bytes used by IAP functions */ USB_RAM(rwx) : ORIGIN = 0x2007C000, LENGTH = 16K @@ -43,6 +49,10 @@ .text : { KEEP(*(.isr_vector)) + /* Code Read Protect data */ + . = 0x000002FC ; + KEEP(*(.CRPSection)) + /* End of Code Read Protect */ *(.text*) KEEP(*(.init)) @@ -65,6 +75,8 @@ *(.rodata*) KEEP(*(.eh_frame*)) + + } > FLASH .ARM.extab :