还是没解决自举问题,hex55.exe的版本和GEL文件我都查看了没问题。难道烧写时的程序CMD像2000系列要要做相应的修改。
这是下载程序的CMD文件:
-w
-stack 500
-sysstack 500
-l rts55x.lib
MEMORY
[
PAGE 0:
MMR : origin = 0000000h, length = 00000c0h
SPRAM : origin = 00000c0h, length = 0000040h
VECS : origin = 0000100h, length = 0000100h
DARAM0 : origin = 0000200h, length = 0003E00h
DARAM1 : origin = 0004000h, length = 0004000h
DARAM2 : origin = 0008000h, length = 0004000h
DARAM3 : origin = 000c000h, length = 0004000h
SARAM0 : origin = 0010000h, length = 0004000h
SARAM1 : origin = 0014000h, length = 0005000h
SARAM2 : origin = 0019000h, length = 0003000h
]
SECTIONS
[
.vectors : [] > VECS PAGE 0 /* interrupt vector table */
.cinit : [] > SARAM0 PAGE 0
.text : [] > SARAM1 PAGE 0
isrs : [] > SARAM2 PAGE 0
.stack : [] > DARAM0 PAGE 0
.sysstack: [] > DARAM0 PAGE 0
.sysmem : [] > DARAM0 PAGE 0
.data : [] > DARAM1 PAGE 0
.bss : [] > DARAM1 PAGE 0
.const : [] > DARAM1 PAGE 0
.cio : [] > DARAM2 PAGE 0
.csldata: [] > DARAM0 PAGE 0
]
转换成BIN后生成的map文件如下:
NPUT FILE NAME:
OUTPUT FORMAT: Binary
PHYSICAL MEMORY PARAMETERS
Default data width : 8
Default memory width : 8
Default output width : 8
BOOT LOADER PARAMETERS
Table Type: SERIAL PORT (McBSP 8 bit Mode)
Entry Point: 0x00014000
OUTPUT TRANSLATION MAP
--------------------------------------------------------------------------------
00000000..00ffffff Page=0 Memory Width=8 ROM Width=8
--------------------------------------------------------------------------------
OUTPUT FILES: bootloader.bin [b0..b7]
CONTENTS: 00000000..000006b3 BOOT TABLE
.cinit : dest=00010000 size=000000de width=00000001
.text : dest=00014000 size=000005b1 width=00000001
--------------------------------------------------------------------------------
00000000..00ffffff Page=1 Memory Width=8 ROM Width=8 "*DEFAULT PAGE 1*"
--------------------------------------------------------------------------------
NO CONTENTS
从这两个文件看.cinit段好像也没问题啊。
还是没解决自举问题,hex55.exe的版本和GEL文件我都查看了没问题。难道烧写时的程序CMD像2000系列要要做相应的修改。
这是下载程序的CMD文件:
-w
-stack 500
-sysstack 500
-l rts55x.lib
MEMORY
[
PAGE 0:
MMR : origin = 0000000h, length = 00000c0h
SPRAM : origin = 00000c0h, length = 0000040h
VECS : origin = 0000100h, length = 0000100h
DARAM0 : origin = 0000200h, length = 0003E00h
DARAM1 : origin = 0004000h, length = 0004000h
DARAM2 : origin = 0008000h, length = 0004000h
DARAM3 : origin = 000c000h, length = 0004000h
SARAM0 : origin = 0010000h, length = 0004000h
SARAM1 : origin = 0014000h, length = 0005000h
SARAM2 : origin = 0019000h, length = 0003000h
]
SECTIONS
[
.vectors : [] > VECS PAGE 0 /* interrupt vector table */
.cinit : [] > SARAM0 PAGE 0
.text : [] > SARAM1 PAGE 0
isrs : [] > SARAM2 PAGE 0
.stack : [] > DARAM0 PAGE 0
.sysstack: [] > DARAM0 PAGE 0
.sysmem : [] > DARAM0 PAGE 0
.data : [] > DARAM1 PAGE 0
.bss : [] > DARAM1 PAGE 0
.const : [] > DARAM1 PAGE 0
.cio : [] > DARAM2 PAGE 0
.csldata: [] > DARAM0 PAGE 0
]
转换成BIN后生成的map文件如下:
NPUT FILE NAME:
OUTPUT FORMAT: Binary
PHYSICAL MEMORY PARAMETERS
Default data width : 8
Default memory width : 8
Default output width : 8
BOOT LOADER PARAMETERS
Table Type: SERIAL PORT (McBSP 8 bit Mode)
Entry Point: 0x00014000
OUTPUT TRANSLATION MAP
--------------------------------------------------------------------------------
00000000..00ffffff Page=0 Memory Width=8 ROM Width=8
--------------------------------------------------------------------------------
OUTPUT FILES: bootloader.bin [b0..b7]
CONTENTS: 00000000..000006b3 BOOT TABLE
.cinit : dest=00010000 size=000000de width=00000001
.text : dest=00014000 size=000005b1 width=00000001
--------------------------------------------------------------------------------
00000000..00ffffff Page=1 Memory Width=8 ROM Width=8 "*DEFAULT PAGE 1*"
--------------------------------------------------------------------------------
NO CONTENTS
从这两个文件看.cinit段好像也没问题啊。
举报