On Sun, May 24, 2009 at 5:02 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sun, May 24, 2009 at 4:42 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>> I am using the following simple script and J-Link V3.
>> I will try yours as well.
>>
>
> With your script (replace with JLink) it seems to be ok. Thanks.
> Occasionally there are some timeout though.
>

With your script, I can flash the files and I can halt the target.
However the flashing is apparently not correct as it does not
work. Using lpc21isp it works.

mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ openocd -f jlink.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-05-24-16:28) svn:1905


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


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
30 kHz
Error: J-Link command EMU_CMD_VERSION failed (-110)

Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : JLink caps 0x3
Info : JLink hw version 30000
Info : Vref = 3.287 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 255

Info : J-Link JTAG Interface ready
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive
packet not sent! (3202). 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
Warn : DBGACK set while target was in unknown state. Reset or initialize target.
target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000020
30 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : JTAG Tap/device matched
Warn : srst pulls trst - can not reset into halted mode. Issuing halt
after reset.
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffd2c0
requesting target halt and executing a soft reset
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
1500 kHz
Info : accepting 'telnet' connection from 0
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
wrote 8036 byte from file isoc_io_sample.hex in 1.679032s (4.673917 kb/s)
dumped 8036 byte in 0.636055s
30 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f
(Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Info : JTAG Tap/device matched
target state: running
^C

mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ telnet localhost 4444
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> halt
> poll
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
> halt
> poll
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0xa00000d3 pc: 0x00000000
> flash write_image isoc_io_sample.hex 0x0
wrote 8036 byte from file isoc_io_sample.hex in 1.679032s (4.673917 kb/s)
> dump_image dump_isoc.bin 0x0 8036
dumped 8036 byte in 0.636055s
> halt
> reset
30 kHz
JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer:
0x787, Part: 0xf1f0, Version: 0x4)
JTAG Tap/device matched
> poll
target state: running
> Connection closed by foreign host.




-- 
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