123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406 |
- ; Copyright (c) 2009-2020 ARM Limited. All rights reserved.
- ;
- ; SPDX-License-Identifier: Apache-2.0
- ;
- ; Licensed under the Apache License, Version 2.0 (the License); you may
- ; not use this file except in compliance with the License.
- ; You may obtain a copy of the License at
- ;
- ; www.apache.org/licenses/LICENSE-2.0
- ;
- ; Unless required by applicable law or agreed to in writing, software
- ; distributed under the License is distributed on an AS IS BASIS, WITHOUT
- ; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- ; See the License for the specific language governing permissions and
- ; limitations under the License.
- ;
- ; NOTICE: This file has been modified by Nordic Semiconductor ASA.
- ; The modules in this file are included in the libraries, and may be replaced
- ; by any user-defined modules that define the PUBLIC symbol _program_start or
- ; a user defined start symbol.
- ; To override the cstartup defined in the library, simply add your modified
- ; version to the workbench project.
- ;
- ; The vector table is normally located at address 0.
- ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
- ; The name "__vector_table" has special meaning for C-SPY:
- ; it is where the SP start value is found, and the NVIC vector
- ; table register (VTOR) is initialized to this address if != 0.
- MODULE ?cstartup
- #if defined(__STARTUP_CONFIG)
- #include "startup_config.h"
- #ifndef __STARTUP_CONFIG_STACK_ALIGNEMENT
- #define __STARTUP_CONFIG_STACK_ALIGNEMENT 3
- #endif
-
- SECTION CSTACK:DATA:NOROOT(__STARTUP_CONFIG_STACK_ALIGNEMENT)
- DS8 __STARTUP_CONFIG_STACK_SIZE
- SECTION HEAP:DATA:NOROOT(3)
- DS8 __STARTUP_CONFIG_HEAP_SIZE
- #else
- ;; Stack size default : Defined in *.icf (linker file). Can be modified inside EW.
- ;; Heap size default : Defined in *.icf (linker file). Can be modified inside EW.
- ;; Forward declaration of sections.
- SECTION CSTACK:DATA:NOROOT(3)
- #endif
- SECTION .intvec:CODE:NOROOT(2)
- EXTERN __iar_program_start
- EXTERN SystemInit
- PUBLIC __vector_table
- PUBLIC __Vectors
- PUBLIC __Vectors_End
- PUBLIC __Vectors_Size
- DATA
- __vector_table
- DCD sfe(CSTACK)
- DCD Reset_Handler
- DCD NMI_Handler
- DCD HardFault_Handler
- DCD MemoryManagement_Handler
- DCD BusFault_Handler
- DCD UsageFault_Handler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD SVC_Handler
- DCD DebugMon_Handler
- DCD 0 ; Reserved
- DCD PendSV_Handler
- DCD SysTick_Handler
- ; External Interrupts
- DCD POWER_CLOCK_IRQHandler
- DCD RADIO_IRQHandler
- DCD UARTE0_UART0_IRQHandler
- DCD TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1_IRQHandler
- DCD SPIM0_SPIS0_SPI0_IRQHandler
- DCD 0 ; Reserved
- DCD GPIOTE_IRQHandler
- DCD SAADC_IRQHandler
- DCD TIMER0_IRQHandler
- DCD TIMER1_IRQHandler
- DCD TIMER2_IRQHandler
- DCD RTC0_IRQHandler
- DCD TEMP_IRQHandler
- DCD RNG_IRQHandler
- DCD ECB_IRQHandler
- DCD CCM_AAR_IRQHandler
- DCD WDT_IRQHandler
- DCD RTC1_IRQHandler
- DCD QDEC_IRQHandler
- DCD COMP_IRQHandler
- DCD SWI0_EGU0_IRQHandler
- DCD SWI1_EGU1_IRQHandler
- DCD SWI2_IRQHandler
- DCD SWI3_IRQHandler
- DCD SWI4_IRQHandler
- DCD SWI5_IRQHandler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD PWM0_IRQHandler
- DCD PDM_IRQHandler
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- DCD 0 ; Reserved
- __Vectors_End
- __Vectors EQU __vector_table
- __Vectors_Size EQU __Vectors_End - __Vectors
- ; Default handlers.
- THUMB
- PUBWEAK Reset_Handler
- SECTION .text:CODE:REORDER:NOROOT(2)
- Reset_Handler
- LDR R0, =SystemInit
- BLX R0
- LDR R0, =__iar_program_start
- BX R0
- ; Dummy exception handlers
- PUBWEAK NMI_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- NMI_Handler
- B .
- PUBWEAK HardFault_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- HardFault_Handler
- B .
- PUBWEAK MemoryManagement_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- MemoryManagement_Handler
- B .
- PUBWEAK BusFault_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- BusFault_Handler
- B .
- PUBWEAK UsageFault_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- UsageFault_Handler
- B .
- PUBWEAK SVC_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SVC_Handler
- B .
- PUBWEAK DebugMon_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- DebugMon_Handler
- B .
- PUBWEAK PendSV_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- PendSV_Handler
- B .
- PUBWEAK SysTick_Handler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SysTick_Handler
- B .
- ; Dummy interrupt handlers
- PUBWEAK POWER_CLOCK_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- POWER_CLOCK_IRQHandler
- B .
- PUBWEAK RADIO_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- RADIO_IRQHandler
- B .
- PUBWEAK UARTE0_UART0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- UARTE0_UART0_IRQHandler
- B .
- PUBWEAK TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- TWIM0_TWIS0_TWI0_SPIM1_SPIS1_SPI1_IRQHandler
- B .
- PUBWEAK SPIM0_SPIS0_SPI0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SPIM0_SPIS0_SPI0_IRQHandler
- B .
- PUBWEAK GPIOTE_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- GPIOTE_IRQHandler
- B .
- PUBWEAK SAADC_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SAADC_IRQHandler
- B .
- PUBWEAK TIMER0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- TIMER0_IRQHandler
- B .
- PUBWEAK TIMER1_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- TIMER1_IRQHandler
- B .
- PUBWEAK TIMER2_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- TIMER2_IRQHandler
- B .
- PUBWEAK RTC0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- RTC0_IRQHandler
- B .
- PUBWEAK TEMP_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- TEMP_IRQHandler
- B .
- PUBWEAK RNG_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- RNG_IRQHandler
- B .
- PUBWEAK ECB_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- ECB_IRQHandler
- B .
- PUBWEAK CCM_AAR_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- CCM_AAR_IRQHandler
- B .
- PUBWEAK WDT_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- WDT_IRQHandler
- B .
- PUBWEAK RTC1_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- RTC1_IRQHandler
- B .
- PUBWEAK QDEC_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- QDEC_IRQHandler
- B .
- PUBWEAK COMP_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- COMP_IRQHandler
- B .
- PUBWEAK SWI0_EGU0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI0_EGU0_IRQHandler
- B .
- PUBWEAK SWI1_EGU1_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI1_EGU1_IRQHandler
- B .
- PUBWEAK SWI2_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI2_IRQHandler
- B .
- PUBWEAK SWI3_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI3_IRQHandler
- B .
- PUBWEAK SWI4_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI4_IRQHandler
- B .
- PUBWEAK SWI5_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- SWI5_IRQHandler
- B .
- PUBWEAK PWM0_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- PWM0_IRQHandler
- B .
- PUBWEAK PDM_IRQHandler
- SECTION .text:CODE:REORDER:NOROOT(1)
- PDM_IRQHandler
- B .
- END
|