File tree Expand file tree Collapse file tree 4 files changed +34
-8
lines changed
targets/TARGET_NXP/TARGET_LPC176X/device Expand file tree Collapse file tree 4 files changed +34
-8
lines changed Original file line number Diff line number Diff line change
1
+ #! armcc -E
1
2
2
- LR_IROM1 0x00000000 0x80000 { ; load region size_region
3
- ER_IROM1 0x00000000 0x80000 { ; load address = execution address
3
+ #if !defined(MBED_APP_START)
4
+ #define MBED_APP_START 0x00000000
5
+ #endif
6
+
7
+ #if !defined(MBED_APP_SIZE)
8
+ #define MBED_APP_SIZE 0x80000
9
+ #endif
10
+
11
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
12
+ ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
4
13
*.o (RESET, +First)
5
14
*(InRoot$$Sections)
6
15
.ANY (+RO)
Original file line number Diff line number Diff line change
1
+ #! armcc -E
1
2
2
- LR_IROM1 0x00000000 0x80000 { ; load region size_region
3
- ER_IROM1 0x00000000 0x80000 { ; load address = execution address
3
+ #if !defined(MBED_APP_START)
4
+ #define MBED_APP_START 0x00000000
5
+ #endif
6
+
7
+ #if !defined(MBED_APP_SIZE)
8
+ #define MBED_APP_SIZE 0x80000
9
+ #endif
10
+
11
+ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
12
+ ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
4
13
*.o (RESET, +First)
5
14
*(InRoot$$Sections)
6
15
.ANY (+RO)
Original file line number Diff line number Diff line change 1
1
/* Linker script for mbed LPC1768 */
2
+ #if !defined(MBED_APP_START)
3
+ #define MBED_APP_START 0x00000000
4
+ #endif
2
5
6
+ #if !defined(MBED_APP_SIZE)
7
+ #define MBED_APP_SIZE 512K
8
+ #endif
3
9
/* Linker script to configure memory regions. */
4
10
MEMORY
5
11
{
6
- FLASH (rx) : ORIGIN = 0x00000000 , LENGTH = 512K
12
+ FLASH (rx) : ORIGIN = MBED_APP_START , LENGTH = MBED_APP_SIZE
7
13
RAM (rwx) : ORIGIN = 0x100000C8, LENGTH = (32K - 0xC8 - 32) /* topmost 32 bytes used by IAP functions */
8
14
9
15
USB_RAM (rwx) : ORIGIN = 0x2007C000, LENGTH = 16K
Original file line number Diff line number Diff line change
1
+ if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x00000000; }
2
+ if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x80000; }
1
3
/*###ICF### Section handled by ICF editor, don't touch! ****/
2
4
/*-Editor annotation file-*/
3
5
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
4
6
/*-Specials-*/
5
- define symbol __ICFEDIT_intvec_start__ = 0x00000000 ;
7
+ define symbol __ICFEDIT_intvec_start__ = MBED_APP_START ;
6
8
/*-Memory Regions-*/
7
- define symbol __ICFEDIT_region_ROM_start__ = 0x00000000 ;
8
- define symbol __ICFEDIT_region_ROM_end__ = 0x0007FFFF ;
9
+ define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START ;
10
+ define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1 ;
9
11
define symbol __ICFEDIT_region_NVIC_start__ = 0x10000000;
10
12
define symbol __ICFEDIT_region_NVIC_end__ = 0x100000C7;
11
13
define symbol __ICFEDIT_region_RAM_start__ = 0x100000C8;
You can’t perform that action at this time.
0 commit comments