On Fri, May 25, 2012 at 10:13 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Fri, May 25, 2012 at 5:39 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: >> On Fri, May 25, 2012 at 3:08 PM, Alexander Osipenko <sip...@gmail.com> wrote: >>> Thanks Liviu for valuable comments! >>> >>> I have pushed patches to gerrit, and check them on fresh branch. >>> >>> http://openocd.zylin.com/666 >>> http://openocd.zylin.com/667 >>> >> >> Great. I borrowed an V8 J-Link from colleague and I can carry out >> some tests on the V8. I will also test if the patches will affect existing >> older revisions as well (V3, V7 and I can borrow V6 as well). >> > > It seems to cause some problems for my V7. > > First run is with your patches. The 2nd run is with vanilla git which > works fine with my V7.
But your patch does fix V8. The first run is with your patches and it works. The 2nd run is with vanilla git which fails. The V3 J-Link may be too old to support the STM32 IAR Starterkit so that I can not test it now. 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 Info : J-Link initialization started / target CPU reset initiated Info : J-Link ARM V8 compiled May 3 2012 18:36:22 Info : J-Link caps 0xb9ff7bbf Info : J-Link hw version 80000 Info : J-Link hw type J-Link Info : J-Link max mem block 9336 Info : J-Link configuration Info : USB-Address: 0x0 Info : Kickstart power on JTAG-pin 19: 0xffffff01 Info : Vref = 3.293 TCK = 1 TDI = 1 TDO = 1 TMS = 1 SRST = 0 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 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.080784s (118.433 KiB/s) verified 131072 bytes in 0.294865s (434.097 KiB/s) Info : device id = 0x20036410 Info : flash size = 128kbytes stm32x mass erase complete wrote 131072 bytes from file dump.bin in 3.624910s (35.311 KiB/s) verified 131072 bytes in 0.305430s (419.081 KiB/s) 20480 bytes written at address 0x20000000 downloaded 20480 bytes in 0.138927s (143.960 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$ 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 Info : J-Link initialization started / target CPU reset initiated Info : J-Link ARM V8 compiled May 3 2012 18:36:22 Info : J-Link caps 0xb9ff7bbf Info : J-Link hw version 80000 Info : J-Link hw type J-Link Info : J-Link max mem block 9336 Info : J-Link configuration Info : USB-Address: 0x0 Info : Kickstart power on JTAG-pin 19: 0xffffff01 Info : Vref = 3.293 TCK = 1 TDI = 1 TDO = 1 TMS = 1 SRST = 0 TRST = 1 Info : J-Link JTAG Interface ready Info : clock speed 1000 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: stm32f1x.cpu: IR capture error; saw 0x0f not 0x01 Warn : Bypassing JTAG setup events due to errors Warn : Invalid ACK 0x7 in JTAG-DP transaction Polling target failed, GDB will be halted. Polling again in 100ms Polling target failed, GDB will be halted. Polling again in 300ms 1000 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: stm32f1x.cpu: IR capture error; saw 0x0f not 0x01 Warn : Bypassing JTAG setup events due to errors Warn : Invalid ACK 0x7 in JTAG-DP transaction Error: Target not examined yet Runtime Error: openocd_jlink.cfg:20: in procedure 'script' at file "embedded:startup.tcl", line 58 in procedure 'reset' called at file "openocd_jlink.cfg", line 20 -- 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 OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel