On Wed, May 20, 2009 at 8:15 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Wed, May 20, 2009 at 12:46 PM, Magnus Lundin <lun...@mlu.mine.nu> wrote:
>> The following patch combines my previous patch with most of Ben's patch. It
>> can use both  EMU_CMD_HW_JTAG2  and   EMU_CMD_HW_JTAG3
>>
>> It defaults to EMU_CMD_HW_JTAG2 so it should work with all interfaces but
>> EMU_CMD_HW_JTAG3 is recommended by SEgger,  you can change the behaviour
>> with
>>
>>> jlink_hw_jtag  3
>> or
>>> jlink_hw_jtag  2
>>
>> Autodetection can be done when we know which versions JLink can use what
>> setting,  (-d3 logs of setup messages )
>>
>
> Thanks. It seems to me that my black V3 J-Link works well with your patch.
> Single step, halt, resume all works fine. No more error messages.
>

It also works with my yellow V6 J-Link. I tried jlink-hw_jtag 3 and a few other
commands (halt, reset, resume, step, etc). Again, no more error messages.

mc...@ubuntu904:~/Desktop/build/openocd/jlinknew$ openocd -f myopenocd.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-20-20:09) svn:1857M

BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
RCLK - adaptive
Info : J-Link ARM V6 compiled Dec 03 2007 17:34:18
Info : JLink caps 0xf7fbf
Info : JLink hw version 60000
Info : JLink max mem block 9992
Info : Vref = 3.242 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1

Info : J-Link JTAG Interface ready
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : JTAG Tap/device matched
Warn : no tcl port specified, using default port 6666
Info : accepting 'telnet' connection from 0
     TapName            | Enabled |   IdCode      Expected    IrLen
IrCap  IrMask Instr
---|--------------------|---------|------------|------------|------|------|------|---------
 0 | lpc2148.cpu        |    Y    | 0x4f1f0f0f | 0x4f1f0f0f | 0x04 |
0x01 | 0x0f | 0x0c
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x8000005f pc: 0x00000888
jlink hw jtag  3
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000005f pc: 0x00000864
target state: halted
target halted in ARM state due to single-step, current mode: System
cpsr: 0x2000005f pc: 0x00000868
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : JTAG Tap/device matched
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x2000005f pc: 0x0000086c


-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to