


ARM Macro Assembler    Page 1 


    1 00000000         ;/******************************************************
                       ***********************/
    2 00000000         ;/* STM32F10x.s: Startup file for ARM Cortex-M1 Device F
                       amily                 */
    3 00000000         ;/******************************************************
                       ***********************/
    4 00000000         ;/* <<< Use Configuration Wizard in Context Menu >>>    
                                             */
    5 00000000         ;/******************************************************
                       ***********************/
    6 00000000         ;/* This file is part of the uVision/ARM development too
                       ls.                   */
    7 00000000         ;/* Copyright (c) 2005-2008 Keil Software. All rights re
                       served.               */
    8 00000000         ;/* This software may only be used under the terms of a 
                       valid, current,       */
    9 00000000         ;/* end user licence from KEIL for a compatible version 
                       of KEIL software      */
   10 00000000         ;/* development tools. Nothing else gives you the right 
                       to use this software. */
   11 00000000         ;/******************************************************
                       ***********************/
   12 00000000         
   13 00000000         
   14 00000000         ;// <h> Stack Configuration
   15 00000000         ;//   <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
   16 00000000         ;// </h>
   17 00000000         
   18 00000000 00001000 
                       Stack_Size
                               EQU              0x00001000
   19 00000000         
   20 00000000                 AREA             STACK, NOINIT, READWRITE, ALIGN
=3
   21 00000000         Stack_Mem
                               SPACE            Stack_Size
   22 00001000         __initial_sp
   23 00001000         
   24 00001000         
   25 00001000         ;// <h> Heap Configuration
   26 00001000         ;//   <o>  Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
   27 00001000         ;// </h>
   28 00001000         
   29 00001000 00001000 
                       Heap_Size
                               EQU              0x00001000
   30 00001000         
   31 00001000                 AREA             HEAP, NOINIT, READWRITE, ALIGN=
3
   32 00000000         __heap_base
   33 00000000         Heap_Mem
                               SPACE            Heap_Size
   34 00001000         __heap_limit
   35 00001000         
   36 00001000         
   37 00001000                 PRESERVE8
   38 00001000                 THUMB
   39 00001000         
   40 00001000         



