


ARM Macro Assembler    Page 1 


    1 00000000         ;/******************************************************
                       ***********************
    2 00000000         ; * @file:    startup_MPS.s
    3 00000000         ; * @purpose: CMSIS Cortex-M3 Core Device Startup File 
    4 00000000         ; *           for the ARM 'Microcontroller Prototyping S
                       ystem' 
    5 00000000         ; * @version: V1.0
    6 00000000         ; * @date:    3. Dec. 2008
    7 00000000         ; *------- <<< Use Configuration Wizard in Context Menu 
                       >>> ------------------
    8 00000000         ; *
    9 00000000         ; * Copyright (C) 2008 ARM Limited. All rights reserved.
                       
   10 00000000         ; * ARM Limited (ARM) is supplying this software for use
                        with Cortex-M3 
   11 00000000         ; * processor based microcontrollers.  This file can be 
                       freely distributed 
   12 00000000         ; * within development tools that are supporting such AR
                       M based processors. 
   13 00000000         ; *
   14 00000000         ; * THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, W
                       HETHER EXPRESS, IMPLIED
   15 00000000         ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED
                        WARRANTIES OF
   16 00000000         ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                        APPLY TO THIS SOFTWARE.
   17 00000000         ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR S
                       PECIAL, INCIDENTAL, OR
   18 00000000         ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
   19 00000000         ; *
   20 00000000         ; ******************************************************
                       ***********************/
   21 00000000         
   22 00000000         
   23 00000000         ; <h> Stack Configuration
   24 00000000         ;   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
   25 00000000         ; </h>
   26 00000000         
   27 00000000 00000400 
                       Stack_Size
                               EQU              0x00000400
   28 00000000         
   29 00000000                 AREA             STACK, NOINIT, READWRITE, ALIGN
=3
   30 00000000         Stack_Mem
                               SPACE            Stack_Size
   31 00000400         __initial_sp
   32 00000400         
   33 00000400         
   34 00000400         ; <h> Heap Configuration
   35 00000400         ;   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
   36 00000400         ; </h>
   37 00000400         
   38 00000400 00000000 
                       Heap_Size
                               EQU              0x00000000
   39 00000400         
   40 00000400                 AREA             HEAP, NOINIT, READWRITE, ALIGN=
3



ARM Macro Assembler    Page 2 


   41 00000000         __heap_base
   42 00000000         Heap_Mem
                               SPACE            Heap_Size
   43 00000000         __heap_limit
   44 00000000         
   45 00000000         
   46 00000000                 PRESERVE8
   47 00000000                 THUMB
   48 00000000         
   49 00000000         
   50 00000000         ; Vector Table Mapped to Address 0 at Reset
   51 00000000         
   52 00000000                 AREA             RESET, DATA, READONLY
   53 00000000                 EXPORT           __Vectors
   54 00000000         
   55 00000000 00000000 
                       __Vectors
                               DCD              __initial_sp ; Top of Stack
   56 00000004 00000000        DCD              Reset_Handler ; Reset Handler
   57 00000008 00000000        DCD              NMI_Handler ; NMI Handler
   58 0000000C 00000000        DCD              HardFault_Handler ; Hard Fault 
                                                            Handler
   59 00000010 00000000        DCD              MemManage_Handler 
                                                            ; MPU Fault Handler
                                                            
   60 00000014 00000000        DCD              BusFault_Handler 
                                                            ; Bus Fault Handler
                                                            
   61 00000018 00000000        DCD              UsageFault_Handler ; Usage Faul
                                                            t Handler
   62 0000001C 00000000        DCD              0           ; Reserved
   63 00000020 00000000        DCD              0           ; Reserved
   64 00000024 00000000        DCD              0           ; Reserved
   65 00000028 00000000        DCD              0           ; Reserved
   66 0000002C 00000000        DCD              SVC_Handler ; SVCall Handler
   67 00000030 00000000        DCD              DebugMon_Handler ; Debug Monito
                                                            r Handler
   68 00000034 00000000        DCD              0           ; Reserved
   69 00000038 00000000        DCD              PendSV_Handler ; PendSV Handler
                                                            
   70 0000003C 00000000        DCD              SysTick_Handler 
                                                            ; SysTick Handler
   71 00000040         
   72 00000040         ; External Interrupts
   73 00000040 00000000        DCD              WDT_IRQHandler ; 0:  Watchdog T
                                                            imer
   74 00000044 00000000        DCD              RTC_IRQHandler ; 1:  Real Time 
                                                            Clock
   75 00000048 00000000        DCD              TIM0_IRQHandler ; 2:  Timer0 / 
                                                            Timer1
   76 0000004C 00000000        DCD              TIM2_IRQHandler ; 3:  Timer2 / 
                                                            Timer3
   77 00000050 00000000        DCD              MCIA_IRQHandler ; 4:  MCIa
   78 00000054 00000000        DCD              MCIB_IRQHandler ; 5:  MCIb
   79 00000058 00000000        DCD              UART0_IRQHandler ; 6:  UART0
   80 0000005C 00000000        DCD              UART1_IRQHandler ; 7:  UART1
   81 00000060 00000000        DCD              UART2_IRQHandler ; 8:  UART2
   82 00000064 00000000        DCD              UART3_IRQHandler ; 9:  UART3
   83 00000068 00000000        DCD              AACI_IRQHandler 



