On Sun, May 24, 2009 at 7:03 PM, Michael Fischer <fische...@t-online.de> wrote:

> Attached is the main.hex file which should work with the lpc2148 without
> the calc_checksum key. LED1 and LED2 are flashing.

Yes this works well with my V3 Black Jlink. The two LEDs are flashing now.
I updated to the latest SVN with your updated lpc2148.cfg.

I will try some other hex files. Thanks a lot for debugging the problems for me.

mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ openocd -f
myopenocd.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 $
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.269 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
Info : accepting 'telnet' connection from 0
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x800000df pc: 0x00000174
wrote 756 byte from file led12_blink.hex in 0.380990s (1.937797 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: 0x0000013c

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
target state: halted
target halted in ARM state due to debug-request, current mode: System
cpsr: 0x800000df pc: 0x00000174
> flash write_image led12_blink.hex 0x0
wrote 756 byte from file led12_blink.hex in 0.380990s (1.937797 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: 0x0000013c

And I can just use the simplified config file.
mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ cat myopenocd.cfg
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


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