ARM Macro Assembler    Page 2 


   41 00001000         ; Vector Table Mapped to Address 0 at Reset
   42 00001000         
   43 00001000                 AREA             RESET, DATA, READONLY
   44 00000000                 EXPORT           __Vectors
   45 00000000         
   46 00000000 00000000 
                       __Vectors
                               DCD              __initial_sp ; Top of Stack
   47 00000004 00000000        DCD              Reset_Handler ; Reset Handler
   48 00000008 00000000        DCD              NMI_Handler ; NMI Handler
   49 0000000C 00000000        DCD              HardFault_Handler ; Hard Fault 
                                                            Handler
   50 00000010 00000000        DCD              0           ; Reserved
   51 00000014 00000000        DCD              0           ; Reserved
   52 00000018 00000000        DCD              0           ; Reserved
   53 0000001C 00000000        DCD              0           ; Reserved
   54 00000020 00000000        DCD              0           ; Reserved
   55 00000024 00000000        DCD              0           ; Reserved
   56 00000028 00000000        DCD              0           ; Reserved
   57 0000002C 00000000        DCD              SVC_Handler ; SVCall Handler
   58 00000030 00000000        DCD              0           ; Reserved
   59 00000034 00000000        DCD              0           ; Reserved
   60 00000038 00000000        DCD              PendSV_Handler ; PendSV Handler
                                                            
   61 0000003C 00000000        DCD              SysTick_Handler 
                                                            ; SysTick Handler
   62 00000040         
   63 00000040         ; External Interrupts
   64 00000040 00000000        DCD              CAN1_Handler ;IRQ0
   65 00000044 00000000        DCD              CAN2_Handler ;IRQ1
   66 00000048 00000000        DCD              USB_Handler ;IRQ2
   67 0000004C 00000000        DCD              0           ;IRQ3
   68 00000050 00000000        DCD              0           ;IRQ4
   69 00000054 00000000        DCD              DMA_Handler ;IRQ5
   70 00000058 00000000        DCD              UART1_Handler ;IRQ6
   71 0000005C 00000000        DCD              UART2_Handler ;IRQ7
   72 00000060 00000000        DCD              SSP1_Handler ;IRQ8
   73 00000064 00000000        DCD              0           ;IRQ9
   74 00000068 00000000        DCD              I2C_Handler ;IRQ10
   75 0000006C 00000000        DCD              POWER_Handler ;IRQ11
   76 00000070 00000000        DCD              WWDG_Handler ;IRQ12
   77 00000074 00000000        DCD              0           ;IRQ13
   78 00000078 00000000        DCD              Timer1_Handler ;IRQ14
   79 0000007C 00000000        DCD              Timer2_Handler ;IRQ15
   80 00000080 00000000        DCD              Timer3_Handler ;IRQ16
   81 00000084 00000000        DCD              ADC_Handler ;IRQ17
   82 00000088 00000000        DCD              ETH_Handler ;IRQ18
   83 0000008C 00000000        DCD              COMPARATOR_Handler ;IRQ19
   84 00000090 00000000        DCD              SSP2_Handler ;IRQ20
   85 00000094 00000000        DCD              0           ;IRQ21
   86 00000098 00000000        DCD              0           ;IRQ22
   87 0000009C 00000000        DCD              0           ;IRQ23
   88 000000A0 00000000        DCD              0           ;IRQ24
   89 000000A4 00000000        DCD              0           ;IRQ25
   90 000000A8 00000000        DCD              0           ;IRQ26
   91 000000AC 00000000        DCD              BKP_Handler ;IRQ27
   92 000000B0 00000000        DCD              EXT_INT1_Handler ;IRQ28
   93 000000B4 00000000        DCD              EXT_INT2_Handler ;IRQ29
   94 000000B8 00000000        DCD              EXT_INT3_Handler ;IRQ30



ARM Macro Assembler    Page 3 


   95 000000BC 00000000        DCD              EXT_INT4_Handler ;IRQ31
   96 000000C0         
   97 000000C0                 AREA             |.text|, CODE, READONLY
   98 00000000         
   99 00000000         
  100 00000000         ; Reset Handler
  101 00000000         
  102 00000000         Reset_Handler
                               PROC
  103 00000000                 EXPORT           Reset_Handler   [WEAK]
  104 00000000                 IMPORT           __main
  105 00000000 4811            LDR              R0,=__main
  106 00000002         ;MOVS  R0,#0x20
  107 00000002         ;LSLS  R0,#24
  108 00000002 4700            BX               R0
  109 00000004                 ENDP
  110 00000004         
  111 00000004         
  112 00000004         ; Dummy Exception Handlers (infinite loops which can be 
                       modified)                
  113 00000004         
  114 00000004         NMI_Handler
                               PROC
  115 00000004                 EXPORT           NMI_Handler    [WEAK]
  116 00000004 E7FE            B                .
  117 00000006                 ENDP
  119 00000006         HardFault_Handler
                               PROC
  120 00000006                 EXPORT           HardFault_Handler  [WEAK]
  121 00000006 E7FE            B                .
  122 00000008                 ENDP
  123 00000008         SVC_Handler
                               PROC
  124 00000008                 EXPORT           SVC_Handler    [WEAK]
  125 00000008 E7FE            B                .
  126 0000000A                 ENDP
  127 0000000A         
  128 0000000A         PendSV_Handler
                               PROC
  129 0000000A                 EXPORT           PendSV_Handler   [WEAK]
  130 0000000A E7FE            B                .
  131 0000000C                 ENDP
  132 0000000C         
  133 0000000C         SysTick_Handler
                               PROC
  134 0000000C                 EXPORT           SysTick_Handler   [WEAK]
  135 0000000C E7FE            B                .
  136 0000000E                 ENDP
  137 0000000E         
  138 0000000E         CAN1_Handler
                               PROC
  139 0000000E                 EXPORT           CAN1_Handler   [WEAK]
  140 0000000E E7FE            B                .
  141 00000010                 ENDP
  142 00000010         
  143 00000010         CAN2_Handler
                               PROC
  144 00000010                 EXPORT           CAN2_Handler   [WEAK]
  145 00000010 E7FE            B                .



