Skip to content

Commit b7ca64b

Browse files
committed
MIMXRT1050: Update linker scripts & startup files from SDK 2.6
Signed-off-by: Mahesh Mahadevan <[email protected]>
1 parent aaa4a91 commit b7ca64b

File tree

6 files changed

+137
-324
lines changed

6 files changed

+137
-324
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_ARM_STD/MIMXRT1052xxxxx.sct

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,17 @@
88
**
99
** Compiler: Keil ARM C/C++ Compiler
1010
** Reference manual: IMXRT1050RM Rev.1, 03/2018
11-
** Version: rev. 0.1, 2017-01-10
12-
** Build: b180606
11+
** Version: rev. 1.0, 2018-09-21
12+
** Build: b180921
1313
**
1414
** Abstract:
1515
** Linker file for the Keil ARM C/C++ Compiler
1616
**
17-
** The Clear BSD License
1817
** Copyright 2016 Freescale Semiconductor, Inc.
1918
** Copyright 2016-2018 NXP
2019
** All rights reserved.
2120
**
22-
** Redistribution and use in source and binary forms, with or without
23-
** modification, are permitted (subject to the limitations in the
24-
** disclaimer below) provided that the following conditions are met:
25-
**
26-
** * Redistributions of source code must retain the above copyright
27-
** notice, this list of conditions and the following disclaimer.
28-
**
29-
** * Redistributions in binary form must reproduce the above copyright
30-
** notice, this list of conditions and the following disclaimer in the
31-
** documentation and/or other materials provided with the distribution.
32-
**
33-
** * Neither the name of the copyright holder nor the names of its
34-
** contributors may be used to endorse or promote products derived from
35-
** this software without specific prior written permission.
36-
**
37-
** NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
38-
** GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
39-
** HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
40-
** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
41-
** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
42-
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
43-
** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
44-
** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
45-
** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
46-
** BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47-
** WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
48-
** OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
49-
** IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21+
** SPDX-License-Identifier: BSD-3-Clause
5022
**
5123
** http: www.nxp.com
5224
@@ -146,8 +118,8 @@ LR_IROM1 m_flash_config_start m_text_start+m_text_size-m_flash_config_start {
146118
}
147119
ARM_LIB_STACK m_data_start+m_data_size EMPTY -Stack_Size { ; Stack region growing down
148120
}
149-
RW_m_ram_text m_text2_start UNINIT m_text2_size { ; load address = execution address
150-
* (RamFunction)
121+
RW_m_ram_text m_text2_start m_text2_size {
122+
* (CodeQuickAccess)
151123
}
152124
RW_m_ncache m_ncache_start m_ncache_size { ; ncache RW data
153125
* (NonCacheable.init)

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_ARM_STD/startup_MIMXRT1052.S

Lines changed: 25 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,16 @@
22
; * @file: startup_MIMXRT1052.s
33
; * @purpose: CMSIS Cortex-M7 Core Device Startup File
44
; * MIMXRT1052
5-
; * @version: 0.1
6-
; * @date: 2017-1-10
7-
; * @build: b180509
5+
; * @version: 1.2
6+
; * @date: 2018-11-27
7+
; * @build: b190124
88
; * -------------------------------------------------------------------------
99
; *
10-
; * The Clear BSD License
1110
; * Copyright 1997-2016 Freescale Semiconductor, Inc.
12-
; * Copyright 2016-2018 NXP
11+
; * Copyright 2016-2019 NXP
1312
; * All rights reserved.
1413
; *
15-
; * Redistribution and use in source and binary forms, with or without
16-
; * modification, are permitted (subject to the limitations in the
17-
; * disclaimer below) provided that the following conditions are met:
18-
; *
19-
; * * Redistributions of source code must retain the above copyright
20-
; * notice, this list of conditions and the following disclaimer.
21-
; *
22-
; * * Redistributions in binary form must reproduce the above copyright
23-
; * notice, this list of conditions and the following disclaimer in the
24-
; * documentation and/or other materials provided with the distribution.
25-
; *
26-
; * * Neither the name of the copyright holder nor the names of its
27-
; * contributors may be used to endorse or promote products derived from
28-
; * this software without specific prior written permission.
29-
; *
30-
; * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
31-
; * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
32-
; * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
33-
; * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
34-
; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
35-
; * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
36-
; * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37-
; * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38-
; * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
39-
; * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40-
; * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
41-
; * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
42-
; * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14+
; * SPDX-License-Identifier: BSD-3-Clause
4315
; *
4416
; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------
4517
; *
@@ -137,10 +109,10 @@ __Vectors DCD |Image$$ARM_LIB_STACK$$ZI$$Limit| ; Top of Stack
137109
DCD SAI3_RX_IRQHandler ;SAI3 interrupt
138110
DCD SAI3_TX_IRQHandler ;SAI3 interrupt
139111
DCD SPDIF_IRQHandler ;SPDIF interrupt
140-
DCD ANATOP_EVENT0_IRQHandler ;ANATOP interrupt
141-
DCD ANATOP_EVENT1_IRQHandler ;ANATOP interrupt
142-
DCD ANATOP_TAMP_LOW_HIGH_IRQHandler ;ANATOP interrupt
143-
DCD ANATOP_TEMP_PANIC_IRQHandler ;ANATOP interrupt
112+
DCD PMU_EVENT_IRQHandler ;Brown-out event interrupt
113+
DCD Reserved78_IRQHandler ;Reserved interrupt
114+
DCD TEMP_LOW_HIGH_IRQHandler ;TempSensor low/high interrupt
115+
DCD TEMP_PANIC_IRQHandler ;TempSensor panic interrupt
144116
DCD USB_PHY1_IRQHandler ;USBPHY (UTMI0), Interrupt
145117
DCD USB_PHY2_IRQHandler ;USBPHY (UTMI0), Interrupt
146118
DCD ADC1_IRQHandler ;ADC1 interrupt
@@ -228,14 +200,14 @@ __Vectors DCD |Image$$ARM_LIB_STACK$$ZI$$Limit| ; Top of Stack
228200
DCD PWM4_2_IRQHandler ;PWM4 capture 2, compare 2, or reload 0 interrupt
229201
DCD PWM4_3_IRQHandler ;PWM4 capture 3, compare 3, or reload 0 interrupt
230202
DCD PWM4_FAULT_IRQHandler ;PWM4 fault or reload error interrupt
231-
DCD Reserved168_IRQHandler ;Reserved interrupt
232-
DCD Reserved169_IRQHandler ;Reserved interrupt
233-
DCD Reserved170_IRQHandler ;Reserved interrupt
234-
DCD Reserved171_IRQHandler ;Reserved interrupt
235-
DCD Reserved172_IRQHandler ;Reserved interrupt
236-
DCD Reserved173_IRQHandler ;Reserved interrupt
237-
DCD SJC_ARM_DEBUG_IRQHandler ;SJC ARM debug interrupt
238-
DCD NMI_WAKEUP_IRQHandler ;NMI wake up
203+
DCD DefaultISR ;168
204+
DCD DefaultISR ;169
205+
DCD DefaultISR ;170
206+
DCD DefaultISR ;171
207+
DCD DefaultISR ;172
208+
DCD DefaultISR ;173
209+
DCD DefaultISR ;174
210+
DCD DefaultISR ;175
239211
DCD DefaultISR ;176
240212
DCD DefaultISR ;177
241213
DCD DefaultISR ;178
@@ -781,10 +753,10 @@ Default_Handler\
781753
EXPORT SAI3_RX_DriverIRQHandler [WEAK]
782754
EXPORT SAI3_TX_DriverIRQHandler [WEAK]
783755
EXPORT SPDIF_DriverIRQHandler [WEAK]
784-
EXPORT ANATOP_EVENT0_IRQHandler [WEAK]
785-
EXPORT ANATOP_EVENT1_IRQHandler [WEAK]
786-
EXPORT ANATOP_TAMP_LOW_HIGH_IRQHandler [WEAK]
787-
EXPORT ANATOP_TEMP_PANIC_IRQHandler [WEAK]
756+
EXPORT PMU_EVENT_IRQHandler [WEAK]
757+
EXPORT Reserved78_IRQHandler [WEAK]
758+
EXPORT TEMP_LOW_HIGH_IRQHandler [WEAK]
759+
EXPORT TEMP_PANIC_IRQHandler [WEAK]
788760
EXPORT USB_PHY1_IRQHandler [WEAK]
789761
EXPORT USB_PHY2_IRQHandler [WEAK]
790762
EXPORT ADC1_IRQHandler [WEAK]
@@ -872,14 +844,6 @@ Default_Handler\
872844
EXPORT PWM4_2_IRQHandler [WEAK]
873845
EXPORT PWM4_3_IRQHandler [WEAK]
874846
EXPORT PWM4_FAULT_IRQHandler [WEAK]
875-
EXPORT Reserved168_IRQHandler [WEAK]
876-
EXPORT Reserved169_IRQHandler [WEAK]
877-
EXPORT Reserved170_IRQHandler [WEAK]
878-
EXPORT Reserved171_IRQHandler [WEAK]
879-
EXPORT Reserved172_IRQHandler [WEAK]
880-
EXPORT Reserved173_IRQHandler [WEAK]
881-
EXPORT SJC_ARM_DEBUG_IRQHandler [WEAK]
882-
EXPORT NMI_WAKEUP_IRQHandler [WEAK]
883847
EXPORT DefaultISR [WEAK]
884848
DMA0_DMA16_DriverIRQHandler
885849
DMA1_DMA17_DriverIRQHandler
@@ -942,10 +906,10 @@ SAI2_DriverIRQHandler
942906
SAI3_RX_DriverIRQHandler
943907
SAI3_TX_DriverIRQHandler
944908
SPDIF_DriverIRQHandler
945-
ANATOP_EVENT0_IRQHandler
946-
ANATOP_EVENT1_IRQHandler
947-
ANATOP_TAMP_LOW_HIGH_IRQHandler
948-
ANATOP_TEMP_PANIC_IRQHandler
909+
PMU_EVENT_IRQHandler
910+
Reserved78_IRQHandler
911+
TEMP_LOW_HIGH_IRQHandler
912+
TEMP_PANIC_IRQHandler
949913
USB_PHY1_IRQHandler
950914
USB_PHY2_IRQHandler
951915
ADC1_IRQHandler
@@ -1033,14 +997,6 @@ PWM4_1_IRQHandler
1033997
PWM4_2_IRQHandler
1034998
PWM4_3_IRQHandler
1035999
PWM4_FAULT_IRQHandler
1036-
Reserved168_IRQHandler
1037-
Reserved169_IRQHandler
1038-
Reserved170_IRQHandler
1039-
Reserved171_IRQHandler
1040-
Reserved172_IRQHandler
1041-
Reserved173_IRQHandler
1042-
SJC_ARM_DEBUG_IRQHandler
1043-
NMI_WAKEUP_IRQHandler
10441000
DefaultISR
10451001
LDR R0, =DefaultISR
10461002
BX R0

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/device/TOOLCHAIN_GCC_ARM/MIMXRT1052xxxxx.ld

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,17 @@
77
**
88
** Compiler: GNU C Compiler
99
** Reference manual: IMXRT1050RM Rev.1, 03/2018
10-
** Version: rev. 0.1, 2017-01-10
11-
** Build: b180509
10+
** Version: rev. 1.0, 2018-09-21
11+
** Build: b180921
1212
**
1313
** Abstract:
1414
** Linker file for the GNU C Compiler
1515
**
16-
** The Clear BSD License
1716
** Copyright 2016 Freescale Semiconductor, Inc.
1817
** Copyright 2016-2018 NXP
1918
** All rights reserved.
2019
**
21-
** Redistribution and use in source and binary forms, with or without
22-
** modification, are permitted (subject to the limitations in the
23-
** disclaimer below) provided that the following conditions are met:
24-
**
25-
** * Redistributions of source code must retain the above copyright
26-
** notice, this list of conditions and the following disclaimer.
27-
**
28-
** * Redistributions in binary form must reproduce the above copyright
29-
** notice, this list of conditions and the following disclaimer in the
30-
** documentation and/or other materials provided with the distribution.
31-
**
32-
** * Neither the name of the copyright holder nor the names of its
33-
** contributors may be used to endorse or promote products derived from
34-
** this software without specific prior written permission.
35-
**
36-
** NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
37-
** GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
38-
** HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
39-
** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
40-
** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
41-
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
42-
** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
43-
** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
44-
** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
45-
** BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46-
** WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
47-
** OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
48-
** IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20+
** SPDX-License-Identifier: BSD-3-Clause
4921
**
5022
** http: www.nxp.com
5123
@@ -227,16 +199,15 @@ SECTIONS
227199
. = ALIGN(8);
228200
__data_end__ = .; /* define a global symbol at data end */
229201
} > m_data
230-
231202
__ram_function_flash_start = __DATA_ROM + (__data_end__ - __data_start__); /* Symbol is used by startup for TCM data initialization */
232203

233204
.ram_function : AT(__ram_function_flash_start)
234205
{
235206
. = ALIGN(32);
236-
__ram_function_ram_start = .;
237-
*(RamFunction)
207+
__ram_function_start__ = .;
208+
*(CodeQuickAccess)
238209
. = ALIGN(128);
239-
__ram_function_ram_end = .;
210+
__ram_function_end__ = .;
240211
} > m_text2
241212

242213
__ram_function_size = SIZEOF(.ram_function);

0 commit comments

Comments
 (0)