On Mon, May 25, 2009 at 7:43 PM, Xiaofan Chen <[email protected]> wrote: >> I will try with the J-Link V6 a bit later and report. >> > Somehow 1906 can not connect to my J-Link V6 with your script.
With the simple script, V1906 can talk to J-Link V6. It seems to work with your simple LED 1/2 blinking hex file. I tried both jlink_hw_jtag 2 or 3. More tests to follow. source [find target/lpc2148.cfg] source [find interface/jlink.cfg] #----------- Daemon Configuration telnet_port 4444 gdb_port 3333 tcl_port 6666 # Tell gdb that you can use us to program the device (requires GDB >=6.7 and libexapt) gdb_memory_map enable gdb_flash_program enable mc...@ubuntu904:~/Desktop/build/openocd/jlinkv6$ openocd -f myopenocd.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-24-21:41) svn:1906 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ RCLK - adaptive Error: J-Link command EMU_CMD_VERSION impossible return length 0x2d4a Error: J-Link command EMU_CMD_VERSION failed (-110) 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.248 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1 Info : J-Link JTAG Interface ready Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (3212). Workaround: increase "set remotetimeout" in GDB Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : JTAG Tap/device matched Info : accepting 'telnet' connection from 0 target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000194 wrote 756 byte from file led12_blink.hex in 0.644003s (1.146394 kb/s) 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: 0x800000df pc: 0x00000178 Error: Target not halted Error: error writing to flash at address 0x00000000 at offset 0x00000000 (-304) target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000124 wrote 756 byte from file led12_blink.hex in 0.370004s (1.995333 kb/s) 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: 0x800000df pc: 0x00000124 ^C mc...@ubuntu904:~/Desktop/build/openocd/jlinkv6$ telnet localhost 4444 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > halt target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000194 > jlink_hw_jtag 3 > flash write_image led12_blink.hex 0x0 wrote 756 byte from file led12_blink.hex in 0.644003s (1.146394 kb/s) > reset JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) JTAG Tap/device matched > halt target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000178 > resume > jlink_hw_jtag 2 > flash write_image led12_blink.hex 0x0 Target not halted error writing to flash at address 0x00000000 at offset 0x00000000 (-304) called at file "command.c", line 453 called at file "embedded:startup.tcl", line 89 called at file "embedded:startup.tcl", line 91 called at file "embedded:startup.tcl", line 93 > halt target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000124 > flash write_image led12_blink.hex 0x0 wrote 756 byte from file led12_blink.hex in 0.370004s (1.995333 kb/s) > reset JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) JTAG Tap/device matched > jlink_hw_jtag 3 > halt target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x800000df pc: 0x00000124 > Connection closed by foreign host. -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