ARM Macro Assembler    Page 4 


  146 00000012                 ENDP
  147 00000012         
  148 00000012         USB_Handler
                               PROC
  149 00000012                 EXPORT           USB_Handler   [WEAK]
  150 00000012 E7FE            B                .
  151 00000014                 ENDP
  152 00000014         
  153 00000014         DMA_Handler
                               PROC
  154 00000014                 EXPORT           DMA_Handler   [WEAK]
  155 00000014 E7FE            B                .
  156 00000016                 ENDP
  157 00000016         
  158 00000016         UART1_Handler
                               PROC
  159 00000016                 EXPORT           UART1_Handler   [WEAK]
  160 00000016 E7FE            B                .
  161 00000018                 ENDP
  162 00000018         
  163 00000018         UART2_Handler
                               PROC
  164 00000018                 EXPORT           UART2_Handler   [WEAK]
  165 00000018 E7FE            B                .
  166 0000001A                 ENDP
  167 0000001A         
  168 0000001A         SSP1_Handler
                               PROC
  169 0000001A                 EXPORT           SSP1_Handler   [WEAK]
  170 0000001A E7FE            B                .
  171 0000001C                 ENDP
  172 0000001C         
  173 0000001C         I2C_Handler
                               PROC
  174 0000001C                 EXPORT           I2C_Handler    [WEAK]
  175 0000001C E7FE            B                .
  176 0000001E                 ENDP
  177 0000001E         
  178 0000001E         POWER_Handler
                               PROC
  179 0000001E                 EXPORT           POWER_Handler   [WEAK]
  180 0000001E E7FE            B                .
  181 00000020                 ENDP
  182 00000020         
  183 00000020         WWDG_Handler
                               PROC
  184 00000020                 EXPORT           WWDG_Handler   [WEAK]
  185 00000020 E7FE            B                .
  186 00000022                 ENDP
  187 00000022         
  188 00000022         Timer1_Handler
                               PROC
  189 00000022                 EXPORT           Timer1_Handler   [WEAK]
  190 00000022 E7FE            B                .
  191 00000024                 ENDP
  192 00000024         
  193 00000024         Timer2_Handler
                               PROC
  194 00000024                 EXPORT           Timer2_Handler   [WEAK]



ARM Macro Assembler    Page 5 


  195 00000024 E7FE            B                .
  196 00000026                 ENDP
  197 00000026         
  198 00000026         Timer3_Handler
                               PROC
  199 00000026                 EXPORT           Timer3_Handler   [WEAK]
  200 00000026 E7FE            B                .
  201 00000028                 ENDP
  202 00000028         
  203 00000028         ADC_Handler
                               PROC
  204 00000028                 EXPORT           ADC_Handler    [WEAK]
  205 00000028 E7FE            B                .
  206 0000002A                 ENDP
  207 0000002A         
  208 0000002A         ETH_Handler
                               PROC
  209 0000002A                 EXPORT           ETH_Handler    [WEAK]
  210 0000002A E7FE            B                .
  211 0000002C                 ENDP
  212 0000002C         
  213 0000002C         COMPARATOR_Handler
                               PROC
  214 0000002C                 EXPORT           COMPARATOR_Handler  [WEAK]
  215 0000002C E7FE            B                .
  216 0000002E                 ENDP
  217 0000002E         
  218 0000002E         SSP2_Handler
                               PROC
  219 0000002E                 EXPORT           SSP2_Handler   [WEAK]
  220 0000002E E7FE            B                .
  221 00000030                 ENDP
  222 00000030         
  223 00000030         BKP_Handler
                               PROC
  224 00000030                 EXPORT           BKP_Handler    [WEAK]
  225 00000030 E7FE            B                .
  226 00000032                 ENDP
  227 00000032         
  228 00000032         EXT_INT1_Handler
                               PROC
  229 00000032                 EXPORT           EXT_INT1_Handler  [WEAK]
  230 00000032 E7FE            B                .
  231 00000034                 ENDP
  232 00000034         
  233 00000034         EXT_INT2_Handler
                               PROC
  234 00000034                 EXPORT           EXT_INT2_Handler  [WEAK]
  235 00000034 E7FE            B                .
  236 00000036                 ENDP
  237 00000036         
  238 00000036         EXT_INT3_Handler
                               PROC
  239 00000036                 EXPORT           EXT_INT3_Handler  [WEAK]
  240 00000036 E7FE            B                .
  241 00000038                 ENDP
  242 00000038         
  243 00000038         EXT_INT4_Handler
                               PROC



