File tree Expand file tree Collapse file tree 4 files changed +24
-18
lines changed
targets/TARGET_NXP/TARGET_LPC176X/device Expand file tree Collapse file tree 4 files changed +24
-18
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,4 @@ performed on the device.
51
51
#define CRP CRP_NONE
52
52
#endif
53
53
54
- #if defined (__ICCARM__ )
55
- __root const long CRP_Key @APPLICATION_ADDR + 0x000002FC = CRP ;
56
- #elif defined (__ARMCC_VERSION )
57
- const long CRP_Key __attribute__((used )) __attribute__((at (APPLICATION_ADDR + 0x000002FC ))) = CRP ;
58
- #elif defined (__GNUC__ )
59
- const long CRP_Key __attribute__((used )) __attribute__((section (".CRPSection" ))) = CRP ;
60
- #endif
54
+ MBED_SECTION (".CRPSection" ) MBED_USED const long CRP_Key = CRP ;
Original file line number Diff line number Diff line change 9
9
#endif
10
10
11
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
13
- *.o (RESET, +First)
14
- *(InRoot$$Sections)
15
- .ANY (+RO)
12
+ ER_IROM0 MBED_APP_START 0x2FC { ; load address = execution address
13
+ *.o (RESET, +First)
14
+ .ANY (+RO)
15
+ }
16
+ ER_CRP (MBED_APP_START + 0x2FC) FIXED 4 {
17
+ *.o (.CRPSection)
18
+ }
19
+ ER_IROM1 (MBED_APP_START + (0x2FC + 4)) FIXED (MBED_APP_SIZE - (0x2FC + 4)) {
20
+ *(InRoot$$Sections)
21
+ .ANY (+RO)
16
22
}
17
23
; 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8
18
24
; 32KB (RAM size) - 0xC8 (NIVT) - 32 (topmost 32 bytes used by IAP functions) = 0x7F18
Original file line number Diff line number Diff line change 9
9
#endif
10
10
11
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
13
- *.o (RESET, +First)
14
- *(InRoot$$Sections)
15
- .ANY (+RO)
12
+ ER_IROM0 MBED_APP_START 0x2FC { ; load address = execution address
13
+ *.o (RESET, +First)
14
+ .ANY (+RO)
15
+ }
16
+ ER_CRP (MBED_APP_START + 0x2FC) FIXED 4 {
17
+ *.o (.CRPSection)
18
+ }
19
+ ER_IROM1 (MBED_APP_START + (0x2FC + 4)) FIXED (MBED_APP_SIZE - (0x2FC + 4)) {
20
+ *(InRoot$$Sections)
21
+ .ANY (+RO)
16
22
}
17
23
; 8_byte_aligned(49 vect * 4 bytes) = 8_byte_aligned(0xC4) = 0xC8
18
24
; 32KB (RAM size) - 0xC8 (NIVT) - 32 (topmost 32 bytes used by IAP functions) = 0x7F18
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ define symbol __ICFEDIT_size_cstack__ = 0x1000;
19
19
define symbol __ICFEDIT_size_heap__ = 0x2000;
20
20
/**** End of ICF editor section. ###ICF###*/
21
21
22
- define symbol __CRP_start__ = 0x000002FC;
23
- define symbol __CRP_end__ = 0x000002FF;
22
+ define symbol __CRP_start__ = MBED_APP_START + 0x000002FC;
23
+ define symbol __CRP_end__ = MBED_APP_START + 0x000002FF;
24
24
25
25
define symbol __RAM1_start__ = 0x2007C000;
26
26
define symbol __RAM1_end__ = 0x20083FFF;
@@ -43,5 +43,5 @@ place in ROM_region { readonly };
43
43
place in RAM_region { readwrite,
44
44
block HEAP, block CSTACK };
45
45
46
- place in CRP_region { section .crp };
46
+ place in CRP_region { section .CRPSection };
47
47
place in RAM1_region { section .ethusbram };
You can’t perform that action at this time.
0 commit comments