This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1227 接JLINK仿真器 JTAG接口无法连接问题

Other Parts Discussed in Thread: TMS570LS1227, UNIFLASH

求教各位高手

        我用的JLINK连接TMS570LS1227的JTAG接口,用了好几天烧写程序仿真都没有问题!

        今天突然连不上了,在Jflash中发送“connect”命令后,出现如下错误提示:

Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: J-Link V9 compiled Oct 25 2018 11:46:07
- Device "TMS570LS1227" selected.
- Executing InitTarget()
- TotalIRLen = 6, IRPrint = 0x01
- J-Link script: ICEPick found, enabling DAP of CPU core.
- TotalIRLen = 10, IRPrint = 0x0011
- JTAG chain detection found 2 devices:
- #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
- #1 Id: 0x3B95502F, IRLen: 06, TI ICEPick
- Identified core does not match configuration. (Found: None, Configured: Cortex-R4)
- Executing InitTarget()
- TotalIRLen = 6, IRPrint = 0x01
- J-Link script: ICEPick found, enabling DAP of CPU core.
- TotalIRLen = 10, IRPrint = 0x0011
- JTAG chain detection found 2 devices:
- #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
- #1 Id: 0x3B95502F, IRLen: 06, TI ICEPick
- ERROR: Could not power up debug port: Control/Status register reads 00000F02
- Target interface speed: 1000 kHz (Auto)
- VTarget = 3.291V
- Executing InitTarget()
- TotalIRLen = 6, IRPrint = 0x01
- J-Link script: ICEPick found, enabling DAP of CPU core.
- TotalIRLen = 10, IRPrint = 0x0011
- JTAG chain detection found 2 devices:
- #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
- #1 Id: 0x3B95502F, IRLen: 06, TI ICEPick
- Identified core does not match configuration. (Found: None, Configured: Cortex-R4)
- Executing InitTarget()
- TotalIRLen = 6, IRPrint = 0x01
- J-Link script: ICEPick found, enabling DAP of CPU core.
- TotalIRLen = 10, IRPrint = 0x0011
- JTAG chain detection found 2 devices:
- #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
- #1 Id: 0x3B95502F, IRLen: 06, TI ICEPick
- ERROR: Could not power up debug port: Control/Status register reads 00000F02
- ERROR: Failed to connect.
Could not establish a connection to target.

现在测量我的最小系统内3.3V、1.2V、16Mhz均正常,网上说是有可能JTAG死锁,TMS570貌似没有加密的功能呀!

请教各位高手帮忙看一下

多谢多谢!

  • 可能是在我的程序 system.c 里加了这段 代码
    /** @b Clock source[7-3] is set to the disabled state */
    /*SYSTEM_1->CSDISSET = 0x00000000U | (31U << 3U);
    本来是想关掉一些不用的时钟,但感觉是连JTAG的时钟也禁止掉了!

    现在这种JTAG连不上的情况,大家有没有解决的好办法???
  • 这个芯片除了JTAG口,还有没有别的烧写程序方法???
  • 我非常怀疑多半是烧写进去的软件有些问题,占用了相应的IO 管腿或者禁用掉了相关的时钟信号,导致无法利用JLink与之通讯。现在的关键问题是如何让我这个有问题的软件上电后不再运行,或者是用别的办法擦除掉FLASH???

    有经验的高手来回答一下吧
  • 建议您使用 UNIFLash 配合TI例程先试一下,以排除硬件问题
  • 非常感谢您的回复!!!
    我之前用UniFlash试过,在UniFlash里面也需要设置Jlink仿真器(现在手头就只有这款仿真器)和目标板进行连接,连接的结果也是失败的!现在我的目标板上的 tms570ls1227芯片就是和通过JTAG无法和仿真器通信,而之前的几天我的仿真器和目标板连接是对的,仿真和烧写程序都没问题!
    就是加了这行代码后,在烧写进去就再也连不上了!
    / ** @b时钟源[7-3]设置为禁用状态* /
    / * SYSTEM_1-> CSDISSET = 0x00000000U | (31U << 3U);
    难道是因为我加的那一行代码?好像也不应该!
    tms570ls1227这款芯片有没有别的手段(不用仿真器之类的)来擦写Flash?
    或用别的手段上电后终止Flash中程序的自动运行???