⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.lst

📁 非常全的nrf2401设计资料
💻 LST
字号:
C51 COMPILER V7.50   MAIN                                                                  03/05/2008 17:32:45 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\build\main.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE main.c OMF2 ROM(COMPACT) OPTIMIZE(9,SPEED) BROWSE MODC2 MDU_R515 DEBUG PRIN
                    -T(.\list\main.lst) OBJECT(.\build\main.obj)

line level    source

   1          /* Copyright (c) 2007 Nordic Semiconductor. All Rights Reserved.
   2           *
   3           * The information contained herein is property of Nordic Semiconductor ASA.
   4           * Terms and conditions of usage are described in detail in NORDIC
   5           * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
   6           *
   7           * Licensees are granted free, non-transferable use of the information. NO
   8           * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
   9           * the file.
  10           *
  11           * $LastChangedRevision: 2290 $
  12           */
  13          
  14          /** @file
  15           * This file copies the bootloader code to XDATA RAM and starts the bootlader command parser
  16           *
  17           * @author Ole Saether
  18           *
  19           */
  20          #include <srom.h>
  21          #include <stdint.h>
  22          
  23          #include "bootloader.h"
  24          #include "config.h"
  25          
  26          /*
  27          #if __C51__ < 810
  28          #error "This project requires Keil C51 v8.10 or higher"
  29          #endif
  30          */
  31          
  32          //
  33          // For a description of the Special ROM (SROM) functionality in Keil please
  34          // search for SROM on the Keil web site and read the two articles
  35          // "C51: IN-SYSTEM FLASH PROGRAMMING (PART 1)" and "C51: IN-SYSTEM FLASH
  36          // PROGRAMMING (PART 2)"
  37          #ifdef USE_SROM
  38          SROM_MC (CODE_BOOTLOADER)
  39          SROM_MC (CONST_BOOTLOADER)
  40          #endif
  41          
  42          void main(void)
  43          {
  44   1          uint16_t i;
  45   1          
  46   1          //
  47   1          // copy bootloader functions from FLASH to RAM:
  48   1          uint8_t code *psrc = (uint8_t code*)SROM_MC_SRC(CODE_BOOTLOADER);
  49   1          uint8_t xdata *pdest = (uint8_t xdata*)SROM_MC_TRG(CODE_BOOTLOADER);
  50   1          for(i=0;i<SROM_MC_LEN(CODE_BOOTLOADER);i++)  
  51   1          {
  52   2              *pdest++ = *psrc++;
  53   2          }
  54   1          //
C51 COMPILER V7.50   MAIN                                                                  03/05/2008 17:32:45 PAGE 2   

  55   1          // Copy bootloader constants from FLASH to RAM:
  56   1          psrc = (uint8_t code*)SROM_MC_SRC(CONST_BOOTLOADER);
  57   1          pdest = (uint8_t xdata*)SROM_MC_TRG(CONST_BOOTLOADER);
  58   1          for(i=0;i<SROM_MC_LEN(CONST_BOOTLOADER);i++)
  59   1          {
  60   2              *pdest++ = *psrc++;
  61   2          }
  62   1          bootloader(); // Will never return
  63   1      }


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =    138    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       6
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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