ARM Macro Assembler    Page 3 


                                                            ; 10: AACI / AC97
   84 0000006C 00000000        DCD              CLCD_IRQHandler ; 11: CLCD Comb
                                                            ined Interrupt
   85 00000070 00000000        DCD              ENET_IRQHandler ; 12: Ethernet
   86 00000074 00000000        DCD              USBDC_IRQHandler 
                                                            ; 13: USB Device
   87 00000078 00000000        DCD              USBHC_IRQHandler ; 14: USB Host
                                                             Controller
   88 0000007C 00000000        DCD              CHLCD_IRQHandler 
                                                            ; 15: Character LCD
                                                            
   89 00000080 00000000        DCD              FLEXRAY_IRQHandler 
                                                            ; 16: Flexray
   90 00000084 00000000        DCD              CAN_IRQHandler ; 17: CAN
   91 00000088 00000000        DCD              LIN_IRQHandler ; 18: LIN
   92 0000008C 00000000        DCD              I2C_IRQHandler 
                                                            ; 19: I2C ADC/DAC
   93 00000090 00000000        DCD              0           ; 20: Reserved
   94 00000094 00000000        DCD              0           ; 21: Reserved
   95 00000098 00000000        DCD              0           ; 22: Reserved
   96 0000009C 00000000        DCD              0           ; 23: Reserved
   97 000000A0 00000000        DCD              0           ; 24: Reserved
   98 000000A4 00000000        DCD              0           ; 25: Reserved
   99 000000A8 00000000        DCD              0           ; 26: Reserved
  100 000000AC 00000000        DCD              0           ; 27: Reserved
  101 000000B0 00000000        DCD              0           ; 28: Reserved
  102 000000B4 00000000        DCD              0           ; 29: Reserved
  103 000000B8 00000000        DCD              0           ; 30: Reserved
  104 000000BC 00000000        DCD              SPI_IRQHandler ; 31: SPI Touchs
                                                            creen
  105 000000C0         
  106 000000C0         
  107 000000C0                 AREA             |.text|, CODE, READONLY
  108 00000000         
  109 00000000         
  110 00000000         ; Reset Handler
  111 00000000         
  112 00000000         Reset_Handler
                               PROC
  113 00000000                 EXPORT           Reset_Handler             [WEAK
]
  114 00000000                 IMPORT           __main
  115 00000000 4808            LDR              R0, =__main
  116 00000002 4700            BX               R0
  117 00000004                 ENDP
  118 00000004         
  119 00000004         
  120 00000004         ; Dummy Exception Handlers (infinite loops which can be 
                       modified)
  121 00000004         
  122 00000004         NMI_Handler
                               PROC
  123 00000004                 EXPORT           NMI_Handler               [WEAK
]
  124 00000004 E7FE            B                .
  125 00000006                 ENDP
  127 00000006         HardFault_Handler
                               PROC
  128 00000006                 EXPORT           HardFault_Handler         [WEAK



ARM Macro Assembler    Page 4 


]
  129 00000006 E7FE            B                .
  130 00000008                 ENDP
  132 00000008         MemManage_Handler
                               PROC
  133 00000008                 EXPORT           MemManage_Handler         [WEAK
]
  134 00000008 E7FE            B                .
  135 0000000A                 ENDP
  137 0000000A         BusFault_Handler
                               PROC
  138 0000000A                 EXPORT           BusFault_Handler          [WEAK
]
  139 0000000A E7FE            B                .
  140 0000000C                 ENDP
  142 0000000C         UsageFault_Handler
                               PROC
  143 0000000C                 EXPORT           UsageFault_Handler        [WEAK
]
  144 0000000C E7FE            B                .
  145 0000000E                 ENDP
  146 0000000E         SVC_Handler
                               PROC
  147 0000000E                 EXPORT           SVC_Handler               [WEAK
]
  148 0000000E E7FE            B                .
  149 00000010                 ENDP
  151 00000010         DebugMon_Handler
                               PROC
  152 00000010                 EXPORT           DebugMon_Handler          [WEAK
]
  153 00000010 E7FE            B                .
  154 00000012                 ENDP
  155 00000012         PendSV_Handler
                               PROC
  156 00000012                 EXPORT           PendSV_Handler            [WEAK
]
  157 00000012 E7FE            B                .
  158 00000014                 ENDP
  159 00000014         SysTick_Handler
                               PROC
  160 00000014                 EXPORT           SysTick_Handler           [WEAK
]
  161 00000014 E7FE            B                .
  162 00000016                 ENDP
  163 00000016         
  164 00000016         Default_Handler
                               PROC
  165 00000016         
  166 00000016                 EXPORT           WDT_IRQHandler            [WEAK
]
  167 00000016                 EXPORT           RTC_IRQHandler            [WEAK
]
  168 00000016                 EXPORT           TIM0_IRQHandler           [WEAK
]
  169 00000016                 EXPORT           TIM2_IRQHandler           [WEAK
]
  170 00000016                 EXPORT           MCIA_IRQHandler           [WEAK
]



