On Mon, May 28, 2012 at 7:53 PM, Spencer Oliver <[email protected]> wrote:
>>
>> Just wondering whether you know the corresponding Segger software
>> package version (4.xx).
>>
>
> 4.22g

So I just tried 4.22g and indeed it has some problems with the
patch. It does not work at all with the current git. The patched
version is kind of interesting, the first run after plug-in does not
work, run it again and it seems to work. I tried a few times and
the result is consistent.

1) Downgrade the firmware under Windows.
SEGGER J-Link Commander V4.22g ('?' for help)
Compiled Feb  7 2011 16:13:26
DLL version V4.22g, compiled Feb  7 2011 16:13:12
Firmware: J-Link ARM V8 compiled May 24 2012 11:19:27
Hardware: V8.00
S/N: xxxxxxxxx
OEM: IAR
J-Link>exec invalidateFw
Info: Updating firmware:  J-Link ARM V8 compiled JAN 31 2011 18:34:52
Info: Replacing firmware: J-Link ARM V8 compiled May 24 2012 11:19:27
Info: Waiting for new firmware to boot
Info: New firmware booted successfully
J-Link>

2) Tested under Mac OS X, vanilla git does not work at all.
It seems there are still issues with some other OpenOCD issue
with regard to this version of FW.

mymacmini:stm32 xiaofanc$ openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.6.0-dev-00595-g445a54a (2012-05-25-20:38)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : Adapter driver 'jlink' did not declare which transports it
allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
libusbx: warning [darwin_cache_device_descriptor] could not retrieve
device descriptor 05ac:8281: device not responding. skipping device
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled JAN 31 2011 18:34:52
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 8368
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.293 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
libusbx: error [darwin_transfer_status] transfer error: data overrun
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Info : clock speed 1000 kHz
libusbx: error [submit_bulk_transfer] bulk transfer failed (dir = In):
pipe is stalled (code = 0xe000404f)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
libusbx: error [submit_bulk_transfer] bulk transfer failed (dir = In):
pipe is stalled (code = 0xe000404f)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
in procedure 'transport'
Runtime Error: openocd_jlink.cfg:19:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'init' called at file "openocd_jlink.cfg", line 19


3) Unplug and then plug the J-Link and then try the patched
version. The first run does not work. The 2nd run seems to work
but there is a command failed.
J-Link command EMU_CMD_VERSION failed (0)

mymacmini:stm32 xiaofanc$ ~/binj2/bin/openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.6.0-dev-00597-gb4ce520-dirty (2012-05-28-18:34)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
libusbx: warning [darwin_cache_device_descriptor] could not retrieve
device descriptor 05ac:8281: device not responding. skipping device
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled JAN 31 2011 18:34:52
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 8368
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.293 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
libusbx: error [darwin_transfer_status] transfer error: data overrun
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
Info : clock speed 1000 kHz
libusbx: error [submit_bulk_transfer] bulk transfer failed (dir = In):
pipe is stalled (code = 0xe000404f)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
libusbx: error [submit_bulk_transfer] bulk transfer failed (dir = In):
pipe is stalled (code = 0xe000404f)
Error: usb_bulk_read failed (requested=1, result=0)
Error: jlink_tap_execute, wrong result -107 (expected 1)
in procedure 'transport'
Runtime Error: openocd_jlink.cfg:19:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'init' called at file "openocd_jlink.cfg", line 19

mymacmini:stm32 xiaofanc$ ~/binj2/bin/openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.6.0-dev-00597-gb4ce520-dirty (2012-05-28-18:34)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
libusbx: warning [darwin_cache_device_descriptor] could not retrieve
device descriptor 05ac:8281: device not responding. skipping device
libusbx: warning [darwin_cache_device_descriptor] could not retrieve
device descriptor 05ac:8242: device not responding. skipping device
Info : J-Link initialization started / target CPU reset initiated
libusbx: error [darwin_transfer_status] transfer error: timed out
Error: J-Link command EMU_CMD_VERSION failed (0)
Info : J-Link JTAG Interface ready
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800272c msp: 0x20000810
8000 kHz
dumped 131072 bytes in 0.863157s (148.293 KiB/s)
verified 131072 bytes in 0.277734s (460.873 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.599726s (35.558 KiB/s)
verified 131072 bytes in 0.281510s (454.691 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.133404s (149.921 KiB/s)
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
shutdown command invoked

mymacmini:stm32 xiaofanc$ ~/binj2/bin/openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.6.0-dev-00597-gb4ce520-dirty (2012-05-28-18:34)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
libusbx: warning [darwin_cache_device_descriptor] could not retrieve
device descriptor 05ac:8281: device not responding. skipping device
Info : J-Link initialization started / target CPU reset initiated
libusbx: error [darwin_transfer_status] transfer error: timed out
Error: J-Link command EMU_CMD_VERSION failed (0)
Info : J-Link JTAG Interface ready
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800272c msp: 0x20000810
8000 kHz
dumped 131072 bytes in 0.891487s (143.580 KiB/s)
verified 131072 bytes in 0.277847s (460.685 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.599111s (35.564 KiB/s)
verified 131072 bytes in 0.281257s (455.100 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.138262s (144.653 KiB/s)
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
shutdown command invoked


-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to