Then I came across this one thread in Sparkfun. The change seems
to make sense as well so I gave it a try.
http://forum.sparkfun.com/viewtopic.php?f=18&t=24946
It does not seem to help either.
But then I find out actually my V8 J-Link works once in about 3 times for
EK-LM3S1968 demo board. It works even though that there are still
quite a bit of error message but it seems to work.
With the on-board TI/Luminary interface, OpenOCD always works.
D:\work\openocd\openocd_0.5.0_mingw\bin>openocd.exe -f ek-lm3s1968_jlink.cfg
Open On-Chip Debugger 0.5.0 (2011-08-11-13:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it allows; assumi
ng legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Jul 26 2011 17:31:24
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9432
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 2.510 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : clock speed 500 kHz
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
in procedure 'transport'
in procedure 'init'
D:\work\openocd\openocd_0.5.0_mingw\bin>openocd.exe -f ek-lm3s1968_jlink.cfg
Open On-Chip Debugger 0.5.0 (2011-08-11-13:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it allows; assumi
ng legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : J-Link initialization started / target CPU reset initiated
Error: J-Link command 0x01 failed (-116)
Error: J-Link command EMU_CMD_VERSION failed (0)
Info : J-Link JTAG Interface ready
Info : clock speed 500 kHz
Error: J-Link command 0xdf failed (-116)
Error: usb_bulk_write failed (requested=6, result=-116)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Error: usb_bulk_write failed (requested=6, result=-116)
Error: jlink_tap_execute, wrong result -107 (expected 1)
in procedure 'transport'
in procedure 'init'
D:\work\openocd\openocd_0.5.0_mingw\bin>openocd.exe -f ek-lm3s1968_jlink.cfg
Open On-Chip Debugger 0.5.0 (2011-08-11-13:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it allows; assumi
ng legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : J-Link initialization started / target CPU reset initiated
Error: J-Link command 0xde failed (-116)
Error: J-Link command 0xdc failed (-116)
Error: J-Link command 0x01 failed (-116)
Error: J-Link command EMU_CMD_VERSION failed (0)
Info : J-Link JTAG Interface ready
Info : clock speed 500 kHz
Info : TAP lm3s1968.cpu does not have IDCODE
Warn : JTAG tap: lm3s1968.cpu UNEXPECTED: 0x00000000 (mfg: 0x000, part: 0x
0000, ver: 0x0)
Error: JTAG tap: lm3s1968.cpu expected 1 of 1: 0x0ba00477 (mfg: 0x23b, part: 0x
ba00, ver: 0x0)
Warn : Unexpected idcode after end of chain: 1 0xd0023bff
Warn : Unexpected idcode after end of chain: 33 0x00007f9d
Warn : Unexpected idcode after end of chain: 65 0x00007f80
Warn : Unexpected idcode after end of chain: 97 0x00007f80
Warn : Unexpected idcode after end of chain: 129 0x00007f80
Warn : Unexpected idcode after end of chain: 161 0x00007f80
Warn : Unexpected idcode after end of chain: 193 0x00007f80
Warn : Unexpected idcode after end of chain: 225 0x00007f80
Warn : Unexpected idcode after end of chain: 257 0x00007f80
Warn : Unexpected idcode after end of chain: 289 0x00007f80
Warn : Unexpected idcode after end of chain: 321 0x00007f80
Warn : Unexpected idcode after end of chain: 353 0x00007f80
Warn : Unexpected idcode after end of chain: 385 0x00007f80
Warn : Unexpected idcode after end of chain: 417 0x00007f80
Warn : Unexpected idcode after end of chain: 449 0x00007f80
Warn : Unexpected idcode after end of chain: 481 0x00007f80
Warn : Unexpected idcode after end of chain: 513 0x00007f80
Warn : Unexpected idcode after end of chain: 545 0x00007f80
Warn : Unexpected idcode after end of chain: 577 0x00007f80
Error: double-check your JTAG setup (interface, speed, missing TAPs, ...)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Info : lm3s1968.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0x
ba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0001df0c msp: 0x20000300
flash 'stellaris' found at 0x00000000
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0x
ba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0001df0c msp: 0x20000300
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 5120 bytes from file graphics.bin in 0.534000s (9.363 KiB/s)
1200 kHz
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 5120 bytes from file graphics.bin in 0.432000s (11.574 KiB/s)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
--
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development