mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/startup_LPC43xx.s@20:4263a77256ae, 2013-09-10 (annotated)
- Committer:
- bogdanm
- Date:
- Tue Sep 10 15:14:19 2013 +0300
- Revision:
- 20:4263a77256ae
Sync with git revision 171dda705c947bf910926a0b73d6a4797802554d
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 20:4263a77256ae | 1 | /************************************************** |
bogdanm | 20:4263a77256ae | 2 | * |
bogdanm | 20:4263a77256ae | 3 | * Part one of the system initialization code, contains low-level |
bogdanm | 20:4263a77256ae | 4 | * initialization, plain thumb variant. |
bogdanm | 20:4263a77256ae | 5 | * |
bogdanm | 20:4263a77256ae | 6 | * Copyright 2011 IAR Systems. All rights reserved. |
bogdanm | 20:4263a77256ae | 7 | * |
bogdanm | 20:4263a77256ae | 8 | * $Revision: 47876 $ |
bogdanm | 20:4263a77256ae | 9 | * |
bogdanm | 20:4263a77256ae | 10 | **************************************************/ |
bogdanm | 20:4263a77256ae | 11 | |
bogdanm | 20:4263a77256ae | 12 | ; |
bogdanm | 20:4263a77256ae | 13 | ; The modules in this file are included in the libraries, and may be replaced |
bogdanm | 20:4263a77256ae | 14 | ; by any user-defined modules that define the PUBLIC symbol _program_start or |
bogdanm | 20:4263a77256ae | 15 | ; a user defined start symbol. |
bogdanm | 20:4263a77256ae | 16 | ; To override the cstartup defined in the library, simply add your modified |
bogdanm | 20:4263a77256ae | 17 | ; version to the workbench project. |
bogdanm | 20:4263a77256ae | 18 | ; |
bogdanm | 20:4263a77256ae | 19 | ; The vector table is normally located at address 0. |
bogdanm | 20:4263a77256ae | 20 | ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6. |
bogdanm | 20:4263a77256ae | 21 | ; The name "__vector_table" has special meaning for C-SPY: |
bogdanm | 20:4263a77256ae | 22 | ; it is where the SP start value is found, and the NVIC vector |
bogdanm | 20:4263a77256ae | 23 | ; table register (VTOR) is initialized to this address if != 0. |
bogdanm | 20:4263a77256ae | 24 | ; |
bogdanm | 20:4263a77256ae | 25 | ; Cortex-M version |
bogdanm | 20:4263a77256ae | 26 | ; |
bogdanm | 20:4263a77256ae | 27 | |
bogdanm | 20:4263a77256ae | 28 | |
bogdanm | 20:4263a77256ae | 29 | MODULE ?cstartup |
bogdanm | 20:4263a77256ae | 30 | |
bogdanm | 20:4263a77256ae | 31 | ;; Forward declaration of sections. |
bogdanm | 20:4263a77256ae | 32 | SECTION CSTACK:DATA:NOROOT(3) |
bogdanm | 20:4263a77256ae | 33 | |
bogdanm | 20:4263a77256ae | 34 | SECTION .intvec:CODE:NOROOT(2) |
bogdanm | 20:4263a77256ae | 35 | |
bogdanm | 20:4263a77256ae | 36 | EXTERN __iar_program_start |
bogdanm | 20:4263a77256ae | 37 | EXTERN SystemInit |
bogdanm | 20:4263a77256ae | 38 | PUBLIC __vector_table |
bogdanm | 20:4263a77256ae | 39 | PUBLIC __vector_table_0x1c |
bogdanm | 20:4263a77256ae | 40 | PUBLIC __Vectors |
bogdanm | 20:4263a77256ae | 41 | PUBLIC __Vectors_End |
bogdanm | 20:4263a77256ae | 42 | PUBLIC __Vectors_Size |
bogdanm | 20:4263a77256ae | 43 | |
bogdanm | 20:4263a77256ae | 44 | DATA |
bogdanm | 20:4263a77256ae | 45 | |
bogdanm | 20:4263a77256ae | 46 | __vector_table |
bogdanm | 20:4263a77256ae | 47 | DCD sfe(CSTACK) |
bogdanm | 20:4263a77256ae | 48 | DCD Reset_Handler |
bogdanm | 20:4263a77256ae | 49 | DCD NMI_Handler |
bogdanm | 20:4263a77256ae | 50 | DCD HardFault_Handler |
bogdanm | 20:4263a77256ae | 51 | DCD MemManage_Handler |
bogdanm | 20:4263a77256ae | 52 | DCD BusFault_Handler |
bogdanm | 20:4263a77256ae | 53 | DCD UsageFault_Handler |
bogdanm | 20:4263a77256ae | 54 | __vector_table_0x1c |
bogdanm | 20:4263a77256ae | 55 | DCD 0 |
bogdanm | 20:4263a77256ae | 56 | DCD 0 |
bogdanm | 20:4263a77256ae | 57 | DCD 0 |
bogdanm | 20:4263a77256ae | 58 | DCD 0 |
bogdanm | 20:4263a77256ae | 59 | DCD SVC_Handler |
bogdanm | 20:4263a77256ae | 60 | DCD DebugMon_Handler |
bogdanm | 20:4263a77256ae | 61 | DCD 0 |
bogdanm | 20:4263a77256ae | 62 | DCD PendSV_Handler |
bogdanm | 20:4263a77256ae | 63 | DCD SysTick_Handler |
bogdanm | 20:4263a77256ae | 64 | |
bogdanm | 20:4263a77256ae | 65 | ; External Interrupts |
bogdanm | 20:4263a77256ae | 66 | DCD DAC_IRQHandler ; 16 D/A Converter |
bogdanm | 20:4263a77256ae | 67 | DCD MX_CORE_IRQHandler ; 17 CortexM0 (LPC43XX ONLY) |
bogdanm | 20:4263a77256ae | 68 | DCD DMA_IRQHandler ; 18 General Purpose DMA |
bogdanm | 20:4263a77256ae | 69 | DCD 0 ; 19 Reserved |
bogdanm | 20:4263a77256ae | 70 | DCD FLASHEEPROM_IRQHandler ; 20 ORed flash bank A, flash bank B, EEPROM interrupts |
bogdanm | 20:4263a77256ae | 71 | DCD ETH_IRQHandler ; 21 Ethernet |
bogdanm | 20:4263a77256ae | 72 | DCD SDIO_IRQHandler ; 22 SD/MMC |
bogdanm | 20:4263a77256ae | 73 | DCD LCD_IRQHandler ; 23 LCD |
bogdanm | 20:4263a77256ae | 74 | DCD USB0_IRQHandler ; 24 USB0 |
bogdanm | 20:4263a77256ae | 75 | DCD USB1_IRQHandler ; 25 USB1 |
bogdanm | 20:4263a77256ae | 76 | DCD SCT_IRQHandler ; 26 State Configurable Timer |
bogdanm | 20:4263a77256ae | 77 | DCD RIT_IRQHandler ; 27 Repetitive Interrupt Timer |
bogdanm | 20:4263a77256ae | 78 | DCD TIMER0_IRQHandler ; 28 Timer0 |
bogdanm | 20:4263a77256ae | 79 | DCD TIMER1_IRQHandler ; 29 Timer1 |
bogdanm | 20:4263a77256ae | 80 | DCD TIMER2_IRQHandler ; 30 Timer2 |
bogdanm | 20:4263a77256ae | 81 | DCD TIMER3_IRQHandler ; 31 Timer3 |
bogdanm | 20:4263a77256ae | 82 | DCD MCPWM_IRQHandler ; 32 Motor Control PWM |
bogdanm | 20:4263a77256ae | 83 | DCD ADC0_IRQHandler ; 33 A/D Converter 0 |
bogdanm | 20:4263a77256ae | 84 | DCD I2C0_IRQHandler ; 34 I2C0 |
bogdanm | 20:4263a77256ae | 85 | DCD I2C1_IRQHandler ; 35 I2C1 |
bogdanm | 20:4263a77256ae | 86 | DCD SPI_IRQHandler ; 36 SPI (LPC43XX ONLY) |
bogdanm | 20:4263a77256ae | 87 | DCD ADC1_IRQHandler ; 37 A/D Converter 1 |
bogdanm | 20:4263a77256ae | 88 | DCD SSP0_IRQHandler ; 38 SSP0 |
bogdanm | 20:4263a77256ae | 89 | DCD SSP1_IRQHandler ; 39 SSP1 |
bogdanm | 20:4263a77256ae | 90 | DCD UART0_IRQHandler ; 40 UART0 |
bogdanm | 20:4263a77256ae | 91 | DCD UART1_IRQHandler ; 41 UART1 |
bogdanm | 20:4263a77256ae | 92 | DCD UART2_IRQHandler ; 42 UART2 |
bogdanm | 20:4263a77256ae | 93 | DCD UART3_IRQHandler ; 43 UART3 |
bogdanm | 20:4263a77256ae | 94 | DCD I2S0_IRQHandler ; 44 I2S0 |
bogdanm | 20:4263a77256ae | 95 | DCD I2S1_IRQHandler ; 45 I2S1 |
bogdanm | 20:4263a77256ae | 96 | DCD SPIFI_IRQHandler ; 46 SPI Flash Interface |
bogdanm | 20:4263a77256ae | 97 | DCD SGPIO_IRQHandler ; 47 SGPIO (LPC43XX ONLY) |
bogdanm | 20:4263a77256ae | 98 | DCD GPIO0_IRQHandler ; 48 GPIO0 |
bogdanm | 20:4263a77256ae | 99 | DCD GPIO1_IRQHandler ; 49 GPIO1 |
bogdanm | 20:4263a77256ae | 100 | DCD GPIO2_IRQHandler ; 50 GPIO2 |
bogdanm | 20:4263a77256ae | 101 | DCD GPIO3_IRQHandler ; 51 GPIO3 |
bogdanm | 20:4263a77256ae | 102 | DCD GPIO4_IRQHandler ; 52 GPIO4 |
bogdanm | 20:4263a77256ae | 103 | DCD GPIO5_IRQHandler ; 53 GPIO5 |
bogdanm | 20:4263a77256ae | 104 | DCD GPIO6_IRQHandler ; 54 GPIO6 |
bogdanm | 20:4263a77256ae | 105 | DCD GPIO7_IRQHandler ; 55 GPIO7 |
bogdanm | 20:4263a77256ae | 106 | DCD GINT0_IRQHandler ; 56 GINT0 |
bogdanm | 20:4263a77256ae | 107 | DCD GINT1_IRQHandler ; 57 GINT1 |
bogdanm | 20:4263a77256ae | 108 | DCD EVRT_IRQHandler ; 58 Event Router |
bogdanm | 20:4263a77256ae | 109 | DCD CAN1_IRQHandler ; 59 C_CAN1 |
bogdanm | 20:4263a77256ae | 110 | DCD 0 |
bogdanm | 20:4263a77256ae | 111 | DCD 0 |
bogdanm | 20:4263a77256ae | 112 | DCD ATIMER_IRQHandler ; 62 ATIMER |
bogdanm | 20:4263a77256ae | 113 | DCD RTC_IRQHandler ; 63 RTC |
bogdanm | 20:4263a77256ae | 114 | DCD 0 |
bogdanm | 20:4263a77256ae | 115 | DCD WDT_IRQHandler ; 65 WDT |
bogdanm | 20:4263a77256ae | 116 | DCD 0 |
bogdanm | 20:4263a77256ae | 117 | DCD CAN0_IRQHandler ; 67 C_CAN0 |
bogdanm | 20:4263a77256ae | 118 | DCD QEI_IRQHandler ; 68 QEI |
bogdanm | 20:4263a77256ae | 119 | __Vectors_End |
bogdanm | 20:4263a77256ae | 120 | |
bogdanm | 20:4263a77256ae | 121 | __Vectors EQU __vector_table |
bogdanm | 20:4263a77256ae | 122 | __Vectors_Size EQU __Vectors_End - __Vectors |
bogdanm | 20:4263a77256ae | 123 | |
bogdanm | 20:4263a77256ae | 124 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
bogdanm | 20:4263a77256ae | 125 | ;; |
bogdanm | 20:4263a77256ae | 126 | ;; Default interrupt handlers. |
bogdanm | 20:4263a77256ae | 127 | ;; |
bogdanm | 20:4263a77256ae | 128 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
bogdanm | 20:4263a77256ae | 129 | |
bogdanm | 20:4263a77256ae | 130 | THUMB |
bogdanm | 20:4263a77256ae | 131 | |
bogdanm | 20:4263a77256ae | 132 | PUBWEAK Reset_Handler |
bogdanm | 20:4263a77256ae | 133 | SECTION .text:CODE:REORDER(2) |
bogdanm | 20:4263a77256ae | 134 | Reset_Handler |
bogdanm | 20:4263a77256ae | 135 | LDR R0, =SystemInit |
bogdanm | 20:4263a77256ae | 136 | BLX R0 |
bogdanm | 20:4263a77256ae | 137 | LDR R0, =__iar_program_start |
bogdanm | 20:4263a77256ae | 138 | BX R0 |
bogdanm | 20:4263a77256ae | 139 | |
bogdanm | 20:4263a77256ae | 140 | PUBWEAK NMI_Handler |
bogdanm | 20:4263a77256ae | 141 | PUBWEAK HardFault_Handler |
bogdanm | 20:4263a77256ae | 142 | PUBWEAK MemManage_Handler |
bogdanm | 20:4263a77256ae | 143 | PUBWEAK BusFault_Handler |
bogdanm | 20:4263a77256ae | 144 | PUBWEAK UsageFault_Handler |
bogdanm | 20:4263a77256ae | 145 | PUBWEAK SVC_Handler |
bogdanm | 20:4263a77256ae | 146 | PUBWEAK DebugMon_Handler |
bogdanm | 20:4263a77256ae | 147 | PUBWEAK PendSV_Handler |
bogdanm | 20:4263a77256ae | 148 | PUBWEAK SysTick_Handler |
bogdanm | 20:4263a77256ae | 149 | PUBWEAK DAC_IRQHandler |
bogdanm | 20:4263a77256ae | 150 | PUBWEAK MX_CORE_IRQHandler |
bogdanm | 20:4263a77256ae | 151 | PUBWEAK DMA_IRQHandler |
bogdanm | 20:4263a77256ae | 152 | PUBWEAK FLASHEEPROM_IRQHandler |
bogdanm | 20:4263a77256ae | 153 | PUBWEAK ETH_IRQHandler |
bogdanm | 20:4263a77256ae | 154 | PUBWEAK SDIO_IRQHandler |
bogdanm | 20:4263a77256ae | 155 | PUBWEAK LCD_IRQHandler |
bogdanm | 20:4263a77256ae | 156 | PUBWEAK USB0_IRQHandler |
bogdanm | 20:4263a77256ae | 157 | PUBWEAK USB1_IRQHandler |
bogdanm | 20:4263a77256ae | 158 | PUBWEAK SCT_IRQHandler |
bogdanm | 20:4263a77256ae | 159 | PUBWEAK RIT_IRQHandler |
bogdanm | 20:4263a77256ae | 160 | PUBWEAK TIMER0_IRQHandler |
bogdanm | 20:4263a77256ae | 161 | PUBWEAK TIMER1_IRQHandler |
bogdanm | 20:4263a77256ae | 162 | PUBWEAK TIMER2_IRQHandler |
bogdanm | 20:4263a77256ae | 163 | PUBWEAK TIMER3_IRQHandler |
bogdanm | 20:4263a77256ae | 164 | PUBWEAK MCPWM_IRQHandler |
bogdanm | 20:4263a77256ae | 165 | PUBWEAK ADC0_IRQHandler |
bogdanm | 20:4263a77256ae | 166 | PUBWEAK I2C0_IRQHandler |
bogdanm | 20:4263a77256ae | 167 | PUBWEAK I2C1_IRQHandler |
bogdanm | 20:4263a77256ae | 168 | PUBWEAK SPI_IRQHandler |
bogdanm | 20:4263a77256ae | 169 | PUBWEAK ADC1_IRQHandler |
bogdanm | 20:4263a77256ae | 170 | PUBWEAK SSP0_IRQHandler |
bogdanm | 20:4263a77256ae | 171 | PUBWEAK SSP1_IRQHandler |
bogdanm | 20:4263a77256ae | 172 | PUBWEAK UART0_IRQHandler |
bogdanm | 20:4263a77256ae | 173 | PUBWEAK UART1_IRQHandler |
bogdanm | 20:4263a77256ae | 174 | PUBWEAK UART2_IRQHandler |
bogdanm | 20:4263a77256ae | 175 | PUBWEAK UART3_IRQHandler |
bogdanm | 20:4263a77256ae | 176 | PUBWEAK I2S0_IRQHandler |
bogdanm | 20:4263a77256ae | 177 | PUBWEAK I2S1_IRQHandler |
bogdanm | 20:4263a77256ae | 178 | PUBWEAK SPIFI_IRQHandler |
bogdanm | 20:4263a77256ae | 179 | PUBWEAK SGPIO_IRQHandler |
bogdanm | 20:4263a77256ae | 180 | PUBWEAK GPIO0_IRQHandler |
bogdanm | 20:4263a77256ae | 181 | PUBWEAK GPIO1_IRQHandler |
bogdanm | 20:4263a77256ae | 182 | PUBWEAK GPIO2_IRQHandler |
bogdanm | 20:4263a77256ae | 183 | PUBWEAK GPIO3_IRQHandler |
bogdanm | 20:4263a77256ae | 184 | PUBWEAK GPIO4_IRQHandler |
bogdanm | 20:4263a77256ae | 185 | PUBWEAK GPIO5_IRQHandler |
bogdanm | 20:4263a77256ae | 186 | PUBWEAK GPIO6_IRQHandler |
bogdanm | 20:4263a77256ae | 187 | PUBWEAK GPIO7_IRQHandler |
bogdanm | 20:4263a77256ae | 188 | PUBWEAK GINT0_IRQHandler |
bogdanm | 20:4263a77256ae | 189 | PUBWEAK GINT1_IRQHandler |
bogdanm | 20:4263a77256ae | 190 | PUBWEAK EVRT_IRQHandler |
bogdanm | 20:4263a77256ae | 191 | PUBWEAK CAN1_IRQHandler |
bogdanm | 20:4263a77256ae | 192 | PUBWEAK ATIMER_IRQHandler |
bogdanm | 20:4263a77256ae | 193 | PUBWEAK RTC_IRQHandler |
bogdanm | 20:4263a77256ae | 194 | PUBWEAK WDT_IRQHandler |
bogdanm | 20:4263a77256ae | 195 | PUBWEAK CAN0_IRQHandler |
bogdanm | 20:4263a77256ae | 196 | PUBWEAK QEI_IRQHandler |
bogdanm | 20:4263a77256ae | 197 | SECTION .text:CODE:REORDER(1) |
bogdanm | 20:4263a77256ae | 198 | NMI_Handler |
bogdanm | 20:4263a77256ae | 199 | B NMI_Handler |
bogdanm | 20:4263a77256ae | 200 | SVC_Handler |
bogdanm | 20:4263a77256ae | 201 | B SVC_Handler |
bogdanm | 20:4263a77256ae | 202 | DebugMon_Handler |
bogdanm | 20:4263a77256ae | 203 | B DebugMon_Handler |
bogdanm | 20:4263a77256ae | 204 | PendSV_Handler |
bogdanm | 20:4263a77256ae | 205 | B PendSV_Handler |
bogdanm | 20:4263a77256ae | 206 | SysTick_Handler |
bogdanm | 20:4263a77256ae | 207 | B SysTick_Handler |
bogdanm | 20:4263a77256ae | 208 | HardFault_Handler |
bogdanm | 20:4263a77256ae | 209 | B HardFault_Handler |
bogdanm | 20:4263a77256ae | 210 | MemManage_Handler |
bogdanm | 20:4263a77256ae | 211 | B MemManage_Handler |
bogdanm | 20:4263a77256ae | 212 | BusFault_Handler |
bogdanm | 20:4263a77256ae | 213 | B BusFault_Handler |
bogdanm | 20:4263a77256ae | 214 | UsageFault_Handler |
bogdanm | 20:4263a77256ae | 215 | DAC_IRQHandler |
bogdanm | 20:4263a77256ae | 216 | MX_CORE_IRQHandler |
bogdanm | 20:4263a77256ae | 217 | DMA_IRQHandler |
bogdanm | 20:4263a77256ae | 218 | FLASHEEPROM_IRQHandler |
bogdanm | 20:4263a77256ae | 219 | ETH_IRQHandler |
bogdanm | 20:4263a77256ae | 220 | SDIO_IRQHandler |
bogdanm | 20:4263a77256ae | 221 | LCD_IRQHandler |
bogdanm | 20:4263a77256ae | 222 | USB0_IRQHandler |
bogdanm | 20:4263a77256ae | 223 | USB1_IRQHandler |
bogdanm | 20:4263a77256ae | 224 | SCT_IRQHandler |
bogdanm | 20:4263a77256ae | 225 | RIT_IRQHandler |
bogdanm | 20:4263a77256ae | 226 | TIMER0_IRQHandler |
bogdanm | 20:4263a77256ae | 227 | TIMER1_IRQHandler |
bogdanm | 20:4263a77256ae | 228 | TIMER2_IRQHandler |
bogdanm | 20:4263a77256ae | 229 | TIMER3_IRQHandler |
bogdanm | 20:4263a77256ae | 230 | MCPWM_IRQHandler |
bogdanm | 20:4263a77256ae | 231 | ADC0_IRQHandler |
bogdanm | 20:4263a77256ae | 232 | I2C0_IRQHandler |
bogdanm | 20:4263a77256ae | 233 | I2C1_IRQHandler |
bogdanm | 20:4263a77256ae | 234 | SPI_IRQHandler |
bogdanm | 20:4263a77256ae | 235 | ADC1_IRQHandler |
bogdanm | 20:4263a77256ae | 236 | SSP0_IRQHandler |
bogdanm | 20:4263a77256ae | 237 | SSP1_IRQHandler |
bogdanm | 20:4263a77256ae | 238 | UART0_IRQHandler |
bogdanm | 20:4263a77256ae | 239 | UART1_IRQHandler |
bogdanm | 20:4263a77256ae | 240 | UART2_IRQHandler |
bogdanm | 20:4263a77256ae | 241 | UART3_IRQHandler |
bogdanm | 20:4263a77256ae | 242 | I2S0_IRQHandler |
bogdanm | 20:4263a77256ae | 243 | I2S1_IRQHandler |
bogdanm | 20:4263a77256ae | 244 | SPIFI_IRQHandler |
bogdanm | 20:4263a77256ae | 245 | SGPIO_IRQHandler |
bogdanm | 20:4263a77256ae | 246 | GPIO0_IRQHandler |
bogdanm | 20:4263a77256ae | 247 | GPIO1_IRQHandler |
bogdanm | 20:4263a77256ae | 248 | GPIO2_IRQHandler |
bogdanm | 20:4263a77256ae | 249 | GPIO3_IRQHandler |
bogdanm | 20:4263a77256ae | 250 | GPIO4_IRQHandler |
bogdanm | 20:4263a77256ae | 251 | GPIO5_IRQHandler |
bogdanm | 20:4263a77256ae | 252 | GPIO6_IRQHandler |
bogdanm | 20:4263a77256ae | 253 | GPIO7_IRQHandler |
bogdanm | 20:4263a77256ae | 254 | GINT0_IRQHandler |
bogdanm | 20:4263a77256ae | 255 | GINT1_IRQHandler |
bogdanm | 20:4263a77256ae | 256 | EVRT_IRQHandler |
bogdanm | 20:4263a77256ae | 257 | CAN1_IRQHandler |
bogdanm | 20:4263a77256ae | 258 | ATIMER_IRQHandler |
bogdanm | 20:4263a77256ae | 259 | RTC_IRQHandler |
bogdanm | 20:4263a77256ae | 260 | WDT_IRQHandler |
bogdanm | 20:4263a77256ae | 261 | CAN0_IRQHandler |
bogdanm | 20:4263a77256ae | 262 | QEI_IRQHandler |
bogdanm | 20:4263a77256ae | 263 | Default_IRQHandler |
bogdanm | 20:4263a77256ae | 264 | B Default_IRQHandler |
bogdanm | 20:4263a77256ae | 265 | |
bogdanm | 20:4263a77256ae | 266 | /* CRP Section - not needed for flashless devices */ |
bogdanm | 20:4263a77256ae | 267 | |
bogdanm | 20:4263a77256ae | 268 | ;;; SECTION .crp:CODE:ROOT(2) |
bogdanm | 20:4263a77256ae | 269 | ;;; DATA |
bogdanm | 20:4263a77256ae | 270 | /* Code Read Protection |
bogdanm | 20:4263a77256ae | 271 | NO_ISP 0x4E697370 - Prevents sampling of pin PIO0_1 for entering ISP mode |
bogdanm | 20:4263a77256ae | 272 | CRP1 0x12345678 - Write to RAM command cannot access RAM below 0x10000300. |
bogdanm | 20:4263a77256ae | 273 | - Copy RAM to flash command can not write to Sector 0. |
bogdanm | 20:4263a77256ae | 274 | - Erase command can erase Sector 0 only when all sectors |
bogdanm | 20:4263a77256ae | 275 | are selected for erase. |
bogdanm | 20:4263a77256ae | 276 | - Compare command is disabled. |
bogdanm | 20:4263a77256ae | 277 | - Read Memory command is disabled. |
bogdanm | 20:4263a77256ae | 278 | CRP2 0x87654321 - Read Memory is disabled. |
bogdanm | 20:4263a77256ae | 279 | - Write to RAM is disabled. |
bogdanm | 20:4263a77256ae | 280 | - "Go" command is disabled. |
bogdanm | 20:4263a77256ae | 281 | - Copy RAM to flash is disabled. |
bogdanm | 20:4263a77256ae | 282 | - Compare is disabled. |
bogdanm | 20:4263a77256ae | 283 | CRP3 0x43218765 - Access to chip via the SWD pins is disabled. ISP entry |
bogdanm | 20:4263a77256ae | 284 | by pulling PIO0_1 LOW is disabled if a valid user code is |
bogdanm | 20:4263a77256ae | 285 | present in flash sector 0. |
bogdanm | 20:4263a77256ae | 286 | Caution: If CRP3 is selected, no future factory testing can be |
bogdanm | 20:4263a77256ae | 287 | performed on the device. |
bogdanm | 20:4263a77256ae | 288 | */ |
bogdanm | 20:4263a77256ae | 289 | ;;; DCD 0xFFFFFFFF |
bogdanm | 20:4263a77256ae | 290 | ;;; |
bogdanm | 20:4263a77256ae | 291 | |
bogdanm | 20:4263a77256ae | 292 | END |