首先说说下这个工程,这个工程师从DSP读出的.out反汇编出来的一个工程。
整个工程有两个文件,一个CMD,一个ASM文件。奇怪的是只要我在汇编中增加一行代码就无法下载
Error connecting to the target:
(Error -233 @ 0x0)
The JTAG IR and DR scan-paths cannot circulate bits, they may be broken.
An attempt to scan the JTAG scan-path has failed.
The target's JTAG scan-path appears to be broken
with a stuck-at-ones or stuck-at-zero fault.
(Emulation package 6.0.83.1)
ASM文件有三大块:
.sect ".ram"
.c28_amode
L008000: MOVL *SP++,XAR1 ;008000 B2BD
MOVL *SP++,XAR2 ;008001 AABD
MOVL *SP++,XAR3 ;008002 A2BD
ADDB SP,#0x8 ;008003 FE08
MOVW DP,#0x3FF ;008004 761F 03FF
SETC SXM ;008006 3B01
………………….
sect ".rom"
L30139E: .WORD 0x0000,0x0001,0x0001,0x0002,0x0002,0x0003,0x0003,0x0004
……..
中间是汇编代码省略
L333F3A: .WORD 0xFFE9,0xEF52,0x0000,0x3516,0x0033,0x0000,0x0001,0x0000
L333F42: .WORD 0x0000,0x34EE,0x0033,0x0000,0x0005,0x0000,0x0000,0x34FE
L333F4A: .WORD 0x0033,0x0000,0x0014,0x0000,0x0000,0x352A,0x0033,0x0000
L333F52: .WORD 0x0064,0x0000,0xFFFE,0xB0F4,0x0000,0x3B7C,0x0033,0xFFFE
L333F5A: .WORD 0xB0F6,0x0000,0x3B7C,0x0033,0xFFFE,0xB0F8,0x0000,0x0000
L333F62: .WORD 0x0000,0xFFFE,0xB0FA,0x0000,0x0000,0x0000,0xFFFE,0xBB86
L333F6A: .WORD 0x0000,0x0000,0x0000,0xFFFF,0xFFC1,0x0000,0x0000,0x0000
L333F72: .WORD 0x0000,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF
L333F7A: .WORD 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF
中间的全部为FFFF
L33FF72: .WORD 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x0033,0x00C4
L33FF7A: .WORD 0x0153,0x01E2,0x0271,0x0300,0x038F,0x041E
;=====================================================================================================
.sect ".csm"
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0, 0, 0
.word 0, 0, 0, 0, 0, 0
;=====================================================================================================
.global BEGIN
BEGIN:
lb Boot_To_Flash
;=====================================================================================================
.word 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF
CMD文件如下;
MEMORY
{
RAML0 : origin = 0x008000, length = 0x004000 /* on-chip RAM block L0 */
FLASH_0 : origin = 0x300000, length = 0x00139E, fill = 0xFFFF /* on-chip FLASH */
FLASH_1 : origin = 0x30139E, length = 0x03EBE2, fill = 0xFFFF /* on-chip FLASH */
CSM : origin = 0x33FF80, length = 0x000080, fill = 0xFFFF /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */
}
SECTIONS
{
.ram : LOAD = FLASH_0,
RUN = RAML0,
LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart)
.rom : LOAD = FLASH_1
.csm : LOAD = CSM
}
jianxing ding:
有没有哪位大神帮忙下啊,TI的东西不错,但是就是没有直接的技术支持