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. mc...@ubuntu904:~/Desktop/build/openocd/jlinkold$ 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 compiled Feb 20 2006 18:20:20 -- Update -- Info : JLink caps 0x3 Info : JLink hw version 30000 Info : Vref = 3.288 TCK = 1 TDI = 1 TDO = 0 TMS = 1 SRST = 1 TRST = 255 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: 0x00000880 target state: halted target halted in ARM state due to single-step, current mode: System cpsr: 0x8000005f pc: 0x00000884 target state: halted target halted in ARM state due to single-step, current mode: System cpsr: 0x8000005f pc: 0x00000888 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 -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development