ARM Macro Assembler    Page 5 


  171 00000016                 EXPORT           MCIB_IRQHandler           [WEAK
]
  172 00000016                 EXPORT           UART0_IRQHandler          [WEAK
]
  173 00000016                 EXPORT           UART1_IRQHandler          [WEAK
]
  174 00000016                 EXPORT           UART2_IRQHandler          [WEAK
]
  175 00000016                 EXPORT           UART3_IRQHandler          [WEAK
]
  176 00000016                 EXPORT           AACI_IRQHandler           [WEAK
]
  177 00000016                 EXPORT           CLCD_IRQHandler           [WEAK
]
  178 00000016                 EXPORT           ENET_IRQHandler           [WEAK
]
  179 00000016                 EXPORT           USBDC_IRQHandler          [WEAK
]
  180 00000016                 EXPORT           USBHC_IRQHandler          [WEAK
]
  181 00000016                 EXPORT           CHLCD_IRQHandler          [WEAK
]
  182 00000016                 EXPORT           FLEXRAY_IRQHandler        [WEAK
]
  183 00000016                 EXPORT           CAN_IRQHandler            [WEAK
]
  184 00000016                 EXPORT           LIN_IRQHandler            [WEAK
]
  185 00000016                 EXPORT           I2C_IRQHandler            [WEAK
]
  186 00000016                 EXPORT           SPI_IRQHandler            [WEAK
]
  187 00000016         
  188 00000016         WDT_IRQHandler
  189 00000016         RTC_IRQHandler
  190 00000016         TIM0_IRQHandler
  191 00000016         TIM2_IRQHandler
  192 00000016         MCIA_IRQHandler
  193 00000016         MCIB_IRQHandler
  194 00000016         UART0_IRQHandler
  195 00000016         UART1_IRQHandler
  196 00000016         UART2_IRQHandler
  197 00000016         UART3_IRQHandler
  198 00000016         AACI_IRQHandler
  199 00000016         CLCD_IRQHandler
  200 00000016         ENET_IRQHandler
  201 00000016         USBDC_IRQHandler
  202 00000016         USBHC_IRQHandler
  203 00000016         CHLCD_IRQHandler
  204 00000016         FLEXRAY_IRQHandler
  205 00000016         CAN_IRQHandler
  206 00000016         LIN_IRQHandler
  207 00000016         I2C_IRQHandler
  208 00000016         SPI_IRQHandler
  209 00000016 E7FE            B                .
  210 00000018         
  211 00000018                 ENDP
  212 00000018         
  213 00000018         



