Hello Kevin,

please try the following:

use openocd release 0.1.0 so we can see if we have the same problems
or not, use the lpc2468.cfg that I send you or send me your cfg file
use following command line:

./src/openocd -f src/target/interface/openocd-usb.cfg
src/target/target/lpc2468.cfg

if doesn't work what i always do is flash a small example programm
which is comming in the olimex cd, after that program I can always
have contact over the debugger, at least until a hard reset.

I have no idea why, i have the problems since ever but I am not an
openocd expert :(

or send me exactly what you are doing and I can try to generate the
same scenario on my board.

best regards,
Mariano.-

On Sun, Mar 15, 2009 at 12:26 AM, Kevin Townsend <[email protected]> wrote:
> I just sat down to give it another shot, but I'm still really scratching my 
> head
> at why I can't properly connect to the lpc2478 board with my ARM-USB-OCD.  I'm
> getting the following output once I start OpenOCD up and then try to begin
> debugging:
>
> ----------------------------
>
> source .gdbinit
> target remote 127.0.0.1:3333
> Load$$ER_FLASH$$Base () at
> E:\MicroFrameworkPK_v3_0\DeviceCode\cores rm\AssemblyCode 
> rm\GNU_S\FirstEntry.s:102
> 102         msr     cpsr_c, #PSR_MODE_SYSTEM    @ go into System mode, 
> interrupts
> off
> Current language:  auto; currently asm
> monitor reset
> JTAG tap: lpc2478.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part:
> 0xf1f0, Version: 0x4)
> JTAG Tap/device matched
>
> monitor sleep 500
>
> monitor poll
> target state: running
>
> monitor soft_reset_halt
> requesting target halt and executing a soft reset
> Failed to halt CPU after 1 sec
>
> monitor arm7_9 force_hw_bkpts enable
> invalid command name "arm7_9_force_hw_bkpts"
> called at file "command.c", line 456
> called at file "embedded:startup.tcl", line 89
> called at file "embedded:startup.tcl", line 93
> break PreStackEntry
> Breakpoint 1 at 0x4: file
> E:\MicroFrameworkPK_v3_0\DeviceCode\cores rm\AssemblyCode 
> rm\GNU_S\FirstEntry.s,
> line 110.
> load
> Loading section ER_STACK_BOTTOM, size 0x4 lma 0x40000400
> Load failed
> continue
> Note: automatically using hardware breakpoints for read-only addresses.
> Warning:
> Cannot insert hardware breakpoint 1.
> Could not insert hardware breakpoints:
> You may have requested too many hardware breakpoints/watchpoints.
>
> -----------------
>
> There are obviously three points of note here:
>
> 1.) Failed to halt CPU after 1 sec (Why?)
> 2.) monitor arm7_9 force_hw_bkpts enable
>    invalid command name "arm7_9_force_hw_bkpts"
>    - This command appears in the manual, so what's the problem?
> 3.) Why is it not loading, though I suspect if I solve issue 1 and 2, 3 will 
> be
> solved as well.
>
> For reference sake, these are the commands I'm passing in Eclipse for 
> debugging.
>  Admittedly, they are from a previous r717 build I was using and may need some
> changes for the latest builds, since it seems a lot has changed in terms of
> config files and commands.  If someone can suggest something different, I'd
> certainly welcome the advice and I'm willing to try anything:
>
> target remote 127.0.0.1:3333
> monitor reset
> monitor sleep 500
> monitor poll
> monitor soft_reset_halt
> monitor arm7_9 force_hw_bkpts enable
> break PreStackEntry
> load
> continue
>
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to