ARM Macro Assembler    Page 6 


  244 00000038                 EXPORT           EXT_INT4_Handler  [WEAK]
  245 00000038 E7FE            B                .
  246 0000003A                 ENDP
  247 0000003A         
  248 0000003A         
  249 0000003A         Default_Handler
                               PROC
  250 0000003A                 EXPORT           SDIRQ_Handler   [WEAK]
  251 0000003A         SDIRQ_Handler
  252 0000003A                 ENDP
  253 0000003A         
  254 0000003A         
  255 0000003A         
  256 0000003A 00 00           ALIGN
  257 0000003C         
  258 0000003C         
  259 0000003C         
  260 0000003C         ; User Initial Stack & Heap
  261 0000003C         
  262 0000003C                 IF               :DEF:__MICROLIB
  269 0000003C         
  270 0000003C                 IMPORT           __use_two_region_memory
  271 0000003C                 EXPORT           __user_initial_stackheap
  272 0000003C         __user_initial_stackheap
  273 0000003C         
  274 0000003C 4803            LDR              R0, =  Heap_Mem
  275 0000003E 4904            LDR              R1, =(Stack_Mem + Stack_Size)
  276 00000040 4A04            LDR              R2, = (Heap_Mem +  Heap_Size)
  277 00000042 4B05            LDR              R3, = Stack_Mem
  278 00000044 4770            BX               LR
  279 00000046         
  280 00000046 00 00           ALIGN
  281 00000048         
  282 00000048                 ENDIF
  283 00000048         
  284 00000048         
  285 00000048                 END
              00000000 
              00000000 
              00001000 
              00001000 
              00000000 
Command Line: --debug --xref --cpu=Cortex-M1 --apcs=interwork --depend=Startup.
d -oStartup.o -IC:\Keil4\ARM\INC -IC:\Keil4\ARM\INC\ARM --list=.\Startup.lst sr
c\Startup.s



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Relocatable symbols

STACK 00000000

Symbol: STACK
   Definitions
      At line 20 in file src\Startup.s
   Uses
      None
Comment: STACK unused
Stack_Mem 00000000

Symbol: Stack_Mem
   Definitions
      At line 21 in file src\Startup.s
   Uses
      At line 275 in file src\Startup.s
      At line 277 in file src\Startup.s

__initial_sp 00001000

Symbol: __initial_sp
   Definitions
      At line 22 in file src\Startup.s
   Uses
      At line 46 in file src\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 31 in file src\Startup.s
   Uses
      None
Comment: HEAP unused
Heap_Mem 00000000

Symbol: Heap_Mem
   Definitions
      At line 33 in file src\Startup.s
   Uses
      At line 274 in file src\Startup.s
      At line 276 in file src\Startup.s

__heap_base 00000000

Symbol: __heap_base
   Definitions
      At line 32 in file src\Startup.s
   Uses
      None
Comment: __heap_base unused
__heap_limit 00001000

Symbol: __heap_limit
   Definitions
      At line 34 in file src\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 43 in file src\Startup.s
   Uses
      None
Comment: RESET unused
__Vectors 00000000

Symbol: __Vectors
   Definitions
      At line 46 in file src\Startup.s
   Uses
      At line 44 in file src\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 97 in file src\Startup.s
   Uses
      None
