TI中文支持网
TI专业的中文技术问题搜集分享网站

自制的DSP5509电路板调试程序出现错误,想请问一下这是什么原因

haofei li:

这是错误提示
C55xx: GEL Output: Gel StartUp Complete.
C55xx: GEL Output: C5509 Memory Map Initialization Complete.
C55xx: Trouble Reading Memory Block at 0x2024 on Page 1 of Length 0x1: (Error -1144 @ 0x2024) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2424 on Page 1 of Length 0x1: (Error -1144 @ 0x2424) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2025 on Page 1 of Length 0x1: (Error -1144 @ 0x2024) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2824 on Page 1 of Length 0x1: (Error -1144 @ 0x2824) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2425 on Page 1 of Length 0x1: (Error -1144 @ 0x2424) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2002 on Page 1 of Length 0x2: (Error -1144 @ 0x2002) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2026 on Page 1 of Length 0x1: (Error -1144 @ 0x2026) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2000 on Page 1 of Length 0x1: (Error -1144 @ 0x2000) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2825 on Page 1 of Length 0x1: (Error -1144 @ 0x2824) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2426 on Page 1 of Length 0x1: (Error -1144 @ 0x2426) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2004 on Page 1 of Length 0x2: (Error -1144 @ 0x2004) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2027 on Page 1 of Length 0x1: (Error -1144 @ 0x2026) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2d34 on Page 1 of Length 0x2: (Error -1144 @ 0x2D34) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2826 on Page 1 of Length 0x1: (Error -1144 @ 0x2826) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2dc9 on Page 1 of Length 0x1: (Error -1144 @ 0x2DC8) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2427 on Page 1 of Length 0x1: (Error -1144 @ 0x2426) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x492 on Page 1 of Length 0x1: (Error -1144 @ 0x492) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2006 on Page 1 of Length 0x2: (Error -1144 @ 0x2006) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2028 on Page 1 of Length 0x1: (Error -1144 @ 0x2028) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2827 on Page 1 of Length 0x1: (Error -1144 @ 0x2826) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2428 on Page 1 of Length 0x1: (Error -1144 @ 0x2428) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x493 on Page 1 of Length 0x1: (Error -1144 @ 0x492) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2008 on Page 1 of Length 0x2: (Error -1144 @ 0x2008) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x2828 on Page 1 of Length 0x1: (Error -1144 @ 0x2828) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x494 on Page 1 of Length 0x1: (Error -1144 @ 0x494) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x200a on Page 1 of Length 0x2: (Error -1144 @ 0x200A) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x495 on Page 1 of Length 0x1: (Error -1144 @ 0x494) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Trouble Reading Memory Block at 0x496 on Page 1 of Length 0x1: (Error -1144 @ 0x496) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)
C55xx: Error: (Error -1144 @ 0x400) Device core is hung. The debugger attempted to recover debug control, but was unsuccessful. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.628.3)

,

Nancy Wang:

请问之前是否能够成功调试?test connection是能通过的吗?添加的哪个GEL文件?请详细说明。

,

haofei li:

test connection成功,但是在工程文件没有看到gel文件

,

haofei li:

/*H***************************************************************************
* $Revision: /main/c55x_rel/c55xx_ccs240/2 $
* $Date: July 28, 200411:27:36 $
*
* TI Proprietary Information – Internal Data
* Copyright (c) 2004, Texas Instruments Incorporated
* All rights reserved
*****************************************************************************/
/* The Startup() function is executed when the GEL file is loaded. */

