Skip to content

Commit a08fc2b

Browse files
committed
Move CRP out of startup and into CRP.c so it can be conditionally compiled
1 parent fc503b8 commit a08fc2b

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* mbed Microcontroller Library
2+
* Copyright (c) 2017 ARM Limited
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
#if !defined(MBED_APP_START) // do not include CRP if there is a bootloader.
17+
long CRP_Key __attribute__((section(".ARM.__at_0x000002FC "))) = 0xFFFFFFFF;
18+
#endif

targets/TARGET_NXP/TARGET_LPC176X/device/TOOLCHAIN_ARM_STD/startup_LPC17xx.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ __Vectors DCD __initial_sp ; Top of Stack
8282
DCD PLL1_IRQHandler ; 48: PLL1 Lock (USB PLL)
8383

8484

85-
IF :LNOT::DEF:NO_CRP
86-
AREA |.ARM.__at_0x02FC|, CODE, READONLY
87-
CRP_Key DCD 0xFFFFFFFF
88-
ENDIF
89-
90-
9185
AREA |.text|, CODE, READONLY
9286

9387

0 commit comments

Comments
 (0)