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

📄 c2xx_bpx.lst

📁 DSP F2407 烧写软件
💻 LST
📖 第 1 页 / 共 2 页
字号:
DSPA -G -S -l -v2xx c2xx_bpx.asm 

TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:11 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_bpx.asm                                                         PAGE    1

       1            ;**************************************************************************
       2            ; FILENAME: c2xxprog.asm - Generic name
       3            ;           c2xx_bpx.asm  
       4            ;
       5            ; DESCRIPTION:
       6            ;   Flash Programmer control module with flash algorithms -P
       7            ;   called by the JTAG loader, PRG2xxw.exe
       8            ;   Uses the on-chip B0/1 RAM for algorithms and flash data buffer
       9            ;
      10            ; GLOBALS:
      11            ;
      12            ;   unsigned * PRG_bufaddr      Address of buffer for flash/program data
      13            ;   unsigned   PRG_bufsize      Size of program data buffer
      14            ;   unsigned   PRG_devsize      Size of programmable device
      15            ;   unsigned * PRG_paddr        First programming address
      16            ;   unsigned   PRG_page         Programming page
      17            ;   unsigned   PRG_length       Length of programming data
      18            ;   unsigned   PRG_status       Status of programming functions
      19            ;
      20            ; PUBLIC FUNCTIONS:
      21            ;   PRG_init                    Initialize system for programming
      22            ;   PRG_program                 Program a block
      23            ;   PRG_erase                   Erase a programmable device
      24            ;   PRG_verify                  Verify a block
      25            ;
      26            ; PRIVIATE FUNCTIONS:
      27            ;   None
      28            ;
      29            ; USAGE/LIMITATIONS
      30            ;   The global and public function symbol values must be available in the
      31            ;   COFF file for the loader to work properly. The functions are not
      32            ;   intended to be called by another program.
      33            ;
      34            ; NOTES:
      35            ;   The program needs three memory sections to operate:
      36            ;   Actual location of these sections in the memory is defined in the
      37            ;   linker command file - *.cmd
      38            ;
      39            ;       PRG_text    Executable section for this program
      40            ;       PRG_parms   Variable section for this program
      41            ;       PRG_data    Data buffer used to hold programming data
      42            ;
      43            ;   The size and location of each section  is user defined.  The
      44            ;   loader program will read the value of PRG_bufaddr and PRG_bufsize to
      45            ;   determine the location and size of the PRG_data section.
      46            ;
      47            ; JTAG loader command file format
      48            ;   PRG2xxw  -[options] c2xxprog.out       Flashcode.out
      49            ;  <JTAG loader)      <Flash algorithm>  <COFF file to be flashed>
      50            ;
      51            ;   Source : TI Tools group, Houston
      52            ;
      53            ;   Modification History:
      54            ;   ---------------------
TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:11 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_bpx.asm                                                         PAGE    2

      55            ;   -Modified for F2xx devices:                                     12/24/96
      56            ;   -Added appropriate init code for PLL & WD disable               01/15/97
      57            ;   -Added Conditional assembly for PLL Mult factor selection       02/26/97
      58            ;   -Modified for: Compatibility with -s option and new algorithms  09/10/97
      59            ;   -Modified to suit 24x-Lite -                                    03/19/98
      60            ;   -Modified to interface to the API algos                         05/25/01
      61            
      62            ;*******************************************************************************
      63            ; INCLUDE FILES
      64            ;*******************************************************************************
      65            
      66            
      67                    .INCLUDE        ..\INCLUDE\VAR.h        ;GET VARIABLES AND CONSTANTS.
      68            
      69            ;*******************************************************************************
      70            ; PUBLIC DECLARATIONS
      71            ;*******************************************************************************
      72                    .global PRG_init, PRG_program, PRG_erase, PRG_verify, PRG_stop
      73                    .global PRG_bufaddr, PRG_bufsize, PRG_devsize, PRG_paddr, PRG_page
      74                    .global PRG_length, PRG_status,PARMS
      75                    .global PROTECT,SEG_ST,SEG_END
      76            
      77            ;*******************************************************************************
      78            ; PRIVATE DECLARATIONS
      79            ;*******************************************************************************
      80                                   
      81      0080  BUFFER_SIZE .set    128         ;Size of program buffer size
      82                                            ;Can be increased based available
      83                                            ;memory
      84            
      85      ffff  DEVICE_SIZE .set    0ffffh      ;Size of device to be programmed.
      86                                            ;Default is maximum address range for
      87                                            ;the F2xx
      88            
      89            ;*******************************************************************************
      90            ; Define the PRG_parm section
      91            ;*******************************************************************************
      92 0000           .sect   "PRG_parm"          ;Actual location in memory defined is
      93 0000       PARMS:                          ;linker command file
      94 0000 0000+ PRG_bufaddr .word   PrgBuffer   ;Address of buffer for program
      95 0001 0080  PRG_bufsize .word   BUFFER_SIZE ;Tells host of buffer size
      96 0002 ffff  PRG_devsize .word   DEVICE_SIZE ;Tells host of device size
      97            
      98            *                               ;The following parameters will be redefined by
      99            *                               ;PRG2xxw based on the flashcode.out
     100                                            ;Algorithm Array variables
     101 0003 0000  PRG_paddr   .word   0           ;First address to program
     102 0004 0000  PRG_page    .word   0           ;Page to program
     103 0005 0000  PRG_length  .word   0           ;Length of block to program
     104 0006 0000  PRG_status  .word   0           ;Status of programming functions
     105 0007 0000  Temp        .word   0           ;Temp location for verify
     106 0008 ff00  PROTECT     .word   0FF00h      ;Enable all 8 segments
     107            
     108            
TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:11 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_bpx.asm                                                         PAGE    3

     109            ;*******************************************************************************
     110            ; Define the PRG_data section
     111            ;*******************************************************************************
     112 0000           .sect   "PRG_data"          ;Flash code data buffer 
     113 0000       PrgBuffer   .space  BUFFER_SIZE*16  ;Initializes buffer for program data
     114 0000           .sect   "ary_var"           ; Initialize buffer to 0x0000
     115 0000                   .space  16*16
     116            ;
     117            ;*******************************************************************************
     118            ; Define the PRG_text section
     119            ;*******************************************************************************
     120 0000           .sect   "PRG_text"          ; Control and algorithm module
     121            
     122            ;*******************************************************************************
     123            ; Name: PRG_init
     124            ; 
     125            ; Description
     126            ;   Initialize the F2xx device for programming
     127            ; 
     128            ; Inputs
     129            ;   None
     130            ; Outputs
     131            ;   int PRG_status              Pass =0; Fail = 1;
     132            ;
     133            ; Notes: Can be used to include device specific initialization before executing
     134            ;        Flash algorithms in PRG_erase,PRG_program, PRG_verify and PRG_stop
     135            ;
     136            ;*******************************************************************************
     137             
     138 0000 bce0  PRG_init:       LDP     #0E0h
     139 0001 ae18                  SPLK    #PLL_RATIO_CONST,7018h
         0002 0000  
     140 0003 ae19                  SPLK    #000bh,7019h
         0004 000b  
     141 0005 ae29                  SPLK    #6fh,7029h
         0006 006f  
     142                             
     143 0007 bc00+                 ldp     #PARMS          ; Defines data page
     144 0008 ae06+                 splk    #0,PRG_status
         0009 0000  

⌨️ 快捷键说明

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