1 .syntax unified 2 .arch armv7-m 3 4 .section .stack_core1 5 .align 3 6 .globl Stack_Size_Core1 7#ifdef __STACK_SIZE_CORE1 8 .equ Stack_Size_Core1, __STACK_SIZE 9#else 10 .equ Stack_Size_Core1, 0x00001000 11#endif 12 .globl __StackTop_Core1 13__StackTop_Core1: 14 .size __StackTop_Core1, . - __StackTop_Core1 15 16 .section .text 17 .align 0x10 18 .globl __isr_vector_core1 19__isr_vector_core1: 20 .long __StackTop_Core1 /* Top of Core 1 Stack */ 21 .long Reset_Handler_Core1 /* Reset Handler */ 22 .long NMI_Handler /* NMI Handler */ 23 .long HardFault_Handler /* Hard Fault Handler */ 24 .long MemManage_Handler /* MPU Fault Handler */ 25 .long BusFault_Handler /* Bus Fault Handler */ 26 .long UsageFault_Handler /* Usage Fault Handler */ 27 .long 0 /* Reserved */ 28 .long 0 /* Reserved */ 29 .long 0 /* Reserved */ 30 .long 0 /* Reserved */ 31 .long SVC_Handler /* SVCall Handler */ 32 .long 0 /* Reserved */ 33 .long 0 /* Reserved */ 34 .long PendSV_Handler /* PendSV Handler */ 35 .long SysTick_Handler /* SysTick Handler */ 36 37 /* Device-specific Interrupts */ 38 .long PF_IRQHandler /* 0x10 0x0040 16: Power Fail */ 39 .long WDT0_IRQHandler /* 0x11 0x0044 17: Watchdog 0 */ 40 .long USB_IRQHandler /* 0x12 0x0048 18: USB */ 41 .long RTC_IRQHandler /* 0x13 0x004C 19: RTC */ 42 .long TRNG_IRQHandler /* 0x14 0x0050 20: True Random Number Generator */ 43 .long TMR0_IRQHandler /* 0x15 0x0054 21: Timer 0 */ 44 .long TMR1_IRQHandler /* 0x16 0x0058 22: Timer 1 */ 45 .long TMR2_IRQHandler /* 0x17 0x005C 23: Timer 2 */ 46 .long TMR3_IRQHandler /* 0x18 0x0060 24: Timer 3*/ 47 .long TMR4_IRQHandler /* 0x19 0x0064 25: Timer 4*/ 48 .long TMR5_IRQHandler /* 0x1A 0x0068 26: Timer 5 */ 49 .long RSV11_IRQHandler /* 0x1B 0x006C 27: Reserved */ 50 .long RSV12_IRQHandler /* 0x1C 0x0070 28: Reserved */ 51 .long I2C0_IRQHandler /* 0x1D 0x0074 29: I2C0 */ 52 .long UART0_IRQHandler /* 0x1E 0x0078 30: UART 0 */ 53 .long UART1_IRQHandler /* 0x1F 0x007C 31: UART 1 */ 54 .long SPI1_IRQHandler /* 0x20 0x0080 32: SPI1 */ 55 .long SPI2_IRQHandler /* 0x21 0x0084 33: SPI2 */ 56 .long RSV18_IRQHandler /* 0x22 0x0088 34: Reserved */ 57 .long RSV19_IRQHandler /* 0x23 0x008C 35: Reserved */ 58 .long ADC_IRQHandler /* 0x24 0x0090 36: ADC */ 59 .long RSV21_IRQHandler /* 0x25 0x0094 37: Reserved */ 60 .long RSV22_IRQHandler /* 0x26 0x0098 38: Reserved */ 61 .long FLC0_IRQHandler /* 0x27 0x009C 39: Flash Controller */ 62 .long GPIO0_IRQHandler /* 0x28 0x00A0 40: GPIO0 */ 63 .long GPIO1_IRQHandler /* 0x29 0x00A4 41: GPIO2 */ 64 .long RSV26_IRQHandler /* 0x2A 0x00A8 42: GPIO3 */ 65 .long TPU_IRQHandler /* 0x2B 0x00AC 43: Crypto */ 66 .long DMA0_IRQHandler /* 0x2C 0x00B0 44: DMA0 */ 67 .long DMA1_IRQHandler /* 0x2D 0x00B4 45: DMA1 */ 68 .long DMA2_IRQHandler /* 0x2E 0x00B8 46: DMA2 */ 69 .long DMA3_IRQHandler /* 0x2F 0x00BC 47: DMA3 */ 70 .long RSV32_IRQHandler /* 0x30 0x00C0 48: Reserved */ 71 .long RSV33_IRQHandler /* 0x31 0x00C4 49: Reserved */ 72 .long UART2_IRQHandler /* 0x32 0x00C8 50: UART 2 */ 73 .long RSV35_IRQHandler /* 0x33 0x00CC 51: Reserved */ 74 .long I2C1_IRQHandler /* 0x34 0x00D0 52: I2C1 */ 75 .long RSV37_IRQHandler /* 0x35 0x00D4 53: Reserved */ 76 .long SPIXFC_IRQHandler /* 0x36 0x00D8 54: SPI execute in place */ 77 .long BTLE_TX_DONE_IRQHandler /* 0x37 0x00DC 55: BTLE TX Done */ 78 .long BTLE_RX_RCVD_IRQHandler /* 0x38 0x00E0 56: BTLE RX Recived */ 79 .long BTLE_RX_ENG_DET_IRQHandler /* 0x39 0x00E4 57: BTLE RX Energy Dectected */ 80 .long BTLE_SFD_DET_IRQHandler /* 0x3A 0x00E8 58: BTLE SFD Detected */ 81 .long BTLE_SFD_TO_IRQHandler /* 0x3B 0x00EC 59: BTLE SFD Timeout*/ 82 .long BTLE_GP_EVENT_IRQHandler /* 0x3C 0x00F0 60: BTLE Timestamp*/ 83 .long BTLE_CFO_IRQHandler /* 0x3D 0x00F4 61: BTLE CFO Done */ 84 .long BTLE_SIG_DET_IRQHandler /* 0x3E 0x00F8 62: BTLE Signal Detected */ 85 .long BTLE_AGC_EVENT_IRQHandler /* 0x3F 0x00FC 63: BTLE AGC Event */ 86 .long BTLE_RFFE_SPIM_IRQHandler /* 0x40 0x0100 64: BTLE RFFE SPIM Done */ 87 .long BTLE_TX_AES_IRQHandler /* 0x41 0x0104 65: BTLE TX AES Done */ 88 .long BTLE_RX_AES_IRQHandler /* 0x42 0x0108 66: BTLE RX AES Done */ 89 .long BTLE_INV_APB_ADDR_IRQHandler /* 0x43 0x010C 67: BTLE Invalid APB Address*/ 90 .long BTLE_IQ_DATA_VALID_IRQHandler /* 0x44 0x0110 68: BTLE IQ Data Valid */ 91 .long WUT_IRQHandler /* 0x45 0x0114 69: WUT Wakeup */ 92 .long GPIOWAKE_IRQHandler /* 0x46 0x0118 70: GPIO Wakeup */ 93 .long RSV55_IRQHandler /* 0x47 0x011C 71: Reserved */ 94 .long SPI0_IRQHandler /* 0x48 0x0120 72: SPI AHB */ 95 .long WDT1_IRQHandler /* 0x49 0x0124 73: Watchdog 1 */ 96 .long RSV58_IRQHandler /* 0x4A 0x0128 74: Reserved */ 97 .long PT_IRQHandler /* 0x4B 0x012C 75: Pulse train */ 98 .long SDMA0_IRQHandler /* 0x4C 0x0130 76: Smart DMA 0 */ 99 .long RSV61_IRQHandler /* 0x4D 0x0134 77: Reserved */ 100 .long I2C2_IRQHandler /* 0x4E 0x0138 78: I2C 2 */ 101 .long RSV63_IRQHandler /* 0x4F 0x013C 79: Reserved */ 102 .long RSV64_IRQHandler /* 0x50 0x0140 80: Reserved */ 103 .long RSV65_IRQHandler /* 0x51 0x0144 81: Reserved */ 104 .long SDHC_IRQHandler /* 0x52 0x0148 82: SDIO/SDHC */ 105 .long OWM_IRQHandler /* 0x53 0x014C 83: One Wire Master */ 106 .long DMA4_IRQHandler /* 0x54 0x0150 84: DMA4 */ 107 .long DMA5_IRQHandler /* 0x55 0x0154 85: DMA5 */ 108 .long DMA6_IRQHandler /* 0x56 0x0158 86: DMA6 */ 109 .long DMA7_IRQHandler /* 0x57 0x015C 87: DMA7 */ 110 .long DMA8_IRQHandler /* 0x58 0x0160 88: DMA8 */ 111 .long DMA9_IRQHandler /* 0x59 0x0164 89: DMA9 */ 112 .long DMA10_IRQHandler /* 0x5A 0x0168 90: DMA10 */ 113 .long DMA11_IRQHandler /* 0x5B 0x016C 91: DMA11 */ 114 .long DMA12_IRQHandler /* 0x5C 0x0170 92: DMA12 */ 115 .long DMA13_IRQHandler /* 0x5D 0x0174 93: DMA13 */ 116 .long DMA14_IRQHandler /* 0x5E 0x0178 94: DMA14 */ 117 .long DMA15_IRQHandler /* 0x5F 0x017C 95: DMA15 */ 118 .long USBDMA_IRQHandler /* 0x60 0x0180 96: USB DMA */ 119 .long WDT2_IRQHandler /* 0x61 0x0184 97: Watchdog Timer 2 */ 120 .long ECC_IRQHandler /* 0x62 0x0188 98: Error Correction */ 121 .long DVS_IRQHandler /* 0x63 0x018C 99: DVS Controller */ 122 .long SIMO_IRQHandler /* 0x64 0x0190 100: SIMO Controller */ 123 .long SCA_IRQHandler /* 0x65 0x0194 101: SCA */ 124 .long AUDIO_IRQHandler /* 0x66 0x0198 102: Audio subsystem */ 125 .long FLC1_IRQHandler /* 0x67 0x019C 103: Flash Control 1 */ 126 .long RSV88_IRQHandler /* 0x68 0x01A0 104: UART 3 */ 127 .long RSV89_IRQHandler /* 0x69 0x01A4 105: UART 4 */ 128 .long RSV90_IRQHandler /* 0x6A 0x01A8 106: UART 5 */ 129 .long RSV91_IRQHandler /* 0x6B 0x01AC 107: Camera IF */ 130 .long RSV92_IRQHandler /* 0x6C 0x01B0 108: I3C */ 131 .long HTMR0_IRQHandler /* 0x6D 0x01B4 109: HTimer */ 132 .long HTMR1_IRQHandler /* 0x6E 0x01B8 109: HTimer */ 133 .thumb 134 .thumb_func 135 .align 2 136 .globl Core1_Init 137 .type Core1_Init, %function 138Reset_Handler_Core1: 139 ldr r0, =__StackTop_Core1 140 mov sp, r0 141 /* PreInit runs before any RAM initialization. Example usage: DDR setup, etc. */ 142 ldr r0, =PreInit_Core1 143 blx r0 144 145 /* Perform system initialization after RAM initialization */ 146 147 ldr r0, =SystemInit_Core1 148 blx r0 149 150 /* Transfer control to users main program */ 151 ldr r0, =Core1_Main 152 blx r0 153 154.SPINC1: 155 /* spin if main ever returns. */ 156 bl .SPINC1 157