Hello,
we have two TMS570LC4357 chips in JTAG chain. There is only one chance to set up it for jLink and it is jlinkscript. Problem is that latest version which works for us are V512f. Little bit old. After this version we has problem to port our jlinkscript due to changes on API (removed __int64 etc).
Because this version is almost history we want to rewrite jlinkscript for latest version.
But there is problem. jLink ignoring our InitTarget function and start some default function.
When we omit "-device" parameter on command line, our function strat correctly (after "cancel" on device selection dialog), but it can't connect to unspecified device of course.
Command to start GDB for ex:
Our InitTarget function works when we ommit "-device TMS570LC4357ZWT" parameter.
Display All
With "-device TMS570LC4357ZWT" jLink ignore our InitTarget function with weird message "J-Link Script File: Executing InitTarget()"
Display All
PS: how to see or export "JLINK_SYS_Report" messages? We found only "log" page on embedded web server, but it is not available when jLink is terminated due to "ERROR: Could not connect to target.". We found trick to keep it alive with JLINK_SYS_MessageBox("wait"), but it is ugly hack.
we have two TMS570LC4357 chips in JTAG chain. There is only one chance to set up it for jLink and it is jlinkscript. Problem is that latest version which works for us are V512f. Little bit old. After this version we has problem to port our jlinkscript due to changes on API (removed __int64 etc).
Because this version is almost history we want to rewrite jlinkscript for latest version.
But there is problem. jLink ignoring our InitTarget function and start some default function.
When we omit "-device" parameter on command line, our function strat correctly (after "cancel" on device selection dialog), but it can't connect to unspecified device of course.
Command to start GDB for ex:
Our InitTarget function works when we ommit "-device TMS570LC4357ZWT" parameter.
Source Code
- before Icepick setting
- T4F30 006:299.295 JTAG chain detection found 2 devices:
- T4F30 006:299.297 #0 Id: 0x1B95A02F, IRLen: 06, TI ICEPick
- T4F30 006:299.298 #1 Id: 0x1B95A02F, IRLen: 06, TI ICEPick
- After
- T4F30 006:343.028 TotalIRLen = 12, IRPrint = 0x0041
- T4F30 006:344.298 JTAG chain detection found 2 devices:
- T4F30 006:344.300 #0 Id: 0x1BA00477, IRLen: 04, CoreSight JTAG-DP
- T4F30 006:344.301 #1 Id: 0x0B7B302F, IRLen: 06, TI ICEPick
- TotalIRLen is invalid, correct value is 4+6+6 = 16. We are set it properly, but jLink ingnores provided value.
Source Code
- T3644 000:255.031 JLINK_Connect()
- T3644 000:263.965 ConfigTargetSettings() start
- T3644 000:263.968 J-Link Script File: Executing ConfigTargetSettings()
- T3644 000:264.599 Looking for J-Link GUI Server exe at: c:\Program Files (x86)\SEGGER\JLink_V686a\JLinkGUIServer.exe
- T3644 000:264.748 Forking J-Link GUI Server: c:\Program Files (x86)\SEGGER\JLink_V686a\JLinkGUIServer.exe
- T3644 000:317.869 J-Link GUI Server info: "J-Link GUI server V6.86a "
- T3644 001:799.886 ConfigTargetSettings
- T3644 001:799.889 ConfigTargetSettings() end
- T3644 001:799.892 InitTarget() start
- T3644 001:799.892 J-Link Script File: Executing InitTarget()
- T3644 001:799.893 Executing InitTarget()
- T3644 001:801.289 TotalIRLen = 12, IRPrint = 0x0041
- T3644 001:802.239 Can not find ICE-Pick (IRLen mismatch). Expected 0x00000006, found: 0x0000000C
- T3644 001:802.241 J-Link script: ICEPick found, enabling Cortex-M3 core.
- T3644 001:803.985 TotalIRLen = 12, IRPrint = 0x0041
- T3644 001:804.764 JTAG chain detection found 2 devices:
- T3644 001:804.766 #0 Id: 0x1B95A02F, IRLen: 06, TI ICEPick
- T3644 001:804.767 #1 Id: 0x1B95A02F, IRLen: 06, TI ICEPick
- T3644 001:810.116 Can not find DAP (IDCODE mismatch)
- T3644 001:810.119 InitTarget() end
- T3644 001:874.272 ConfigTargetSettings() start
- T3644 001:874.276 J-Link Script File: Executing ConfigTargetSettings()