On Mon, May 28, 2012 at 8:38 AM, Xiaofan Chen <[email protected]> wrote:
> Today I was able to test my V3 (which is now quite old and probably
> not many people are still using it, in the office, we mainly have
> V6 and V8) and patched version works just like the vanilla version.
>

Oops, copy/paste under Mac OS X is a bit different and I paste
the wrong one.

Take note V3 does not support SWD. That is why the
following error message comes out.
Error: J-Link command EMU_CMD_SELECT_IF failed (0)

V1/V2/V3/V4 are using Renesas MCU and not the Atmel MCU
used by later J-Link and they only support up to 4MHz JTAG
frequency. The later ones support 12MHz. V6 onwards
support SWD. I once found a web page comparing different
version of J-Link in terms of HW/FW but I could not find it
any more.

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
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [00000407] libusbx: warning
[darwin_cache_device_descriptor] could not retrieve device descriptor
05ac:8281: device not responding. skipping device
[ 0.191257] [00000407] libusbx: warning [libusb_get_config_descriptor]
descriptor data still left
[ 0.256900] [00000407] libusbx: warning [libusb_get_config_descriptor]
descriptor data still left
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : J-Link caps 0x3
Info : J-Link hw version 30000
Info : J-Link hw type J-Link
Info : Vref = 3.286 TCK = 1 TDI = 1 TDO = 1 TMS = 1 SRST = 0 TRST = 255
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 1.085537s (117.914 KiB/s)
verified 131072 bytes in 0.293906s (435.513 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.616527s (35.393 KiB/s)
verified 131072 bytes in 0.293102s (436.708 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.148611s (134.580 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$ ~/binj/bin/openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.6.0-dev-00593-gdd14d84 (2012-05-25-21:10)
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
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
[ 0.000000] [00000407] libusbx: warning
[darwin_cache_device_descriptor] could not retrieve device descriptor
05ac:8281: device not responding. skipping device
[ 0.192804] [00000407] libusbx: warning [libusb_get_config_descriptor]
descriptor data still left
[ 0.256730] [00000407] libusbx: warning [libusb_get_config_descriptor]
descriptor data still left
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : J-Link caps 0x3
Info : J-Link hw version 30000
Info : J-Link hw type J-Link
Info : Vref = 3.287 TCK = 1 TDI = 1 TDO = 1 TMS = 1 SRST = 0 TRST = 255
[ 2.122280] [00000407] libusbx: error [darwin_transfer_status]
transfer error: timed out
Error: J-Link command EMU_CMD_SELECT_IF 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.954352s (134.122 KiB/s)
verified 131072 bytes in 0.285992s (447.565 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.618547s (35.373 KiB/s)
verified 131072 bytes in 0.292657s (437.372 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.150066s (133.275 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