ARM Macro Assembler    Page 6 


  214 00000018                 ALIGN
  215 00000018         
  216 00000018         
  217 00000018         ; User Initial Stack & Heap
  218 00000018         
  219 00000018                 IF               :DEF:__MICROLIB
  226 00000018         
  227 00000018                 IMPORT           __use_two_region_memory
  228 00000018                 EXPORT           __user_initial_stackheap
  229 00000018         __user_initial_stackheap
  230 00000018         
  231 00000018 4803            LDR              R0, =  Heap_Mem
  232 0000001A 4904            LDR              R1, =(Stack_Mem + Stack_Size)
  233 0000001C 4A02            LDR              R2, = (Heap_Mem +  Heap_Size)
  234 0000001E 4B04            LDR              R3, = Stack_Mem
  235 00000020 4770            BX               LR
  236 00000022         
  237 00000022 00 00           ALIGN
  238 00000024         
  239 00000024                 ENDIF
  240 00000024         
  241 00000024         
  242 00000024                 END
              00000000 
              00000000 
              00000400 
              00000000 
Command Line: --debug --xref --cpu=Cortex-M3 --apcs=interwork --depend=startup.
d -ostartup.o -I"D:\ARM Tools\Keil MDK ARM\ARM\RV31\Inc" -I"D:\ARM Tools\Keil M
DK ARM\ARM\CMSIS\Include" --list=startup.lst startup.s



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

STACK 00000000

Symbol: STACK
   Definitions
      At line 29 in file startup.s
   Uses
      None
Comment: STACK unused
Stack_Mem 00000000

Symbol: Stack_Mem
   Definitions
      At line 30 in file startup.s
   Uses
      At line 232 in file startup.s
      At line 234 in file startup.s

__initial_sp 00000400

Symbol: __initial_sp
   Definitions
      At line 31 in file startup.s
   Uses
      At line 55 in file startup.s
Comment: __initial_sp used once
3 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

HEAP 00000000

Symbol: HEAP
   Definitions
      At line 40 in file startup.s
   Uses
      None
Comment: HEAP unused
Heap_Mem 00000000

Symbol: Heap_Mem
   Definitions
      At line 42 in file startup.s
   Uses
      At line 231 in file startup.s
      At line 233 in file startup.s

__heap_base 00000000

Symbol: __heap_base
   Definitions
      At line 41 in file startup.s
   Uses
      None
Comment: __heap_base unused
__heap_limit 00000000

Symbol: __heap_limit
   Definitions
      At line 43 in file startup.s
   Uses
      None
Comment: __heap_limit unused
4 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

RESET 00000000

Symbol: RESET
   Definitions
      At line 52 in file startup.s
   Uses
      None
Comment: RESET unused
__Vectors 00000000

Symbol: __Vectors
   Definitions
      At line 55 in file startup.s
   Uses
      At line 53 in file startup.s
Comment: __Vectors used once
2 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

.text 00000000

Symbol: .text
   Definitions
      At line 107 in file startup.s
   Uses
      None
