On Fri, May 25, 2012 at 5:39 PM, Xiaofan Chen <[email protected]> wrote:
> On Fri, May 25, 2012 at 3:08 PM, Alexander Osipenko <[email protected]> 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.
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 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: 0xff
Info : Kickstart power on JTAG-pin 19: 0xffffffff
Info : Vref = 3.267 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x03003fff (mfg:
0x7ff, part: 0x3003, ver: 0x0)
Warn : JTAG tap: stm32f1x.cpu UNEXPECTED: 0x03003fff (mfg:
0x7ff, part: 0x3003, ver: 0x0)
Error: JTAG tap: stm32f1x.cpu expected 1 of 1: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : TAP stm32f1x.bs does not have IDCODE
Warn : JTAG tap: stm32f1x.bs UNEXPECTED: 0x00000000 (mfg: 0x000,
part: 0x0000, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 1 of 9: 0x06412041 (mfg: 0x020,
part: 0x6412, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 2 of 9: 0x06410041 (mfg: 0x020,
part: 0x6410, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 3 of 9: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
Error: JTAG tap: stm32f1x.bs expected 4 of 9: 0x06420041 (mfg: 0x020,
part: 0x6420, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 5 of 9: 0x06414041 (mfg: 0x020,
part: 0x6414, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 6 of 9: 0x06418041 (mfg: 0x020,
part: 0x6418, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 7 of 9: 0x06430041 (mfg: 0x020,
part: 0x6430, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 8 of 9: 0x06420041 (mfg: 0x020,
part: 0x6420, ver: 0x0)
Error: JTAG tap: stm32f1x.bs expected 9 of 9: 0x06428041 (mfg: 0x020,
part: 0x6428, ver: 0x0)
Warn : Unexpected idcode after end of chain: 33 0x00000000
Warn : Unexpected idcode after end of chain: 65 0x000003fe
Warn : Unexpected idcode after end of chain: 97 0x000001ff
Warn : Unexpected idcode after end of chain: 129 0x800000fe
Warn : Unexpected idcode after end of chain: 161 0x8000007f
Warn : Unexpected idcode after end of chain: 193 0x8000007f
Warn : Unexpected idcode after end of chain: 225 0x8000007f
Warn : Unexpected idcode after end of chain: 257 0x8000007f
Warn : Unexpected idcode after end of chain: 289 0x8000007f
Warn : Unexpected idcode after end of chain: 321 0x8000007f
Warn : Unexpected idcode after end of chain: 353 0x8000007f
Warn : Unexpected idcode after end of chain: 385 0x8000007f
Warn : Unexpected idcode after end of chain: 417 0x8000007f
Warn : Unexpected idcode after end of chain: 449 0x8000007f
Warn : Unexpected idcode after end of chain: 481 0x8000007f
Warn : Unexpected idcode after end of chain: 513 0x8000007f
Warn : Unexpected idcode after end of chain: 545 0x8000007f
Warn : Unexpected idcode after end of chain: 577 0x8000007f
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 : 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.276839s (100.248 KiB/s)
verified 131072 bytes in 0.294065s (435.278 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.634734s (35.216 KiB/s)
verified 131072 bytes in 0.300868s (425.436 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.165009s (121.206 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 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: 0xff
Info : Kickstart power on JTAG-pin 19: 0xffffffff
Info : Vref = 3.267 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 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 1.276640s (100.263 KiB/s)
verified 131072 bytes in 0.293013s (436.841 KiB/s)
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
wrote 131072 bytes from file dump.bin in 3.634363s (35.219 KiB/s)
verified 131072 bytes in 0.301998s (423.844 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.165572s (120.793 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