main.lst

来自「IAR5.2下 AT91SAM9260 ARM 对 MCP2515 控制源化码」· LST 代码 · 共 159 行

LST
159
字号
###############################################################################
#                                                                             #
#                                                       08/Mar/2009  18:14:45 #
# IAR ANSI C/C++ Compiler V5.20.2.21007/W32 EVALUATION for ARM                #
# Copyright 1999-2008 IAR Systems AB.                                         #
#                                                                             #
#    Cpu mode     =  arm                                                      #
#    Endian       =  little                                                   #
#    Source file  =  E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\main.c    #
#    Command line =  E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\main.c    #
#                    -D at91sam9260 -D sdram -lC                              #
#                    E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\at91s #
#                    am9260_sdram\List\ --remarks --diag_suppress             #
#                    Pe826,Pe1375 -o E:\IAR\at91sam9260-ek\basic-twi-eeprom-p #
#                    roject\ewp\at91sam9260_sdram\Obj\ --no_cse --no_unroll   #
#                    --no_inline --no_code_motion --no_tbaa --no_clustering   #
#                    --no_scheduling --debug --endian=little                  #
#                    --cpu=ARM926EJ-S -e --fpu=None --dlib_config             #
#                    "D:\Program Files\IAR Systems\Embedded Workbench 5.0     #
#                    Evaluation\ARM\INC\DLib_Config_Full.h" -I                #
#                    E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\..\.. #
#                    \..\at91lib\ -I E:\IAR\at91sam9260-ek\basic-twi-eeprom-p #
#                    roject\ewp\..\..\..\at91lib\boards\at91sam9260-ek\ -I    #
#                    E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\..\.. #
#                    \..\at91lib\peripherals\ -I                              #
#                    E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\..\.. #
#                    \..\at91lib\components\ -I E:\IAR\at91sam9260-ek\basic-t #
#                    wi-eeprom-project\ewp\..\..\..\at91lib\usb\ -I           #
#                    "D:\Program Files\IAR Systems\Embedded Workbench 5.0     #
#                    Evaluation\ARM\INC\" --interwork --cpu_mode arm -On      #
#    List file    =  E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\at91s #
#                    am9260_sdram\List\main.lst                               #
#    Object file  =  E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\ewp\at91s #
#                    am9260_sdram\Obj\main.o                                  #
#                                                                             #
#                                                                             #
###############################################################################

E:\IAR\at91sam9260-ek\basic-twi-eeprom-project\main.c
      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          //*         Headers
     32          //*==============================================================================
     33          
     34          #include "eeprom.h"
     35          #include "MCP2515.h"
     36          #include <board.h>
     37          #include <dbgu/dbgu.h>
     38          
     39          #include <stdio.h>
     40          #include <string.h>
     41          

   \                                 In section .text, align 4, keep-with-next
     42          int main()
     43          {
   \                     main:
   \   00000000   10402DE9           PUSH     {R4,LR}
     44              char flag = 1;
   \   00000004   0100A0E3           MOV      R0,#+1
   \   00000008   0040B0E1           MOVS     R4,R0
     45              
     46              // 配制调试串口
     47              DBGU_Configure(DBGU_STANDARD, 115200, BOARD_MCK);
   \   0000000C   5E26A0E3           MOV      R2,#+98566144
   \   00000010   BA2A82E3           ORR      R2,R2,#0xBA000
   \   00000014   401BA0E3           MOV      R1,#+65536
   \   00000018   C21C81E3           ORR      R1,R1,#0xC200
   \   0000001C   800EA0E3           MOV      R0,#+2048
   \   00000020   ........           BL       DBGU_Configure
     48              
     49              DBGU_Printk("-- Basic TWI EEPROM Project --\r\n");
   \   00000024   1C009FE5           LDR      R0,??main_0      ;; `?<Constant "-- Basic TWI EEPROM P...">`
   \   00000028   ........           BL       DBGU_Printk
     50              
     51              AT24C08_Test();
   \   0000002C   ........           BL       AT24C08_Test
     52              Test_MCP2515();
   \   00000030   ........           BL       Test_MCP2515
     53              
     54              while(flag)         // 为什么用 while(1) 会警告 ???
   \                     ??main_1:
   \   00000034   FF4014E2           ANDS     R4,R4,#0xFF      ;; Zero extend
   \   00000038   000054E3           CMP      R4,#+0
   \   0000003C   FCFFFF1A           BNE      ??main_1
     55              {
     56              
     57              }
     58              return 0;
   \   00000040   0000A0E3           MOV      R0,#+0
   \   00000044   1080BDE8           POP      {R4,PC}          ;; return
   \                     ??main_0:
   \   00000048   ........           DC32     `?<Constant "-- Basic TWI EEPROM P...">`
     59          }

   \                                 In section .rodata, align 4
   \                     `?<Constant "-- Basic TWI EEPROM P...">`:
   \   00000000   2D2D20426173       DC8 "-- Basic TWI EEPROM Project --\015\012"
   \              696320545749
   \              20454550524F
   \              4D2050726F6A
   \              656374202D2D
   \              0D0A00      
   \   00000021   000000             DC8 0, 0, 0
     60          
     61          

   Maximum stack usage in bytes:

     Function .cstack
     -------- -------
     main          0


   Section sizes:

     Function/Label                         Bytes
     --------------                         -----
     main                                     76
     ?<Constant "-- Basic TWI EEPROM P...">   36

 
 36 bytes in section .rodata
 76 bytes in section .text
 
 76 bytes of CODE  memory
 36 bytes of CONST memory

Errors: none
Warnings: none

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?