Comment: .text unused
AACI_IRQHandler 00000016

Symbol: AACI_IRQHandler
   Definitions
      At line 198 in file startup.s
   Uses
      At line 83 in file startup.s
      At line 176 in file startup.s

BusFault_Handler 0000000A

Symbol: BusFault_Handler
   Definitions
      At line 137 in file startup.s
   Uses
      At line 60 in file startup.s
      At line 138 in file startup.s

CAN_IRQHandler 00000016

Symbol: CAN_IRQHandler
   Definitions
      At line 205 in file startup.s
   Uses
      At line 90 in file startup.s
      At line 183 in file startup.s

CHLCD_IRQHandler 00000016

Symbol: CHLCD_IRQHandler
   Definitions
      At line 203 in file startup.s
   Uses
      At line 88 in file startup.s
      At line 181 in file startup.s

CLCD_IRQHandler 00000016

Symbol: CLCD_IRQHandler
   Definitions
      At line 199 in file startup.s
   Uses
      At line 84 in file startup.s
      At line 177 in file startup.s

DebugMon_Handler 00000010

Symbol: DebugMon_Handler
   Definitions
      At line 151 in file startup.s
   Uses



ARM Macro Assembler    Page 2 Alphabetic symbol ordering
Relocatable symbols

      At line 67 in file startup.s
      At line 152 in file startup.s

Default_Handler 00000016

Symbol: Default_Handler
   Definitions
      At line 164 in file startup.s
   Uses
      None
Comment: Default_Handler unused
ENET_IRQHandler 00000016

Symbol: ENET_IRQHandler
   Definitions
      At line 200 in file startup.s
   Uses
      At line 85 in file startup.s
      At line 178 in file startup.s

FLEXRAY_IRQHandler 00000016

Symbol: FLEXRAY_IRQHandler
   Definitions
      At line 204 in file startup.s
   Uses
      At line 89 in file startup.s
      At line 182 in file startup.s

HardFault_Handler 00000006

Symbol: HardFault_Handler
   Definitions
      At line 127 in file startup.s
   Uses
      At line 58 in file startup.s
      At line 128 in file startup.s

I2C_IRQHandler 00000016

Symbol: I2C_IRQHandler
   Definitions
      At line 207 in file startup.s
   Uses
      At line 92 in file startup.s
      At line 185 in file startup.s

LIN_IRQHandler 00000016

Symbol: LIN_IRQHandler
   Definitions
      At line 206 in file startup.s
   Uses
      At line 91 in file startup.s
      At line 184 in file startup.s

MCIA_IRQHandler 00000016

Symbol: MCIA_IRQHandler



ARM Macro Assembler    Page 3 Alphabetic symbol ordering
Relocatable symbols

   Definitions
      At line 192 in file startup.s
   Uses
      At line 77 in file startup.s
      At line 170 in file startup.s

MCIB_IRQHandler 00000016

Symbol: MCIB_IRQHandler
   Definitions
      At line 193 in file startup.s
   Uses
      At line 78 in file startup.s
      At line 171 in file startup.s

MemManage_Handler 00000008

Symbol: MemManage_Handler
   Definitions
      At line 132 in file startup.s
   Uses
      At line 59 in file startup.s
      At line 133 in file startup.s

NMI_Handler 00000004

Symbol: NMI_Handler
   Definitions
      At line 122 in file startup.s
   Uses
      At line 57 in file startup.s
      At line 123 in file startup.s

PendSV_Handler 00000012

Symbol: PendSV_Handler
   Definitions
      At line 155 in file startup.s
   Uses
      At line 69 in file startup.s
      At line 156 in file startup.s

RTC_IRQHandler 00000016

Symbol: RTC_IRQHandler
   Definitions
      At line 189 in file startup.s
   Uses
      At line 74 in file startup.s
      At line 167 in file startup.s

Reset_Handler 00000000

Symbol: Reset_Handler
   Definitions
      At line 112 in file startup.s
   Uses
      At line 56 in file startup.s
      At line 113 in file startup.s



