📄 board_cstartup_iar.lst
字号:
###############################################################################
# #
# IAR Assembler V5.20.0.50892 /W32 for ARM 25/May/2009 02:53:22 #
# Copyright 1999-2008 IAR Systems AB. #
# #
# Source file = F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91lib\boards\at91sam7x-ek\board_cstartup_iar.s#
# List file = F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at91sam7x256_flash\List\board_cstartup_iar.lst#
# Object file = F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at91sam7x256_flash\Obj\board_cstartup_iar.o#
# Command line = F:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91lib\boards\at91sam7x-ek\board_cstartup_iar.s #
# -OF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at91sam7x256_flash\Obj\ #
# -s+ -M<> -w+ -r -Dat91sam7x256 -Dflash #
# -DTRACE_LEVEL=4 #
# -LF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\at91sam7x256_flash\List\ #
# -t8 --cpu ARM7TDMI --fpu None #
# -IC:\Program Files (x86)\IAR Systems\Embedded Workbench 5.0 Evaluation\ARM\INC\ #
# -IF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\..\..\..\at91lib\ #
# -IF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\..\..\..\at91lib\peripherals\ #
# -IF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\..\..\..\at91lib\memories\sdmmc\ #
# -IF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\..\..\..\at91lib\boards\at91sam7x-ek\ #
# -IF:\Diplomovka\IARprojects\Diplomovka\25.4.2009\getting-started-project-at91sam7x-ek-iar\getting-started-project-at91sam7x-ek\at91sam7x-ek\getting-started-project\ewp\..\..\..\external_libs/crc\ #
# #
###############################################################################
1 /* --------------------------------------------
--------------------------------
2 * ATMEL Microcontroller Software
Support
3 * --------------------------------------------
--------------------------------
4 * Copyright (c) 2008, Atmel Corporation
5 *
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary
forms, with or without
9 * modification, are permitted provided that
the following conditions are met:
10 *
11 * - Redistributions of source code must retain
the above copyright notice,
12 * this list of conditions and the disclaimer
below.
13 *
14 * Atmel's name may not be used to endorse or
promote products derived from
15 * this software without specific prior written
permission.
16 *
17 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY
ATMEL "AS IS" AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NON-INFRINGEMENT ARE
20 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE
LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA,
23 * OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF
24 * LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE,
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
27 * --------------------------------------------
--------------------------------
28 */
29
30 /*
31 IAR startup file for AT91SAM7X microcontro
llers.
32 */
33
34 MODULE ?cstartup
35
36 ;; Forward declaration of sections.
37 SECTION IRQ_STACK:DATA:NOROOT(2)
38 SECTION CSTACK:DATA:NOROOT(3)
39
40 //---------------------------------------------
---------------------------------
41 // Headers
42 //---------------------------------------------
---------------------------------
43
44 #define __ASSEMBLY__
45 #include "board.h"
46
47 //---------------------------------------------
---------------------------------
48 // Definitions
49 //---------------------------------------------
---------------------------------
50
51 #define ARM_MODE_ABT 0x17
52 #define ARM_MODE_FIQ 0x11
53 #define ARM_MODE_IRQ 0x12
54 #define ARM_MODE_SVC 0x13
55 #define ARM_MODE_SYS 0x1F
56
57 #define I_BIT 0x80
58 #define F_BIT 0x40
59
60 //---------------------------------------------
---------------------------------
61 // Startup routine
62 //---------------------------------------------
---------------------------------
63
64 /*
65 Exception vectors
66 */
67 SECTION .vectors:CODE:NOROOT(2)
68
69 PUBLIC resetVector
70 PUBLIC irqHandler
71
72 EXTERN Undefined_Handler
73 EXTERN SWI_Handler
74 EXTERN Prefetch_Handler
75 EXTERN Abort_Handler
76 EXTERN FIQ_Handler
77
78 ARM
79
80 __iar_init$$done: ; The interrupt
vector is not needed
81 ; until after
copy initialization is done
82
83 resetVector:
84 ; All default exception handlers
(except reset) are
85 ; defined as weak symbol definitions.
86 ; If a handler is defined by the
application it will take precedence.
87 00000000 74F09FE5 LDR pc, =resetHandler ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -