On Tue, May 5, 2015 at 3:16 AM, Marc Schink (Code Review)
<[email protected]> wrote:
> Hello Andreas Färber, jenkins, Xiaofan,
>
> I'd like you to reexamine a change.  Please visit
>
>     http://openocd.zylin.com/2598
>
> to look at the new patch set (#3).
>
> Change subject: Improve J-Link driver and introduce libjaylink.
> ......................................................................
>
> Improve J-Link driver and introduce libjaylink.

Building under Mac OS X is now okay. Both are built with Homebrew, release
version is installed to /usr/local and libjaylink version is installed to ~/bin.

But not so sure why the running is a bit different between release version of
OpenOCD 0.9.0 and the one with libjaylink. Tested with a V7 J-Link and
STM32F1 (IAR Starterkit).

MyMacMini:stm32 xiaofanc$ openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.9.0 (2015-05-23-20:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To
override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
none separate
cortex_m reset_config sysresetreq
Info : J-Link ARM V7 compiled Feb 15 2011 11:03:33
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 70000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9000
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffffff
Info : Vref = 3.280 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 1 TRST = 1
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
adapter 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)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800272c msp: 0x20000810
adapter speed: 8000 kHz
dumped 131072 bytes in 3.025529s (42.307 KiB/s)
verified 131072 bytes in 0.269609s (474.762 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.550454s (36.052 KiB/s)
verified 131072 bytes in 0.272222s (470.204 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.157975s (126.602 KiB/s)
adapter 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)
shutdown command invoked

MyMacMini:stm32 xiaofanc$ ~/bin/bin/openocd -f openocd_jlink.cfg
Open On-Chip Debugger 0.9.0-dev-00348-g89db99d (2015-05-23-20:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Error: session transport was not selected. Use 'transport select <transport>'
Info : session transport was not selected, defaulting to JTAG
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
none separate
cortex_m reset_config sysresetreq
Info : No device selected, using first device.
Info : J-Link ARM V7 compiled Feb 15 2011 11:03:33
Info : Hardware version: 7.00
Info : VTarget = 3.280 V
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
adapter 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)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800272c msp: 0x20000810
adapter speed: 8000 kHz
dumped 131072 bytes in 3.190124s (40.124 KiB/s)
verified 131072 bytes in 0.269025s (475.792 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.552040s (36.036 KiB/s)
verified 131072 bytes in 0.273575s (467.879 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.171500s (116.618 KiB/s)
adapter 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)
shutdown command invoked
openocd_jlink.cfg:29: Error:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'shutdown' called at file "openocd_jlink.cfg", line 29

-- 
Xiaofan

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to