ARM Macro Assembler    Page 4 Alphabetic symbol ordering
Relocatable symbols


SPI_IRQHandler 00000016

Symbol: SPI_IRQHandler
   Definitions
      At line 208 in file startup.s
   Uses
      At line 104 in file startup.s
      At line 186 in file startup.s

SVC_Handler 0000000E

Symbol: SVC_Handler
   Definitions
      At line 146 in file startup.s
   Uses
      At line 66 in file startup.s
      At line 147 in file startup.s

SysTick_Handler 00000014

Symbol: SysTick_Handler
   Definitions
      At line 159 in file startup.s
   Uses
      At line 70 in file startup.s
      At line 160 in file startup.s

TIM0_IRQHandler 00000016

Symbol: TIM0_IRQHandler
   Definitions
      At line 190 in file startup.s
   Uses
      At line 75 in file startup.s
      At line 168 in file startup.s

TIM2_IRQHandler 00000016

Symbol: TIM2_IRQHandler
   Definitions
      At line 191 in file startup.s
   Uses
      At line 76 in file startup.s
      At line 169 in file startup.s

UART0_IRQHandler 00000016

Symbol: UART0_IRQHandler
   Definitions
      At line 194 in file startup.s
   Uses
      At line 79 in file startup.s
      At line 172 in file startup.s

UART1_IRQHandler 00000016

Symbol: UART1_IRQHandler
   Definitions



ARM Macro Assembler    Page 5 Alphabetic symbol ordering
Relocatable symbols

      At line 195 in file startup.s
   Uses
      At line 80 in file startup.s
      At line 173 in file startup.s

UART2_IRQHandler 00000016

Symbol: UART2_IRQHandler
   Definitions
      At line 196 in file startup.s
   Uses
      At line 81 in file startup.s
      At line 174 in file startup.s

UART3_IRQHandler 00000016

Symbol: UART3_IRQHandler
   Definitions
      At line 197 in file startup.s
   Uses
      At line 82 in file startup.s
      At line 175 in file startup.s

USBDC_IRQHandler 00000016

Symbol: USBDC_IRQHandler
   Definitions
      At line 201 in file startup.s
   Uses
      At line 86 in file startup.s
      At line 179 in file startup.s

USBHC_IRQHandler 00000016

Symbol: USBHC_IRQHandler
   Definitions
      At line 202 in file startup.s
   Uses
      At line 87 in file startup.s
      At line 180 in file startup.s

UsageFault_Handler 0000000C

Symbol: UsageFault_Handler
   Definitions
      At line 142 in file startup.s
   Uses
      At line 61 in file startup.s
      At line 143 in file startup.s

WDT_IRQHandler 00000016

Symbol: WDT_IRQHandler
   Definitions
      At line 188 in file startup.s
   Uses
      At line 73 in file startup.s
      At line 166 in file startup.s




ARM Macro Assembler    Page 6 Alphabetic symbol ordering
Relocatable symbols

__user_initial_stackheap 00000018

Symbol: __user_initial_stackheap
   Definitions
      At line 229 in file startup.s
   Uses
      At line 228 in file startup.s
Comment: __user_initial_stackheap used once
34 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Absolute symbols

Heap_Size 00000000

Symbol: Heap_Size
   Definitions
      At line 38 in file startup.s
   Uses
      At line 42 in file startup.s
      At line 233 in file startup.s

Stack_Size 00000400

Symbol: Stack_Size
   Definitions
      At line 27 in file startup.s
   Uses
      At line 30 in file startup.s
      At line 232 in file startup.s

2 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
External symbols

__main 00000000

Symbol: __main
   Definitions
      At line 114 in file startup.s
   Uses
      At line 115 in file startup.s
Comment: __main used once
__use_two_region_memory 00000000

Symbol: __use_two_region_memory
   Definitions
      At line 227 in file startup.s
   Uses
      None
Comment: __use_two_region_memory unused
2 symbols
381 symbols in table
