Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sun May 14 23:18:57 2017 +0000
Revision:
18:6a4db94011d3
Publishing again

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sahilmgandhi 18:6a4db94011d3 1 /**************************************************
sahilmgandhi 18:6a4db94011d3 2 *
sahilmgandhi 18:6a4db94011d3 3 * Part one of the system initialization code, contains low-level
sahilmgandhi 18:6a4db94011d3 4 * initialization, plain thumb variant.
sahilmgandhi 18:6a4db94011d3 5 *
sahilmgandhi 18:6a4db94011d3 6 * Copyright 2009 IAR Systems. All rights reserved.
sahilmgandhi 18:6a4db94011d3 7 *
sahilmgandhi 18:6a4db94011d3 8 * $Revision: 28 $
sahilmgandhi 18:6a4db94011d3 9 *
sahilmgandhi 18:6a4db94011d3 10 **************************************************/
sahilmgandhi 18:6a4db94011d3 11
sahilmgandhi 18:6a4db94011d3 12 ;
sahilmgandhi 18:6a4db94011d3 13 ; The modules in this file are included in the libraries, and may be replaced
sahilmgandhi 18:6a4db94011d3 14 ; by any user-defined modules that define the PUBLIC symbol _program_start or
sahilmgandhi 18:6a4db94011d3 15 ; a user defined start symbol.
sahilmgandhi 18:6a4db94011d3 16 ; To override the cstartup defined in the library, simply add your modified
sahilmgandhi 18:6a4db94011d3 17 ; version to the workbench project.
sahilmgandhi 18:6a4db94011d3 18 ;
sahilmgandhi 18:6a4db94011d3 19 ; The vector table is normally located at address 0.
sahilmgandhi 18:6a4db94011d3 20 ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
sahilmgandhi 18:6a4db94011d3 21 ; The name "__vector_table" has special meaning for C-SPY:
sahilmgandhi 18:6a4db94011d3 22 ; it is where the SP start value is found, and the NVIC vector
sahilmgandhi 18:6a4db94011d3 23 ; table register (VTOR) is initialized to this address if != 0.
sahilmgandhi 18:6a4db94011d3 24 ;
sahilmgandhi 18:6a4db94011d3 25 ; Cortex-M version
sahilmgandhi 18:6a4db94011d3 26 ;
sahilmgandhi 18:6a4db94011d3 27
sahilmgandhi 18:6a4db94011d3 28 MODULE ?cstartup
sahilmgandhi 18:6a4db94011d3 29
sahilmgandhi 18:6a4db94011d3 30 ;; Forward declaration of sections.
sahilmgandhi 18:6a4db94011d3 31 SECTION CSTACK:DATA:NOROOT(3)
sahilmgandhi 18:6a4db94011d3 32
sahilmgandhi 18:6a4db94011d3 33 SECTION .intvec:CODE:NOROOT(2)
sahilmgandhi 18:6a4db94011d3 34
sahilmgandhi 18:6a4db94011d3 35 EXTERN __iar_program_start
sahilmgandhi 18:6a4db94011d3 36 EXTERN SystemInit
sahilmgandhi 18:6a4db94011d3 37 PUBLIC __vector_table
sahilmgandhi 18:6a4db94011d3 38 PUBLIC __vector_table_0x1c
sahilmgandhi 18:6a4db94011d3 39 PUBLIC __Vectors
sahilmgandhi 18:6a4db94011d3 40 PUBLIC __Vectors_End
sahilmgandhi 18:6a4db94011d3 41 PUBLIC __Vectors_Size
sahilmgandhi 18:6a4db94011d3 42
sahilmgandhi 18:6a4db94011d3 43 DATA
sahilmgandhi 18:6a4db94011d3 44
sahilmgandhi 18:6a4db94011d3 45 __vector_table
sahilmgandhi 18:6a4db94011d3 46 DCD sfe(CSTACK) ; Top of Stack
sahilmgandhi 18:6a4db94011d3 47 DCD Reset_Handler ; Reset Handler
sahilmgandhi 18:6a4db94011d3 48 DCD NMI_Handler ; NMI Handler
sahilmgandhi 18:6a4db94011d3 49 DCD HardFault_Handler ; Hard Fault Handler
sahilmgandhi 18:6a4db94011d3 50 DCD MemManage_Handler ; MPU Fault Handler
sahilmgandhi 18:6a4db94011d3 51 DCD BusFault_Handler ; Bus Fault Handler
sahilmgandhi 18:6a4db94011d3 52 DCD UsageFault_Handler ; Usage Fault Handler
sahilmgandhi 18:6a4db94011d3 53 __vector_table_0x1c
sahilmgandhi 18:6a4db94011d3 54 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 55 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 56 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 57 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 58 DCD SVC_Handler ; SVCall Handler
sahilmgandhi 18:6a4db94011d3 59 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 60 DCD 0 ; Reserved
sahilmgandhi 18:6a4db94011d3 61 DCD PendSV_Handler ; PendSV Handler
sahilmgandhi 18:6a4db94011d3 62 DCD SysTick_Handler ; SysTick Handler
sahilmgandhi 18:6a4db94011d3 63
sahilmgandhi 18:6a4db94011d3 64
sahilmgandhi 18:6a4db94011d3 65 ; External Interrupts
sahilmgandhi 18:6a4db94011d3 66 DCD WDT_IRQHandler ; Watchdog timer
sahilmgandhi 18:6a4db94011d3 67 DCD BOD_IRQHandler ; Brown Out Detect
sahilmgandhi 18:6a4db94011d3 68 DCD FLASH_IRQHandler ; NVMC Flash Controller
sahilmgandhi 18:6a4db94011d3 69 DCD EE_IRQHandler ; NVMC EE Controller
sahilmgandhi 18:6a4db94011d3 70 DCD DMA_IRQHandler ; DMA Controller
sahilmgandhi 18:6a4db94011d3 71 DCD GINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 72 DCD GINT1_IRQHandler ; PIO0 (0:7)
sahilmgandhi 18:6a4db94011d3 73 DCD PIN_INT0_IRQHandler ; 16+ 7 Pin interrupt 0 or pattern match engine slice 0 interrupt
sahilmgandhi 18:6a4db94011d3 74 DCD PIN_INT1_IRQHandler ; 16+ 8 Pin interrupt 1 or pattern match engine slice 1 interrupt
sahilmgandhi 18:6a4db94011d3 75 DCD PIN_INT2_IRQHandler ; 16+ 9 Pin interrupt 2 or pattern match engine slice 2 interrupt
sahilmgandhi 18:6a4db94011d3 76 DCD PIN_INT3_IRQHandler ; 16+10 Pin interrupt 3 or pattern match engine slice 3 interrupt
sahilmgandhi 18:6a4db94011d3 77 DCD PIN_INT4_IRQHandler ; 16+11 Pin interrupt 4 or pattern match engine slice 4 interrupt
sahilmgandhi 18:6a4db94011d3 78 DCD PIN_INT5_IRQHandler ; 16+12 Pin interrupt 5 or pattern match engine slice 5 interrupt
sahilmgandhi 18:6a4db94011d3 79 DCD PIN_INT6_IRQHandler ; 16+13 Pin interrupt 6 or pattern match engine slice 6 interrupt
sahilmgandhi 18:6a4db94011d3 80 DCD PIN_INT7_IRQHandler ; 16+14 Pin interrupt 7 or pattern match engine slice 7 interrupt
sahilmgandhi 18:6a4db94011d3 81 DCD RIT_IRQHandler ; RIT Timer
sahilmgandhi 18:6a4db94011d3 82 DCD SCT0_IRQHandler ; SCT Timer0
sahilmgandhi 18:6a4db94011d3 83 DCD SCT1_IRQHandler ; SCT Timer1
sahilmgandhi 18:6a4db94011d3 84 DCD SCT2_IRQHandler ; SCT Timer2
sahilmgandhi 18:6a4db94011d3 85 DCD SCT3_IRQHandler ; SCT Timer3
sahilmgandhi 18:6a4db94011d3 86 DCD MRT_IRQHandler ; MRT timer
sahilmgandhi 18:6a4db94011d3 87 DCD UART0_IRQHandler ; MIN UART0
sahilmgandhi 18:6a4db94011d3 88 DCD UART1_IRQHandler ; MIN UART1
sahilmgandhi 18:6a4db94011d3 89 DCD UART2_IRQHandler ; MIN UART2
sahilmgandhi 18:6a4db94011d3 90 DCD I2C0_IRQHandler ; BI2C
sahilmgandhi 18:6a4db94011d3 91 DCD SPI0_IRQHandler ; LSPI0
sahilmgandhi 18:6a4db94011d3 92 DCD SPI1_IRQHandler ; LSPI1
sahilmgandhi 18:6a4db94011d3 93 DCD C_CAN0_IRQHandler ; CAN
sahilmgandhi 18:6a4db94011d3 94 DCD USB_IRQ_IRQHandler ; USB IRQ
sahilmgandhi 18:6a4db94011d3 95 DCD USB_FIQ_IRQHandler ; USB FIQ
sahilmgandhi 18:6a4db94011d3 96 DCD USBWakeup_IRQHandler ; USB wake up
sahilmgandhi 18:6a4db94011d3 97 DCD ADC0_SEQA_IRQHandler ; ADC0 SEQA
sahilmgandhi 18:6a4db94011d3 98 DCD ADC0_SEQB_IRQHandler ; ADC0 SEQB
sahilmgandhi 18:6a4db94011d3 99 DCD ADC0_THCMP_IRQHandler ; ADC0 THCMP
sahilmgandhi 18:6a4db94011d3 100 DCD ADC0_OVR_IRQHandler ; ADC0 OVR
sahilmgandhi 18:6a4db94011d3 101 DCD ADC1_SEQA_IRQHandler ; ADC1 SEQA
sahilmgandhi 18:6a4db94011d3 102 DCD ADC1_SEQB_IRQHandler ; ADC1 SEQB
sahilmgandhi 18:6a4db94011d3 103 DCD ADC1_THCMP_IRQHandler ; ADC1 THCMP
sahilmgandhi 18:6a4db94011d3 104 DCD ADC1_OVR_IRQHandler ; ADC1 OVR
sahilmgandhi 18:6a4db94011d3 105 DCD DAC_IRQHandler ; D/A Converter
sahilmgandhi 18:6a4db94011d3 106 DCD CMP0_IRQHandler ; Comparator 0
sahilmgandhi 18:6a4db94011d3 107 DCD CMP1_IRQHandler ; Comparator 1
sahilmgandhi 18:6a4db94011d3 108 DCD CMP2_IRQHandler ; Comparator 2
sahilmgandhi 18:6a4db94011d3 109 DCD CMP3_IRQHandler ; Comparator 3
sahilmgandhi 18:6a4db94011d3 110 DCD QEI_IRQHandler ; QEI
sahilmgandhi 18:6a4db94011d3 111 DCD RTC_ALARM_IRQHandler ; RTC Alarm
sahilmgandhi 18:6a4db94011d3 112 DCD RTC_WAKE_IRQHandler ; RTC Wake
sahilmgandhi 18:6a4db94011d3 113
sahilmgandhi 18:6a4db94011d3 114 __Vectors_End
sahilmgandhi 18:6a4db94011d3 115
sahilmgandhi 18:6a4db94011d3 116 __Vectors EQU __vector_table
sahilmgandhi 18:6a4db94011d3 117 __Vectors_Size EQU __Vectors_End - __Vectors
sahilmgandhi 18:6a4db94011d3 118
sahilmgandhi 18:6a4db94011d3 119 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sahilmgandhi 18:6a4db94011d3 120 ;;
sahilmgandhi 18:6a4db94011d3 121 ;; Default interrupt handlers.
sahilmgandhi 18:6a4db94011d3 122 ;;
sahilmgandhi 18:6a4db94011d3 123 THUMB
sahilmgandhi 18:6a4db94011d3 124 PUBWEAK Reset_Handler
sahilmgandhi 18:6a4db94011d3 125 SECTION .text:CODE:NOROOT:REORDER(2)
sahilmgandhi 18:6a4db94011d3 126 Reset_Handler
sahilmgandhi 18:6a4db94011d3 127 LDR R0, =SystemInit
sahilmgandhi 18:6a4db94011d3 128 BLX R0
sahilmgandhi 18:6a4db94011d3 129 LDR R0, =__iar_program_start
sahilmgandhi 18:6a4db94011d3 130 BX R0
sahilmgandhi 18:6a4db94011d3 131
sahilmgandhi 18:6a4db94011d3 132 PUBWEAK NMI_Handler
sahilmgandhi 18:6a4db94011d3 133 PUBWEAK HardFault_Handler
sahilmgandhi 18:6a4db94011d3 134 PUBWEAK MemManage_Handler
sahilmgandhi 18:6a4db94011d3 135 PUBWEAK BusFault_Handler
sahilmgandhi 18:6a4db94011d3 136 PUBWEAK UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 137 PUBWEAK SVC_Handler
sahilmgandhi 18:6a4db94011d3 138 PUBWEAK DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 139 PUBWEAK PendSV_Handler
sahilmgandhi 18:6a4db94011d3 140 PUBWEAK SysTick_Handler
sahilmgandhi 18:6a4db94011d3 141 PUBWEAK WDT_IRQHandler
sahilmgandhi 18:6a4db94011d3 142 PUBWEAK BOD_IRQHandler
sahilmgandhi 18:6a4db94011d3 143 PUBWEAK FLASH_IRQHandler
sahilmgandhi 18:6a4db94011d3 144 PUBWEAK EE_IRQHandler
sahilmgandhi 18:6a4db94011d3 145 PUBWEAK DMA_IRQHandler
sahilmgandhi 18:6a4db94011d3 146 PUBWEAK GINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 147 PUBWEAK GINT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 148 PUBWEAK PIN_INT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 149 PUBWEAK PIN_INT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 150 PUBWEAK PIN_INT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 151 PUBWEAK PIN_INT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 152 PUBWEAK PIN_INT4_IRQHandler
sahilmgandhi 18:6a4db94011d3 153 PUBWEAK PIN_INT5_IRQHandler
sahilmgandhi 18:6a4db94011d3 154 PUBWEAK PIN_INT6_IRQHandler
sahilmgandhi 18:6a4db94011d3 155 PUBWEAK PIN_INT7_IRQHandler
sahilmgandhi 18:6a4db94011d3 156 PUBWEAK RIT_IRQHandler
sahilmgandhi 18:6a4db94011d3 157 PUBWEAK SCT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 158 PUBWEAK SCT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 159 PUBWEAK SCT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 160 PUBWEAK SCT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 161 PUBWEAK MRT_IRQHandler
sahilmgandhi 18:6a4db94011d3 162 PUBWEAK UART0_IRQHandler
sahilmgandhi 18:6a4db94011d3 163 PUBWEAK UART1_IRQHandler
sahilmgandhi 18:6a4db94011d3 164 PUBWEAK UART2_IRQHandler
sahilmgandhi 18:6a4db94011d3 165 PUBWEAK I2C0_IRQHandler
sahilmgandhi 18:6a4db94011d3 166 PUBWEAK SPI0_IRQHandler
sahilmgandhi 18:6a4db94011d3 167 PUBWEAK SPI1_IRQHandler
sahilmgandhi 18:6a4db94011d3 168 PUBWEAK C_CAN0_IRQHandler
sahilmgandhi 18:6a4db94011d3 169 PUBWEAK USB_IRQ_IRQHandler
sahilmgandhi 18:6a4db94011d3 170 PUBWEAK USB_FIQ_IRQHandler
sahilmgandhi 18:6a4db94011d3 171 PUBWEAK USBWakeup_IRQHandler
sahilmgandhi 18:6a4db94011d3 172 PUBWEAK ADC0_SEQA_IRQHandler
sahilmgandhi 18:6a4db94011d3 173 PUBWEAK ADC0_SEQB_IRQHandler
sahilmgandhi 18:6a4db94011d3 174 PUBWEAK ADC0_THCMP_IRQHandler
sahilmgandhi 18:6a4db94011d3 175 PUBWEAK ADC0_OVR_IRQHandler
sahilmgandhi 18:6a4db94011d3 176 PUBWEAK ADC1_SEQA_IRQHandler
sahilmgandhi 18:6a4db94011d3 177 PUBWEAK ADC1_SEQB_IRQHandler
sahilmgandhi 18:6a4db94011d3 178 PUBWEAK ADC1_THCMP_IRQHandler
sahilmgandhi 18:6a4db94011d3 179 PUBWEAK ADC1_OVR_IRQHandler
sahilmgandhi 18:6a4db94011d3 180 PUBWEAK DAC_IRQHandler
sahilmgandhi 18:6a4db94011d3 181 PUBWEAK CMP0_IRQHandler
sahilmgandhi 18:6a4db94011d3 182 PUBWEAK CMP1_IRQHandler
sahilmgandhi 18:6a4db94011d3 183 PUBWEAK CMP2_IRQHandler
sahilmgandhi 18:6a4db94011d3 184 PUBWEAK CMP3_IRQHandler
sahilmgandhi 18:6a4db94011d3 185 PUBWEAK QEI_IRQHandler
sahilmgandhi 18:6a4db94011d3 186 PUBWEAK RTC_ALARM_IRQHandler
sahilmgandhi 18:6a4db94011d3 187 PUBWEAK RTC_WAKE_IRQHandler
sahilmgandhi 18:6a4db94011d3 188
sahilmgandhi 18:6a4db94011d3 189 SECTION .text:CODE:REORDER:NOROOT(1)
sahilmgandhi 18:6a4db94011d3 190 THUMB
sahilmgandhi 18:6a4db94011d3 191
sahilmgandhi 18:6a4db94011d3 192 NMI_Handler
sahilmgandhi 18:6a4db94011d3 193 HardFault_Handler
sahilmgandhi 18:6a4db94011d3 194 MemManage_Handler
sahilmgandhi 18:6a4db94011d3 195 BusFault_Handler
sahilmgandhi 18:6a4db94011d3 196 UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 197 SVC_Handler
sahilmgandhi 18:6a4db94011d3 198 DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 199 PendSV_Handler
sahilmgandhi 18:6a4db94011d3 200 SysTick_Handler
sahilmgandhi 18:6a4db94011d3 201 WDT_IRQHandler
sahilmgandhi 18:6a4db94011d3 202 BOD_IRQHandler
sahilmgandhi 18:6a4db94011d3 203 FLASH_IRQHandler
sahilmgandhi 18:6a4db94011d3 204 EE_IRQHandler
sahilmgandhi 18:6a4db94011d3 205 DMA_IRQHandler
sahilmgandhi 18:6a4db94011d3 206 GINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 207 GINT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 208 PIN_INT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 209 PIN_INT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 210 PIN_INT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 211 PIN_INT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 212 PIN_INT4_IRQHandler
sahilmgandhi 18:6a4db94011d3 213 PIN_INT5_IRQHandler
sahilmgandhi 18:6a4db94011d3 214 PIN_INT6_IRQHandler
sahilmgandhi 18:6a4db94011d3 215 PIN_INT7_IRQHandler
sahilmgandhi 18:6a4db94011d3 216 RIT_IRQHandler
sahilmgandhi 18:6a4db94011d3 217 SCT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 218 SCT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 219 SCT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 220 SCT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 221 MRT_IRQHandler
sahilmgandhi 18:6a4db94011d3 222 UART0_IRQHandler
sahilmgandhi 18:6a4db94011d3 223 UART1_IRQHandler
sahilmgandhi 18:6a4db94011d3 224 UART2_IRQHandler
sahilmgandhi 18:6a4db94011d3 225 I2C0_IRQHandler
sahilmgandhi 18:6a4db94011d3 226 SPI0_IRQHandler
sahilmgandhi 18:6a4db94011d3 227 SPI1_IRQHandler
sahilmgandhi 18:6a4db94011d3 228 C_CAN0_IRQHandler
sahilmgandhi 18:6a4db94011d3 229 USB_IRQ_IRQHandler
sahilmgandhi 18:6a4db94011d3 230 USB_FIQ_IRQHandler
sahilmgandhi 18:6a4db94011d3 231 USBWakeup_IRQHandler
sahilmgandhi 18:6a4db94011d3 232 ADC0_SEQA_IRQHandler
sahilmgandhi 18:6a4db94011d3 233 ADC0_SEQB_IRQHandler
sahilmgandhi 18:6a4db94011d3 234 ADC0_THCMP_IRQHandler
sahilmgandhi 18:6a4db94011d3 235 ADC0_OVR_IRQHandler
sahilmgandhi 18:6a4db94011d3 236 ADC1_SEQA_IRQHandler
sahilmgandhi 18:6a4db94011d3 237 ADC1_SEQB_IRQHandler
sahilmgandhi 18:6a4db94011d3 238 ADC1_THCMP_IRQHandler
sahilmgandhi 18:6a4db94011d3 239 ADC1_OVR_IRQHandler
sahilmgandhi 18:6a4db94011d3 240 DAC_IRQHandler
sahilmgandhi 18:6a4db94011d3 241 CMP0_IRQHandler
sahilmgandhi 18:6a4db94011d3 242 CMP1_IRQHandler
sahilmgandhi 18:6a4db94011d3 243 CMP2_IRQHandler
sahilmgandhi 18:6a4db94011d3 244 CMP3_IRQHandler
sahilmgandhi 18:6a4db94011d3 245 QEI_IRQHandler
sahilmgandhi 18:6a4db94011d3 246 RTC_ALARM_IRQHandler
sahilmgandhi 18:6a4db94011d3 247 RTC_WAKE_IRQHandler
sahilmgandhi 18:6a4db94011d3 248 Default_Handler
sahilmgandhi 18:6a4db94011d3 249 B Default_Handler
sahilmgandhi 18:6a4db94011d3 250
sahilmgandhi 18:6a4db94011d3 251
sahilmgandhi 18:6a4db94011d3 252 SECTION .crp:CODE:ROOT(2)
sahilmgandhi 18:6a4db94011d3 253 DATA
sahilmgandhi 18:6a4db94011d3 254 /* Code Read Protection
sahilmgandhi 18:6a4db94011d3 255 CRP1 0x12345678 - Write to RAM command can not access RAM below 0x10000200.
sahilmgandhi 18:6a4db94011d3 256 - Read Memory command: disabled.
sahilmgandhi 18:6a4db94011d3 257 - Copy RAM to Flash command: cannot write to Sector 0.
sahilmgandhi 18:6a4db94011d3 258 - "Go" command: disabled.
sahilmgandhi 18:6a4db94011d3 259 - Erase sector(s) command: can erase any individual sector except
sahilmgandhi 18:6a4db94011d3 260 sector 0 only, or can erase all sectors at once.
sahilmgandhi 18:6a4db94011d3 261 - Compare command: disabled
sahilmgandhi 18:6a4db94011d3 262 CRP2 0x87654321 - Write to RAM command: disabled.
sahilmgandhi 18:6a4db94011d3 263 - Copy RAM to Flash: disabled.
sahilmgandhi 18:6a4db94011d3 264 - Erase command: only allows erase of all sectors.
sahilmgandhi 18:6a4db94011d3 265 CRP3 0x43218765 - Access to chip via the SWD pins is disabled. ISP entry
sahilmgandhi 18:6a4db94011d3 266 by pulling PIO0_1 LOW is disabled if a valid user code is
sahilmgandhi 18:6a4db94011d3 267 present in flash sector 0.
sahilmgandhi 18:6a4db94011d3 268 Caution: If CRP3 is selected, no future factory testing can be
sahilmgandhi 18:6a4db94011d3 269 performed on the device.
sahilmgandhi 18:6a4db94011d3 270 */
sahilmgandhi 18:6a4db94011d3 271 DCD 0xFFFFFFFF
sahilmgandhi 18:6a4db94011d3 272
sahilmgandhi 18:6a4db94011d3 273
sahilmgandhi 18:6a4db94011d3 274 END