On Tue, Jul 26, 2011 at 3:06 PM, Andreas Fritiofson
<[email protected]> wrote:
> On Tue, Jul 26, 2011 at 11:25 PM, Steve Franks <[email protected]>
> wrote:
>>
>> Every year or so I try openocd, and still no joy. Actually, seems the
>> script and config stuff has all finally matured/stabilized, so I'll
>> assume I can make it work w/o too much pain, after I fix this hang:
>>
>> I have a vanilla lpc2138 on an ARM-USB-OCD, that seems to fire up ok
>> using the built-in configs in /usr/share/openocd.
>>
>> Hangs forever on write_image:
>>
>> steve@dystant:~/projects/clients/zonge/DNT/NT-32/firmware/arm/main$
>> openocd -f openocd.cfg
>> Open On-Chip Debugger 0.4.0 (2010-10-08-15:42)
>> Licensed under GNU GPL v2
>> For bug reports, read
>>        http://openocd.berlios.de/doc/doxygen/bugs.html
>> RCLK - adaptive
>> jtag_nsrst_delay: 200
>> jtag_ntrst_delay: 200
>> srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
>> Info : RCLK (adaptive clock speed) not supported - fallback to 500 kHz
>> Info : JTAG tap: lpc2138.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
>> part: 0xf1f0, ver: 0x4)
>> Info : Embedded ICE version 4
>> Info : lpc2138.cpu: hardware has 2 breakpoint/watchpoint units
>> flash write_image erase unlock Main.elf 0
>>
>
> Two things:
> 0.4.0 is rather old, you may be seeing a bug that has already been fixed.
> Grab the latest version from the repo and give it a try. I don't think
> anyone will bother with a bug report against 0.4.0 at this point.

Is there a reason ubuntu has a "rather old" version in their primary
repositories?  Just not as 'sexy' as libreoffice, so no one bothers to
build it?

> Post a debug log (add -d to the command line) so we can see what's going on
> under the hood.

with -d I guess it's not hung, it's just silently ignoring the command
(the 'target event 2' stretches for several pages in both directions);
so far as I'm aware, I don't have gdb open:

Debug: 425 18956 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 426 19056 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 427 19156 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
flash write_image erase unlock Main.elf 0Debug: 428 19256 target.c:968
target_call_event_callbacks(): target event 2 (gdb-halt)
Debug: 429 19357 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 430 19457 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 431 19557 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)
Debug: 432 19657 target.c:968 target_call_event_callbacks(): target
event 2 (gdb-halt)


Best,
Steve
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to