New Windows version of OpenOCD r423 available

Hello,

a new compiled Windows version is available.

The new version r423 is available here:

http://www.yagarto.de/howto/openocd/index.html

Here you will find a small tutorial and the link for the OpenOCD.

The history of the SVN changes can be found here:

http://svn.berlios.de/wsvn/openocd/?op=log&sc=1

Best regards,

Michael

Hello,

Thank you for the new Version.

I have Problems with debug in Eclipse and ARM LPC23xx processor. The program close when I start the debug session!

Can you help me, please?

I Start the OpenOCD as Olimex ARM-USBOCD:

Open On-Chip Debugger (2008-03-01 20:00 CET) svn: 423
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk $
Info:    jtag.c:1304 jtag_examine_chain(): JTAG device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4)
Warning: embeddedice.c:175 embeddedice_build_reg_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken

Then I start the Arm-Elf-GDB, the OpenOCD Messages:

Info:    server.c:67 add_connection(): accepted 'gdb' connection from 0
Warning: gdb_server.c:374 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Error:   flash.c:180 get_flash_bank_by_num_noprobe(): flash bank 1 does not exist
User:    target.c:766 target_arch_state(): target state: running
User:    gdb_server.c:532 gdb_output(): requesting target halt and executing a soft reset
User:    gdb_server.c:532 gdb_output(): software breakpoints disabled
User:    gdb_server.c:532 gdb_output(): force hardware breakpoints enabled
User:    gdb_server.c:532 gdb_output(): requesting target halt and executing a soft reset
User:    gdb_server.c:532 gdb_output(): 0xe01fc040: 00000002 
Error:   armv4_5.c:590 armv4_5_run_algorithm(): timeout waiting for algorithm to complete, trying to halt target
Warning: gdb_server.c:307 gdb_put_packet_inner(): negative reply, retrying
Warning: gdb_server.c:307 gdb_put_packet_inner(): negative reply, retrying
Warning: gdb_server.c:307 gdb_put_packet_inner(): negative reply, retrying

The Messages from Arm-Elf-GDB:

No source file named main.elf.
target remote localhost:3333
0x0000020c in delay () at src/main.c:21
21			for (j=0; j < 1000; j++);
monitor reset
monitor sleep 500
monitor poll
target state: running
monitor soft_reset_halt
requesting target halt and executing a soft reset
monitor arm7_9 sw_bkpts disable
software breakpoints disabled
monitor arm7_9 force_hw_bkpts enable
force hardware breakpoints enabled
monitor mww 0xE01FC040 0x0002
monitor mdw 0xE01FC040
0xe01fc040: 00000002 
monitor flash erase_sector 0 0 9
Ignoring packet error, continuing...
Reply contains invalid hex digit 116
monitor flash erase_check 0
Remote communication error: Bad file descriptor.
monitor flash write_image main.elf
putpkt: write failed: No error.
set remote hardware-watchpoint-limit 2
load
putpkt: write failed: No error.
break main
Breakpoint 2 at 0x250: file src/main.c, line 30.
continue
Note: automatically using hardware breakpoints for read-only addresses.
putpkt: write failed: No error.
putpkt: write failed: No error.

The Problem: The OpenOCD have a exception and close. “The command in 0x004409a6 cannot read from memory 0x70657224”.

The error occours on:

monitor flash write_image main.elf

putpkt: write failed: No error.

set remote hardware-watchpoint-limit 2

Here the configuration for Olimex ARM-USB-OCD:

telnet_port 4444
gdb_port 3333
gdb_memory_map enable
gdb_flash_program enable
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 10
jtag_nsrst_delay 200
jtag_ntrst_delay 200
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little reset_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
daemon_startup reset
working_area 0 0x40000000 0x4000 nobackup
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum

Here the configuration for Par-Port:

telnet_port 4444
gdb_port 3333
gdb_memory_map enable
gdb_flash_program enable
gdb_detach reset
interface parport
parport_port 0x378
parport_cable wiggler
jtag_speed 0
jtag_nsrst_delay 200
jtag_ntrst_delay 200
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little reset_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30
daemon_startup reset
working_area 0 0x40000000 0x4000 nobackup
flash bank lpc2000 0x0 0x40000 0 0 0 lpc2000_v2 12000 calc_checksum

Both OpenOCD programms (PP/Ftdi) does not work right and close.

I use Arm-Elf-GDB V6.7.1.

Regards M.Müller

See

viewtopic.php?t=9817&sid=1563643c3805d0 … 829bbc9fc4

There is a patch for the seg fault (no longer quite right) and

a gdb parameter to change to prevent timeouts.

Can you send me your exe? I cannor build a new OpenOCD.

My address is at web.de.

Thank you very much.

Best regards, M.Müller