Comment: .text unused
ADC_Handler 00000028

Symbol: ADC_Handler
   Definitions
      At line 203 in file src\Startup.s
   Uses
      At line 81 in file src\Startup.s
      At line 204 in file src\Startup.s

BKP_Handler 00000030

Symbol: BKP_Handler
   Definitions
      At line 223 in file src\Startup.s
   Uses
      At line 91 in file src\Startup.s
      At line 224 in file src\Startup.s

CAN1_Handler 0000000E

Symbol: CAN1_Handler
   Definitions
      At line 138 in file src\Startup.s
   Uses
      At line 64 in file src\Startup.s
      At line 139 in file src\Startup.s

CAN2_Handler 00000010

Symbol: CAN2_Handler
   Definitions
      At line 143 in file src\Startup.s
   Uses
      At line 65 in file src\Startup.s
      At line 144 in file src\Startup.s

COMPARATOR_Handler 0000002C

Symbol: COMPARATOR_Handler
   Definitions
      At line 213 in file src\Startup.s
   Uses
      At line 83 in file src\Startup.s
      At line 214 in file src\Startup.s

DMA_Handler 00000014

Symbol: DMA_Handler
   Definitions
      At line 153 in file src\Startup.s
   Uses



ARM Macro Assembler    Page 2 Alphabetic symbol ordering
Relocatable symbols

      At line 69 in file src\Startup.s
      At line 154 in file src\Startup.s

Default_Handler 0000003A

Symbol: Default_Handler
   Definitions
      At line 249 in file src\Startup.s
   Uses
      None
Comment: Default_Handler unused
ETH_Handler 0000002A

Symbol: ETH_Handler
   Definitions
      At line 208 in file src\Startup.s
   Uses
      At line 82 in file src\Startup.s
      At line 209 in file src\Startup.s

EXT_INT1_Handler 00000032

Symbol: EXT_INT1_Handler
   Definitions
      At line 228 in file src\Startup.s
   Uses
      At line 92 in file src\Startup.s
      At line 229 in file src\Startup.s

EXT_INT2_Handler 00000034

Symbol: EXT_INT2_Handler
   Definitions
      At line 233 in file src\Startup.s
   Uses
      At line 93 in file src\Startup.s
      At line 234 in file src\Startup.s

EXT_INT3_Handler 00000036

Symbol: EXT_INT3_Handler
   Definitions
      At line 238 in file src\Startup.s
   Uses
      At line 94 in file src\Startup.s
      At line 239 in file src\Startup.s

EXT_INT4_Handler 00000038

Symbol: EXT_INT4_Handler
   Definitions
      At line 243 in file src\Startup.s
   Uses
      At line 95 in file src\Startup.s
      At line 244 in file src\Startup.s

HardFault_Handler 00000006

Symbol: HardFault_Handler



ARM Macro Assembler    Page 3 Alphabetic symbol ordering
Relocatable symbols

   Definitions
      At line 119 in file src\Startup.s
   Uses
      At line 49 in file src\Startup.s
      At line 120 in file src\Startup.s

I2C_Handler 0000001C

Symbol: I2C_Handler
   Definitions
      At line 173 in file src\Startup.s
   Uses
      At line 74 in file src\Startup.s
      At line 174 in file src\Startup.s

NMI_Handler 00000004

Symbol: NMI_Handler
   Definitions
      At line 114 in file src\Startup.s
   Uses
      At line 48 in file src\Startup.s
      At line 115 in file src\Startup.s

POWER_Handler 0000001E

Symbol: POWER_Handler
   Definitions
      At line 178 in file src\Startup.s
   Uses
      At line 75 in file src\Startup.s
      At line 179 in file src\Startup.s

PendSV_Handler 0000000A

Symbol: PendSV_Handler
   Definitions
      At line 128 in file src\Startup.s
   Uses
      At line 60 in file src\Startup.s
      At line 129 in file src\Startup.s

Reset_Handler 00000000

Symbol: Reset_Handler
   Definitions
      At line 102 in file src\Startup.s
   Uses
      At line 47 in file src\Startup.s
      At line 103 in file src\Startup.s