StartUp()
{GEL_MapOn();GEL_MapReset();/* Program Space */GEL_MapAdd(0x0000C0,0,0x00FF40,1,1); /* DARAM */GEL_MapAdd(0x010000,0,0×030000,1,1); /* SARAM */GEL_MapAdd(0x040000,0,0x3C0000,1,1); /* External CE0 */GEL_MapAdd(0x400000,0,0×400000,1,1); /* External CE1 */GEL_MapAdd(0x800000,0,0×400000,1,1); /* External CE2 *//* For MP/MC=1 (BOOTM[2:0] = 0)*/GEL_MapAdd(0xC00000,0,0×400000,1,1); /* External CE3 *//* For MP/MC=0 (BOOTM[2:0] != 0) *//*GEL_MapAdd(0xC00000,0,0x3F8000,1,1); /* External CE3 */GEL_MapAdd(0xFF0000,0,0×010000,1,0); /* PDROM*/

/* Data Space */GEL_MapAdd(0x000000,1,0×000050,1,1); /* MMRs */GEL_MapAdd(0x000060,1,0x007FA0,1,1); /* DARAM */GEL_MapAdd(0x008000,1,0×018000,1,1); /* SARAM */GEL_MapAdd(0x020000,1,0x1E0000,1,1); /* External CE0 */GEL_MapAdd(0x200000,1,0×200000,1,1); /* External CE1 */GEL_MapAdd(0x400000,1,0×200000,1,1); /* External CE2 *//* For MP/MC=1 (BOOTM[2:0] = 0) */GEL_MapAdd(0x600000,1,0×200000,1,1); /* External CE3 *//* For MP/MC=0 (BOOTM[2:0] != 0)*//*GEL_MapAdd(0x600000,1,0x1FC000,1,1); /* External CE3 *//*GEL_MapAdd(0x7FC000,1,0×004000,1,0); /* PDROM *//* IO Space */GEL_MapAdd(0x0001,2,0×0002,1,1); /* IDLE CONTROL AND STATUS */GEL_MapAdd(0x0400,2,0×0300,1,1); /* EMULATION */GEL_MapAdd(0x07FE,2,0×0002,1,1); /* System Control */GEL_MapAdd(0x0800,2,0×0014,1,1); /* EMIF */GEL_MapAdd(0x0C00,2,0x000C,1,1); /* DMA0 */GEL_MapAdd(0x0C20,2,0x000C,1,1); /* DMA1 */GEL_MapAdd(0x0C40,2,0x000C,1,1); /* DMA2 */GEL_MapAdd(0x0C60,2,0x000C,1,1); /* DMA3 */GEL_MapAdd(0x0C80,2,0x000C,1,1); /* DMA4 */GEL_MapAdd(0x0CA0,2,0x000C,1,1); /* DMA5 */GEL_MapAdd(0x0E00,2,0×0001,1,1); /* DMA GCR Reg */GEL_MapAdd(0x0E03,2,0×0001,1,1); /* DMA TCR Reg */GEL_MapAdd(0x1000,2,0×0004,1,1); /* TIMER0 */GEL_MapAdd(0x1800,2,0x000D,1,1); /* RTC */GEL_MapAdd(0x1C00,2,0×0001,1,1); /* CLKMD Reg */GEL_MapAdd(0x1E00,2,0×0001,1,1); /* USBPLL Reg */GEL_MapAdd(0x2400,2,0×0004,1,1); /* TIMER1 */GEL_MapAdd(0x2800,2,0x001F,1,1); /* MCBSP0 */GEL_MapAdd(0x2C00,2,0x001F,1,1); /* MCBSP1 */GEL_MapAdd(0x3000,2,0x001F,1,1); /* MCBSP2 */GEL_MapAdd(0x3400,2,0×0002,1,1); /* GPIO */GEL_MapAdd(0x3800,2,0×0005,1,1); /* DIE AND REV ID */GEL_MapAdd(0x3C00,2,0x000D,1,1); /* I2C */GEL_MapAdd(0x4000,2,0×0004,1,1); /* WATCHDOG TIMER */GEL_MapAdd(0x4400,2,0×0006,1,1); /* ADDRESS/GPIO/EHPI */GEL_MapAdd(0x4800,2,0x001B,1,1); /* MMC/SD1 */GEL_MapAdd(0x4C00,2,0x001B,1,1); /* MMC/SD2 */GEL_MapAdd(0x5800,2,0×1000,1,1); /* USB Regs and Buffer */GEL_MapAdd(0x6800,2,0×0004,1,1); /* ADC */GEL_MapAdd(0x6C00,2,0×0001,1,1); /* EBSR Reg */GEL_MapAdd(0x7000,2,0×0002,1,1); /* USB IDLE Regs */GEL_MapAdd(0x7400,2,0×0001,1,1); /* SROM Reg */
GEL_TextOut("Gel StartUp Complete.\n");
}

OnTargetConnect()
{C5509_Init();
}

menuitem "C5509_Configuration";
hotmenu CPU_Reset()
{GEL_Reset();
GEL_TextOut("CPU Reset Complete.\n");
}

