Re: [Openocd-development] jtag noob - noob questions

2011-05-06 Thread Eric Cooper
u're using a Linux host, you just want: interface parport parport_cable wiggler in your config. Make sure you have the "ppdev" kernel module loaded so that /dev/parport0 shows up. -- Eric Cooper e c c @ c m u . e d u _

Re: [Openocd-development] code structuring advice needed

2011-05-02 Thread Eric Cooper
new methods for set/unset_breakpoint, which are currently private helper functions in arm7_9_common.c. Currently there are methods for add/remove breakpoint, but that's not sufficient because the resume code needs the lower-level set/unset to step over breakpoints. -- Eric Cooper

[Openocd-development] code structuring advice needed (was: [PATCH] Invalidate feroceon L2 cache ...)

2011-05-02 Thread Eric Cooper
ave some special-purpose check for the feroceon sub-architecture. So I keep coming back to the idea of adding a hook to the arm7_9_common struct to handle this. Is there a better approach? -- Eric Cooper e c c @ c m u . e d u ___ Openoc

Re: [Openocd-development] [PATCH] Invalidate feroceon L2 cache when setting/unsetting software breakpoints

2011-05-01 Thread Eric Cooper
." And the XScale code does it somewhat similarly to my patch: with cache invalidation in just the breakpoint set/unset routines. In any case, I'll "un-generalize" my patch and resubmit a new version. -- Eric Cooper e c c @ c m u . e d u ___

[Openocd-development] [PATCH] Invalidate feroceon L2 cache when setting/unsetting software breakpoints

2011-05-01 Thread Eric Cooper
other sub-architectures need this too. Tested on a Seagate DockStar running U-Boot. Signed-Off-By: Eric Cooper --- src/target/arm7_9_common.c |4 src/target/arm7_9_common.h |2 ++ src/target/feroceon.c |8 3 files changed, 14 insertions(+), 0 deletions(-) diff -

Re: [Openocd-development] help with config for Seagate DockStar please

2011-05-01 Thread Eric Cooper
On Thu, Apr 28, 2011 at 08:49:27PM -0400, Eric Cooper wrote: > The Feroceon chip also has an L2 cache. I added some code to > invalidate this when setting breakpoints, and now the target at > least halts at the right place. But openocd doesn't notice it (I > had to use poll to f

Re: [Openocd-development] help with config for Seagate DockStar please

2011-04-28 Thread Eric Cooper
On Wed, Apr 27, 2011 at 05:33:50PM -0700, Mike Dunn wrote: > On 04/27/2011 03:12 PM, Eric Cooper wrote: > > I think it must still be executing the unmodified instruction out of > > the i-cache. Shouldn't openocd flush that when it sets a software > > breakpoint? &g

Re: [Openocd-development] help with config for Seagate DockStar please

2011-04-27 Thread Eric Cooper
On Wed, Apr 27, 2011 at 12:12:12PM -0700, Mike Dunn wrote: > On 04/27/2011 09:42 AM, Eric Cooper wrote: > > 1. In gdb, I can step and continue, but I can't halt. Once I've > > continued, typing ^C does nothing. (Typing it a second time just > > makes gdb offer t

[Openocd-development] help with config for Seagate DockStar please

2011-04-27 Thread Eric Cooper
oints don't work. I can set one in either the telnet client or gdb without any error message. But when I continue execution, the program never halts at the breakpoint. I've attached my simple-minded config file. I'd appreciate any suggestions on what to try next. Thanks. -- Eric