?? kernel.lst
字號:
C:\TOOLS\CC411\C2000\CGTOOLS\BIN\DSPA.EXE -S -l kernel.ASM -v2xx
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00 Wed Apr 17 14:46:06 2002
Copyright (c) 1987-1999 Texas Instruments Incorporated
kernel.ASM PAGE 1
1 ;*****************************************************************************
2 ; File Name: Kernel.ASM Build 4.
3 ;
4 ; Project: F24XX Serial Boot Loader
5 ; Originator: DSP Digital Control Systems Group, Houston (Texas Instruments)
6 ;
7 ; Target Sys: F240x.
8 ;*****************************************************************************
9 .include ..\include\svar.h
10 .include ..\include\x24x.h
11
12
13 fe00 ALGO_START .set 0fe00h
14 .def ALGO_START
15
16 ;Miscellaneous
17 0328 BUF_SADDR .set 0328h ;Start address for Data buffer
18 0009 VBR_MAX .set 09h ;# times valid char needs to be received
19 0003 CRC_MAX .set 03h ;# retries at each PLL setting before giving up.
20 0200 B0_SADDR .set 00200h ;Block B0 start address
21
22 ;-----------------------------------------------------------------------------
23 ; M A C R O - Definitions
24 ;-----------------------------------------------------------------------------
25 SBIT0 .macro DMA, MASK ;Clear bit Macro
26 LACC DMA
27 AND #(0FFFFh-MASK)
28 SACL DMA
29 .endm
30
31 SBIT1 .macro DMA, MASK ;Set bit Macro
32 LACC DMA
33 OR #MASK
34 SACL DMA
35 .endm
36
37
38 KICK_DOG .macro ;Watchdog reset macro
39 LDP #00E0h
40 SPLK #05555h, WDKEY
41 SPLK #0AAAAh, WDKEY
42 LDP #0h
43 .endm
44
45
46
47 POINT_0 .macro
48 LDP #00h
49 .endm
50
51 POINT_B0 .macro
52 LDP #04h
53 .endm
54
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00 Wed Apr 17 14:46:06 2002
Copyright (c) 1987-1999 Texas Instruments Incorporated
kernel.ASM PAGE 2
55 POINT_B1 .macro
56 LDP #06h
57 .endm
58
59 POINT_PF1 .macro
60 LDP #0E0h
61 .endm
62
63 ;==============================================================================
64 ; This is the entry point and will be at 0x8000.
65 ;==============================================================================
66 0000 .text
67 0000 bce0 START: LDP #WDCR>>7
68 0001 ae29 SPLK #006Fh,WDCR ;Disable WD
0002 006f
69
70 .COPY "..\unlock\unlock.asm" ;CLEAR ROUTINE
C 1 .include ..\include\password.h
C 2
C 3 0003 .text
C 4
C 5
C 6 ;==============================================================================
C 7 ; Unlock flash procedure here
C 8 ;==============================================================================
C 9
C 10 0003 bc00 LDP #0h ; Set DP=0
C 11 0004 a560 BLPD #0040h,60h ; update high word
0005 0040
C 12 0006 a560 BLPD #0041h,60h ; third word
0007 0041
C 13 0008 a560 BLPD #0042h,60h ; second word
0009 0042
C 14 000a a560 BLPD #0043h,60h ; low word
000b 0043
C 15
C 16 000c bcef LDP #0EFh ; page E1h / USER VALUES HERE!
C 17
C 18 000d ae70 SPLK #PASSWD1, 77F0h ; high word
000e 0040
C 19 000f ae71 SPLK #PASSWD2, 77F1h ; third word
0010 0041
C 20 0011 ae72 SPLK #PASSWD3, 77F2h ; second word
0012 0042
C 21 0013 ae73 SPLK #PASSWD4, 77F3h ; low word
0014 0043
71
72
73 ;==============================================================================
74 ;Init Kernel
75 ;==============================================================================
76 0015 FLSH_INIT POINT_B1
1 0015 bc06 LDP #06h
77 0016 ae1f- SPLK #0,ERROR_FLAG
TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 7.00 Wed Apr 17 14:46:06 2002
Copyright (c) 1987-1999 Texas Instruments Incorporated
kernel.ASM PAGE 3
0017 0000
78 ;==============================================================================
79 0018 101f- LACC ERROR_FLAG ;Send Zero error to host to indicate to
80 0019 7a80 CALL SEND_CHAR ;host kernel succesfully initialized.
001a 0070'
81
82
83 ;==============================================================================
84 ;Load & Execute CLEAR
85 001b 7a80 M00 CALL XFER_SCI_2_PROG
001c 0042'
86
87
88
89
90 001d 7a80 CALL RUN_ALGO
001e 0074'
91 ;==============================================================================
92 ;Load & Execute ERASE
93 001f 7a80 M01 CALL XFER_SCI_2_PROG
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -