On Sun, May 27, 2012 at 1:49 PM, Liviu Ionescu <[email protected]> wrote:
>
> On May 27, 2012, at 08:12 , Xiaofan Chen wrote:
>
>> The thing is that both my V7 and V8 also work under vanilla git
>> now. So my test does not show problems with either your patch
>> or vanilla git.
>
> according to my tests, the latest version that worked without the patch was 
> 4.42c
>
>        Info : J-Link ARM V8 compiled Feb  8 2012 14:30:39
>
> and the FW bug was introduced with version 4.44
>
>        Info : J-Link ARM V8 compiled Mar 19 2012 10:24:49
>
> (older versions did not need to explicitly initialise the JTAG transport).
>
> based on some reports, it may be possible that around version 4.30 there
> was another FW bug, that Segger fixed some versions later, but I do not have
> accurate data for this.

Last time the data are like this. Based on your first post and other reports,
up to v4.14g works. v4.14h onwards no longer works. 4.33h beta works again
as per my test.
http://lists.berlios.de/pipermail/openocd-development/2011-August/020741.html

4.33h beta.
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Aug 18 2011 19:52:49
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9424
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.222 TCK = 1 TDI = 0 TDO = 1 TMS = 0 SRST = 0 TRST = 0

Last time I also tested 4.36e (20-Oct-2011) which also works.
And based on your test, up to 4.42c works, 4.44 doesn't.

> there is also a new 4.46g beta, that came out these days; it might be
> interesting to test it too.

I see there is a 4.47h beta and it does not change my test result.

SEGGER J-Link Commander V4.47h ('?' for help)
Compiled May 24 2012 18:28:13
Updating firmware:  J-Link ARM V8 compiled May 24 2012 11:19:27 (note:
4.46f release)
Replacing firmware: J-Link ARM V8 compiled May  3 2012 18:36:22
Waiting for new firmware to boot
New firmware booted successfully
DLL version V4.47h, compiled May 24 2012 18:27:55
Firmware: J-Link ARM V8 compiled May 24 2012 11:19:27
Hardware: V8.00
S/N: xxxxxxxxx
OEM: IAR

I just tried another target, Olimex's LPC-P2148 demo board
and a lpcusb test firmware (USB Isochronous Transfer). I have
a lot of difficulties with this board and OpenOCD since often
openocd will fail to find the jtag chain. But then both version
(vanilla git or with the J-Link patch) behave the same.

mymacmini:lpc2148 xiaofanc$ openocd -f openocd.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'
Warning - assuming default core clock 12MHz! Flashing may fail if
actual core clock is different.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
1500 kHz
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled May 24 2012 11:19:27
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9328
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.287 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : clock speed 1500 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
Info : Embedded ICE version 4
Info : lpc2148.cpu: hardware has 2 breakpoint/watchpoint units
fast memory access is enabled
dcc downloads are enabled
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
1500 kHz
flash 'lpc2000' found at 0x00000000
erased sectors 0 through 26 on flash bank 0 in 0.448562s
Warn : Verification will fail since checksum in image (0xe1a00000) to
be written to flash is different from calculated vector checksum
(0xb9205f84).
Warn : To remove this warning modify build tools on developer PC to
inject correct LPC vector checksum.
wrote 8634 bytes from file lpcusbisoc.hex in 0.382038s (22.070 KiB/s)
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x8000005f pc: 0x000008a4
dumped 262144 bytes in 5.564141s (46.009 KiB/s)
verified 262144 bytes in 0.520811s (491.541 KiB/s)
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
shutdown command invoked

mymacmini:lpc2148 xiaofanc$ ~/binj/bin/openocd -f openocd.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'
Warning - assuming default core clock 12MHz! Flashing may fail if
actual core clock is different.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
1500 kHz
Info : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled May 24 2012 11:19:27
Info : J-Link caps 0xb9ff7bbf
Info : J-Link hw version 80000
Info : J-Link hw type J-Link
Info : J-Link max mem block 9328
Info : J-Link configuration
Info : USB-Address: 0x0
Info : Kickstart power on JTAG-pin 19: 0xffffff01
Info : Vref = 3.287 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Info : clock speed 1500 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
Info : Embedded ICE version 4
Info : lpc2148.cpu: hardware has 2 breakpoint/watchpoint units
fast memory access is enabled
dcc downloads are enabled
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
1500 kHz
flash 'lpc2000' found at 0x00000000
erased sectors 0 through 26 on flash bank 0 in 0.448124s
Warn : Verification will fail since checksum in image (0xe1a00000) to
be written to flash is different from calculated vector checksum
(0xb9205f84).
Warn : To remove this warning modify build tools on developer PC to
inject correct LPC vector checksum.
wrote 8634 bytes from file lpcusbisoc.hex in 0.367366s (22.952 KiB/s)
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x8000005f pc: 0x000008ac
dumped 262144 bytes in 5.521715s (46.362 KiB/s)
verified 262144 bytes in 0.414145s (618.141 KiB/s)
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
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