SDIRQ_Handler 0000003A

Symbol: SDIRQ_Handler
   Definitions
      At line 251 in file src\Startup.s
   Uses
      At line 250 in file src\Startup.s
Comment: SDIRQ_Handler used once



ARM Macro Assembler    Page 4 Alphabetic symbol ordering
Relocatable symbols

SSP1_Handler 0000001A

Symbol: SSP1_Handler
   Definitions
      At line 168 in file src\Startup.s
   Uses
      At line 72 in file src\Startup.s
      At line 169 in file src\Startup.s

SSP2_Handler 0000002E

Symbol: SSP2_Handler
   Definitions
      At line 218 in file src\Startup.s
   Uses
      At line 84 in file src\Startup.s
      At line 219 in file src\Startup.s

SVC_Handler 00000008

Symbol: SVC_Handler
   Definitions
      At line 123 in file src\Startup.s
   Uses
      At line 57 in file src\Startup.s
      At line 124 in file src\Startup.s

SysTick_Handler 0000000C

Symbol: SysTick_Handler
   Definitions
      At line 133 in file src\Startup.s
   Uses
      At line 61 in file src\Startup.s
      At line 134 in file src\Startup.s

Timer1_Handler 00000022

Symbol: Timer1_Handler
   Definitions
      At line 188 in file src\Startup.s
   Uses
      At line 78 in file src\Startup.s
      At line 189 in file src\Startup.s

Timer2_Handler 00000024

Symbol: Timer2_Handler
   Definitions
      At line 193 in file src\Startup.s
   Uses
      At line 79 in file src\Startup.s
      At line 194 in file src\Startup.s

Timer3_Handler 00000026

Symbol: Timer3_Handler
   Definitions
      At line 198 in file src\Startup.s



ARM Macro Assembler    Page 5 Alphabetic symbol ordering
Relocatable symbols

   Uses
      At line 80 in file src\Startup.s
      At line 199 in file src\Startup.s

UART1_Handler 00000016

Symbol: UART1_Handler
   Definitions
      At line 158 in file src\Startup.s
   Uses
      At line 70 in file src\Startup.s
      At line 159 in file src\Startup.s

UART2_Handler 00000018

Symbol: UART2_Handler
   Definitions
      At line 163 in file src\Startup.s
   Uses
      At line 71 in file src\Startup.s
      At line 164 in file src\Startup.s

USB_Handler 00000012

Symbol: USB_Handler
   Definitions
      At line 148 in file src\Startup.s
   Uses
      At line 66 in file src\Startup.s
      At line 149 in file src\Startup.s

WWDG_Handler 00000020

Symbol: WWDG_Handler
   Definitions
      At line 183 in file src\Startup.s
   Uses
      At line 76 in file src\Startup.s
      At line 184 in file src\Startup.s

__user_initial_stackheap 0000003C

Symbol: __user_initial_stackheap
   Definitions
      At line 272 in file src\Startup.s
   Uses
      At line 271 in file src\Startup.s
Comment: __user_initial_stackheap used once
32 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
Absolute symbols

Heap_Size 00001000

Symbol: Heap_Size
   Definitions
      At line 29 in file src\Startup.s
   Uses
      At line 33 in file src\Startup.s
      At line 276 in file src\Startup.s

Stack_Size 00001000

Symbol: Stack_Size
   Definitions
      At line 18 in file src\Startup.s
   Uses
      At line 21 in file src\Startup.s
      At line 275 in file src\Startup.s

2 symbols



ARM Macro Assembler    Page 1 Alphabetic symbol ordering
External symbols

__main 00000000

Symbol: __main
   Definitions
      At line 104 in file src\Startup.s
   Uses
      At line 105 in file src\Startup.s
Comment: __main used once
__use_two_region_memory 00000000

Symbol: __use_two_region_memory
   Definitions
      At line 270 in file src\Startup.s
   Uses
      None
Comment: __use_two_region_memory unused
2 symbols
372 symbols in table