/* Memory map based on MP/MC value=1 (BOOTM[2:0]=0).*/

hotmenu C5509_Init()
{GEL_Reset();TMCR_Reset();
GEL_TextOut("C5509 Memory Map Initialization Complete.\n");
}

/*Initialize the EMIF control registers to access*/
/*SBSRAM(CE0), FLASH(CE1), CPLD control & status regs(CE3) */

hotmenu C5509_USB_Enable()
{GEL_MemoryFill(0x7000,2,1,0×0004);GEL_TextOut("C5509 USB Module enabled.\n");
}

menuitem "C5509 EBSR Config";

hotmenu Data_EMIF_En()
{GEL_MemoryFill(0x6C00,2,1,0×0200);GEL_TextOut("C5509 Ext. Bus set to Data EMIF.\n");
}

hotmenu Full_EMIF_En()
{GEL_MemoryFill(0x6C00,2,1,0×0201);GEL_TextOut("C5509 Ext. Bus set to Full EMIF.\n");
}

hotmenu NonMuxed_EHPI_En()
{GEL_MemoryFill(0x6C00,2,1,0×0202);GEL_TextOut("C5509 Ext. Bus set to Non Muxed EHPI.\n");
}

hotmenu MuxEHPI_En()
{GEL_MemoryFill(0x6C00,2,1,0×0203);GEL_TextOut("C5509 Ext. Bus set to Muxed EHPI.\n");
}

menuitem "C5509 EMIF CE0 Config";

hotmenu CE0_Async16_En()
{GEL_MemoryFill(0x0803,2,1,0x1FFF);GEL_TextOut("C5509 CE0 set to 16-bit Async mode.\n");
}

menuitem "C5509 EMIF CE1 Config";

hotmenu CE1_Async16_En()
{GEL_MemoryFill(0x0806,2,1,0x1FFF);GEL_TextOut("C5509 CE1 set to 16-bit Async mode.\n");
}

menuitem "C5509 EMIF CE2 Config";

hotmenu CE2_Async16_En()
{GEL_MemoryFill(0x0809,2,1,0x1FFF);GEL_TextOut("C5509 CE2 set to 16-bit Async mode.\n");
}

menuitem "C5509 EMIF CE3 Config";

hotmenu CE3_Async16_En()
{GEL_MemoryFill(0x080C,2,1,0x1FFF);GEL_TextOut("C5509 CE3 set to 16-bit Async mode.\n");
}

/* Initialize Test Mode Control Registers(TMCR) */
/* This register selects modes for factory test */
/* and may be corrupted when device is powered*/
/* up with the emulator attached.This*/
/* function restores the the registers to their */
/* default values.There is not impact to*/
/* system functionality from these writes. */
TMCR_Reset()
{ #define TMCR_MGS3 0x07FE #define TMCR_MM0x07FF
*(short *)TMCR_MGS3@IO = 0x0510; *(short *)TMCR_MM@IO= 0x0000;
}

,

Nancy Wang:

ccs\ccs_base\emulation\gel\c5509.gel, GEL文件是在.ccxml文件中添加的。

,

haofei li:

Nancy Wang 说:ccs\ccs_base\emulation\gel\c5509.gel, GEL文件是在.ccxml文件中添加的。

,

haofei li:

需要修改cmd文件吗还是修改gel文件

,

Nancy Wang:

之前有debug成功过吗?请参考以下链接给出的引起 device hung的原因:
software-dl.ti.com/…/ccsv7_debugging_jtag_connectivity_issues.html

,

Nancy Wang:

这两个文件不需要修改的。从打印信息看memory已经配置过了,应该不是配置的原因,也可以再次通过手动ccs->script再做一次配置,将TCLK调低试一下。

,

haofei li:

使用codec回声代码可以调试成功,但是当我在代码中加入相关的DMA操作后,出现trouble reading memory block at 0x….的问题

,

haofei li:

TCLK拉低了,还是出现错误

,

Nancy Wang:

查一下报错中提示的地址内存分配有没有问题,结合map文件看一下。

,

haofei li:

好的,我试试看,有相关的map与地址内存分配参考的文档吗

,

haofei li:

我修改了一下cmd文件问题解决了

赞(0)
未经允许不得转载:TI中文支持网 » 自制的DSP5509电路板调试程序出现错误,想请问一下这是什么原因
分享到: 更多 (0)