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.

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
> flash write_image test_rom.hex 0x0
timed out while waiting for target halted
lpc2000 prepare sectors returned 151951736
error writing to flash at address 0x00000000 at offset 0x00000000 (-902)

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
> poll
target state: halted
target halted in ARM state due to debug-request, current mode: Abort
cpsr: 0x600000d7 pc: 0x000000e4
> flash write_image test_rom.hex 0x0
wrote 364 byte from file test_rom.hex in 0.330007s (1.077155 kb/s)
> dump_image dump.bin 0x0 364
dumped 364 byte in 0.032037s
> reset
30 kHz
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 Thumb state due to debug-request, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffd2c2
> step
target state: halted
target halted in Thumb state due to single-step, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffd2c4


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
Info : J-Link compiled Feb 20 2006 18:20:20 -- Update --
Info : JLink caps 0x3
Info : JLink hw version 30000
Info : Vref = 3.286 TCK = 1 TDI = 0 TDO = 0 TMS = 0 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
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 ARM state due to debug-request, current mode: System
cpsr: 0x8000005f pc: 0x0000085c
requesting target halt and executing a soft reset
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x800000d3 pc: 0x00000000
1500 kHz
Info : accepting 'telnet' connection from 0
Error: timed out while waiting for target halted
Warn : lpc2000 prepare sectors returned 151951736
Error: error writing to flash at address 0x00000000 at offset 0x00000000 (-902)
target state: halted
target halted in ARM state due to debug-request, current mode: Abort
cpsr: 0x600000d7 pc: 0x000000e4
wrote 364 byte from file test_rom.hex in 0.330007s (1.077155 kb/s)
dumped 364 byte in 0.032037s
30 kHz
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 Thumb state due to debug-request, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffd2c2
target state: halted
target halted in Thumb state due to single-step, current mode: Supervisor
cpsr: 0xa00000f3 pc: 0x7fffd2c4


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