]> git.sur5r.net Git - openocd/log
openocd
15 years ago- revert change made to sheevaplug.cfg in rev2573
ntfreak [Fri, 11 Sep 2009 14:08:28 +0000 (14:08 +0000)]
- revert change made to sheevaplug.cfg in rev2573

git-svn-id: svn://svn.berlios.de/openocd/trunk@2695 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoNicolas Pitre <nico@cam.org> put feroceon target definition at the end so to avoid a
oharboe [Fri, 11 Sep 2009 08:04:50 +0000 (08:04 +0000)]
Nicolas Pitre <nico@cam.org> put feroceon target definition at the end so to avoid a
bunch of useless forward declarations.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2694 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoNicolas Pitre <nico@cam.org> Dragonite support
oharboe [Fri, 11 Sep 2009 08:03:46 +0000 (08:03 +0000)]
Nicolas Pitre <nico@cam.org> Dragonite support

git-svn-id: svn://svn.berlios.de/openocd/trunk@2693 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agospelling mistake
oharboe [Fri, 11 Sep 2009 07:46:50 +0000 (07:46 +0000)]
spelling mistake

git-svn-id: svn://svn.berlios.de/openocd/trunk@2692 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agodo not use dynamically sized stack arrays, not compatible with embedded OS's
oharboe [Fri, 11 Sep 2009 07:43:36 +0000 (07:43 +0000)]
do not use dynamically sized stack arrays, not compatible with embedded OS's

git-svn-id: svn://svn.berlios.de/openocd/trunk@2691 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoregistering a target event twice caused infinite loop. Same bug as in jtag/core.c...
oharboe [Fri, 11 Sep 2009 06:58:49 +0000 (06:58 +0000)]
registering a target event twice caused infinite loop. Same bug as in jtag/core.c copy & pasted.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2690 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agosyntax error fix
oharboe [Fri, 11 Sep 2009 06:08:51 +0000 (06:08 +0000)]
syntax error fix

git-svn-id: svn://svn.berlios.de/openocd/trunk@2689 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoAlexei Babich <a.babich@rez.ru> cleanup
oharboe [Fri, 11 Sep 2009 06:01:28 +0000 (06:01 +0000)]
Alexei Babich <a.babich@rez.ru>  cleanup

git-svn-id: svn://svn.berlios.de/openocd/trunk@2688 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoNicolas Pitre <nico@cam.org> tighten error checking in bulk_write
oharboe [Fri, 11 Sep 2009 05:57:51 +0000 (05:57 +0000)]
Nicolas Pitre <nico@cam.org> tighten error checking in bulk_write

git-svn-id: svn://svn.berlios.de/openocd/trunk@2687 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoeol-style:native
oharboe [Thu, 10 Sep 2009 13:35:08 +0000 (13:35 +0000)]
eol-style:native

git-svn-id: svn://svn.berlios.de/openocd/trunk@2686 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoAlexei Babich <a.babich@rez.ru> imx31 nand flash controller support
oharboe [Thu, 10 Sep 2009 13:17:25 +0000 (13:17 +0000)]
Alexei Babich <a.babich@rez.ru>  imx31 nand flash controller support

git-svn-id: svn://svn.berlios.de/openocd/trunk@2685 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoAlexei Babich <a.babich@rez.ru> fix problems with unecessary tailend byte accesses...
oharboe [Thu, 10 Sep 2009 13:17:05 +0000 (13:17 +0000)]
Alexei Babich <a.babich@rez.ru> fix problems with unecessary tailend byte accesses. Use 16 bit access on tailend of a memory read if possible.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2684 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agomichal smulski <michal.smulski@ooma.com> telo target/board scripts
oharboe [Thu, 10 Sep 2009 08:06:22 +0000 (08:06 +0000)]
michal smulski <michal.smulski@ooma.com> telo target/board scripts

git-svn-id: svn://svn.berlios.de/openocd/trunk@2683 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoRolf Meeser <rolfm_9dq@yahoo.de>
oharboe [Wed, 9 Sep 2009 16:11:33 +0000 (16:11 +0000)]
Rolf Meeser <rolfm_9dq@yahoo.de>
This patch adds target algorithm support for those flash devices that do not support DQ5 polling. So far they could only be programmed with host algorithm, but this was way too slow.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2682 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years ago- Fix bug-in-waiting when adding more than one TAP event type
oharboe [Wed, 9 Sep 2009 07:09:14 +0000 (07:09 +0000)]
- Fix bug-in-waiting when adding more than one TAP event type
- Infinite loop bugfix when running tap configure a second time

git-svn-id: svn://svn.berlios.de/openocd/trunk@2681 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>
oharboe [Wed, 9 Sep 2009 06:28:49 +0000 (06:28 +0000)]
David Brownell <david-b@pacbell.net>
Optionally shave time off the armv4_5 run_algorithm() code:  let
them terminate using software breakpoints, avoiding roundtrips
to manage hardware ones.

Enable this by using BKPT to terminate execution instead of "branch
to here" loops.  Then pass zero as the exit address, except when
running on an ARMv4 core.  ARM7TDMI, ARM9TDMI, and derived cores
now set a flag saying they're ARMv4.

Use that mechanism in arm_nandwrite(), for about 3% speedup on a
DaVinci ARM926 core; not huge, but it helps.  Some other algorithms
could use this too (mostly flavors of flash operation).

git-svn-id: svn://svn.berlios.de/openocd/trunk@2680 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>
oharboe [Wed, 9 Sep 2009 06:27:47 +0000 (06:27 +0000)]
David Brownell <david-b@pacbell.net>
Fix docs on ARM11 MCR and MRC coprocessor commands:
correct read-vs-write; and describe the params.

(ARM920 and ARM926 have cp15-specific commands; this
approach is more generic.  MCR2, MRC2, MCRR, MCRR2,
MRRC, and MRRC2 instructions could also get exposed.)

git-svn-id: svn://svn.berlios.de/openocd/trunk@2679 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoReport correct core instruction state for ARMv/A targets
mlu [Tue, 8 Sep 2009 15:32:18 +0000 (15:32 +0000)]
Report correct core instruction state for ARMv/A targets

git-svn-id: svn://svn.berlios.de/openocd/trunk@2678 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoLoad PC with bit 0 set to 1 when resuming to say in Thumb instruction state.
mlu [Tue, 8 Sep 2009 15:31:24 +0000 (15:31 +0000)]
Load PC with bit 0 set to 1 when resuming  to say in Thumb instruction state.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2677 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>
oharboe [Tue, 8 Sep 2009 06:18:45 +0000 (06:18 +0000)]
David Brownell <david-b@pacbell.net>
Provide an "armv7a disassemble" command.  Current omissions include
VFP (except as coprocessor instructions), Neon, and various Thumb2
opcodes that are not available in ARMv7-M processors.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2676 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>
oharboe [Tue, 8 Sep 2009 06:17:33 +0000 (06:17 +0000)]
David Brownell <david-b@pacbell.net>
lean up some loose ends with the ARM disassembler

 - Add a header comment describing its current state and uses
   and referencing the now-generally-available V7 arch spec

 - Support some mode switch instructions:
    * Thumb to Jazelle (BXJ)
    * Thumb to ThumbEE (ENTERX)
    * ThumbEE to Thumb (LEAVEX)

 - Improve that recent warning fix (and associated whitespace goof)

 - Declare the rest of the internal code and data "static".  A
   compiler may use this, and it helps clarify the scope of these
   routines (e.g. what changes to them could affect).

git-svn-id: svn://svn.berlios.de/openocd/trunk@2675 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoImproved handling of instruction set state, helps for debugging Thumb state.
mlu [Mon, 7 Sep 2009 20:19:17 +0000 (20:19 +0000)]
Improved handling of instruction set state, helps for debugging Thumb state.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2674 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMahr, Stefan <Stefan.Mahr@sphairon.com> removes the endianness swapping in mips_m4k...
oharboe [Fri, 4 Sep 2009 19:35:10 +0000 (19:35 +0000)]
Mahr, Stefan <Stefan.Mahr@sphairon.com> removes the endianness swapping in mips_m4k.c Swapping is already done in target.c

git-svn-id: svn://svn.berlios.de/openocd/trunk@2673 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agouse "armv4_5 core_state arm" instead of soft_reset_halt, fewer side effects
oharboe [Fri, 4 Sep 2009 11:03:26 +0000 (11:03 +0000)]
use "armv4_5 core_state arm" instead of soft_reset_halt, fewer side effects

git-svn-id: svn://svn.berlios.de/openocd/trunk@2672 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDirk Behme <dirk.behme@googlemail.com> retire jtag_speed usage
oharboe [Fri, 4 Sep 2009 08:27:27 +0000 (08:27 +0000)]
Dirk Behme <dirk.behme@googlemail.com> retire jtag_speed usage

git-svn-id: svn://svn.berlios.de/openocd/trunk@2671 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDirk Behme <dirk.behme@googlemail.com> Add default fall back freqency.
oharboe [Fri, 4 Sep 2009 08:27:08 +0000 (08:27 +0000)]
Dirk Behme <dirk.behme@googlemail.com> Add default fall back freqency.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2670 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoset ARM mode using explicit command rather than soft_reset_halt which has lots of...
oharboe [Fri, 4 Sep 2009 08:23:24 +0000 (08:23 +0000)]
set ARM mode using explicit command rather than soft_reset_halt which has lots of side effects.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2669 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> This patch simply enables the halting debug mode.
oharboe [Fri, 4 Sep 2009 08:22:02 +0000 (08:22 +0000)]
Matt Hsu <matt@0xlab.org> This patch simply enables the halting debug mode.
By enabling this bit, the processor halts when a debug event
such as breakpoint occurs.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2668 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agomore debug output for breakpoints
oharboe [Fri, 4 Sep 2009 08:21:18 +0000 (08:21 +0000)]
more debug output for breakpoints

git-svn-id: svn://svn.berlios.de/openocd/trunk@2667 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> Tidy up the bit-offset operation for DSCR register
oharboe [Fri, 4 Sep 2009 05:20:45 +0000 (05:20 +0000)]
Matt Hsu <matt@0xlab.org> Tidy up the bit-offset operation for DSCR register

git-svn-id: svn://svn.berlios.de/openocd/trunk@2666 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> "set _TARGETNAME ..." cleanup
oharboe [Fri, 4 Sep 2009 05:17:03 +0000 (05:17 +0000)]
David Brownell <david-b@pacbell.net> "set _TARGETNAME ..." cleanup

git-svn-id: svn://svn.berlios.de/openocd/trunk@2665 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Claffey <dnclaffey@gmail.com> get rid of reset recursion
oharboe [Fri, 4 Sep 2009 05:14:32 +0000 (05:14 +0000)]
David Claffey <dnclaffey@gmail.com> get rid of reset recursion

git-svn-id: svn://svn.berlios.de/openocd/trunk@2664 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell
oharboe [Thu, 3 Sep 2009 08:23:39 +0000 (08:23 +0000)]
David Brownell

Abstract the orion_nand_fast_block_write() routine into a separate
routine -- arm_nandwrite() -- so that other ARM cores can reuse it.

Have davinci_nand do so.  This faster than byte-at-a-time ops by a
factor of three (!), even given the slowish interactions to support
hardware ECC (1-bit flavor in that test) each 512 bytes; those could
be read more efficiently by on-chip code.

NOTE that until there's a generic "ARM algorithm" structure, this
can't work on newer ARMv6 (like ARM1136) or ARMv7A (like Cortex-A8)
cores, though the downloaded code itself would work just fine there.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2663 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Claffey <dnclaffey@gmail.com> tested with the Atheros reference design "PB44"
oharboe [Wed, 2 Sep 2009 17:34:35 +0000 (17:34 +0000)]
David Claffey <dnclaffey@gmail.com> tested with the Atheros reference design "PB44"

git-svn-id: svn://svn.berlios.de/openocd/trunk@2662 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoCrusty Code fixes from the tcl directory re-arragements
duane [Wed, 2 Sep 2009 00:17:39 +0000 (00:17 +0000)]
Crusty Code fixes from the tcl directory re-arragements

git-svn-id: svn://svn.berlios.de/openocd/trunk@2661 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years ago- fixes the incorrect info msg displayed during stellaris flash programming.
ntfreak [Tue, 1 Sep 2009 10:08:41 +0000 (10:08 +0000)]
- fixes the incorrect info msg displayed during stellaris flash programming.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2660 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years ago- fix a regression when using cortex_m3 emulated dcc channel
ntfreak [Tue, 1 Sep 2009 10:08:00 +0000 (10:08 +0000)]
- fix a regression when using cortex_m3 emulated dcc channel

git-svn-id: svn://svn.berlios.de/openocd/trunk@2659 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoWarning fix
duane [Mon, 31 Aug 2009 12:21:12 +0000 (12:21 +0000)]
Warning fix

git-svn-id: svn://svn.berlios.de/openocd/trunk@2658 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoGary Carlson <gcarlson@carlson-minot.com> config file
oharboe [Mon, 31 Aug 2009 09:06:01 +0000 (09:06 +0000)]
Gary Carlson <gcarlson@carlson-minot.com> config file

git-svn-id: svn://svn.berlios.de/openocd/trunk@2657 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoFerdinand Postema <ferdinand@postema.eu> config script for the MMnet1001 module from...
oharboe [Mon, 31 Aug 2009 06:02:01 +0000 (06:02 +0000)]
Ferdinand Postema <ferdinand@postema.eu> config script for the MMnet1001 module from Propox.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2656 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Minor code bugfix: check right variable.
oharboe [Sun, 30 Aug 2009 21:12:50 +0000 (21:12 +0000)]
David Brownell <david-b@pacbell.net> Minor code bugfix: check right variable.
Via code review by Steve Grubb <sgrubb@redhat.com> 

Almost innocuous; this is value is checked later, this
check being wrong would make it check stack garbage.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2655 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDirk Behme <dirk.behme@googlemail.com> Fix typo in help text. It has to be 'productio...
oharboe [Sun, 30 Aug 2009 20:08:07 +0000 (20:08 +0000)]
Dirk Behme <dirk.behme@googlemail.com> Fix typo in help text. It has to be 'production_test' instead of 'production' here.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2654 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Fix Sandstorm revision checking: right bits...
oharboe [Sun, 30 Aug 2009 20:05:40 +0000 (20:05 +0000)]
David Brownell <david-b@pacbell.net> Fix Sandstorm revision checking: right bits, right value!

git-svn-id: svn://svn.berlios.de/openocd/trunk@2653 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Remove duplicate check for flash write status.
oharboe [Sun, 30 Aug 2009 20:04:17 +0000 (20:04 +0000)]
David Brownell <david-b@pacbell.net> Remove duplicate check for flash write status.
Via code review by Steve Grubb <sgrubb@redhat.com> 

Also minor fixes for the message from "fill":  the byte
count is unsigned, not signed; and more importantly,
print the real number of bytes written

git-svn-id: svn://svn.berlios.de/openocd/trunk@2652 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Minor doc updates:
oharboe [Sun, 30 Aug 2009 17:32:56 +0000 (17:32 +0000)]
David Brownell <david-b@pacbell.net> Minor doc updates:

 - Itemize the list of private customization examples
  for openocd.cfg

 - Add "override defaults" as a customization, specifically
  for the work area (back it up or relocate it)

 - Highlight some work area location issues

git-svn-id: svn://svn.berlios.de/openocd/trunk@2651 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> start phasing out integers as target IDs
oharboe [Sun, 30 Aug 2009 17:30:14 +0000 (17:30 +0000)]
David Brownell <david-b@pacbell.net> start phasing out integers as target IDs

git-svn-id: svn://svn.berlios.de/openocd/trunk@2650 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Be sure the built-in search paths always go...
oharboe [Sun, 30 Aug 2009 17:27:50 +0000 (17:27 +0000)]
David Brownell <david-b@pacbell.net> Be sure the built-in search paths always go *after* ones provided
on the command line ... matching comment in add_default_dirs().

Without this it's impossible to use a private config file which
happens to have the same name as an installed one.  Say, because
you're bugfixing a private copy...

git-svn-id: svn://svn.berlios.de/openocd/trunk@2649 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> fix warnings
oharboe [Fri, 28 Aug 2009 17:18:36 +0000 (17:18 +0000)]
David Brownell <david-b@pacbell.net> fix warnings

git-svn-id: svn://svn.berlios.de/openocd/trunk@2648 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoadded arm11 timeout error messages
oharboe [Fri, 28 Aug 2009 13:43:26 +0000 (13:43 +0000)]
added arm11 timeout error messages

git-svn-id: svn://svn.berlios.de/openocd/trunk@2647 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agorestore ICE watchpoint registers when the *last* software breakpoint is removed
oharboe [Fri, 28 Aug 2009 09:47:19 +0000 (09:47 +0000)]
restore ICE watchpoint registers when the *last* software breakpoint is removed

git-svn-id: svn://svn.berlios.de/openocd/trunk@2646 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> The Stellaris eval boards don't have TRST signal...
oharboe [Fri, 28 Aug 2009 06:53:35 +0000 (06:53 +0000)]
David Brownell <david-b@pacbell.net> The Stellaris eval boards don't have TRST signals, so
defining ntrst_delay is pointless; don't.

At least the LM3S3748 eval board doesn't need nsrst_delay
either; remove that too.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2645 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> ARM disassembly support for about five dozen...
oharboe [Fri, 28 Aug 2009 06:52:08 +0000 (06:52 +0000)]
David Brownell <david-b@pacbell.net> ARM disassembly support for about five dozen non-Thumb instructions
that were added after ARMv5TE was defined:

 - ARMv5J "BXJ" (for Java/Jazelle)
 - ARMv6 "media" instructions (for OMAP2420, i.MX31, etc)

Compile-tested.  This might not set up the simulator right for the
ARMv6 single step support; only BXJ branches though, and docs to
support Jazelle branching are non-public (still, sigh).

ARMv6 instructions known to be mis-handled by this disassembler
include:  UMAAL, LDREX, STREX, CPS, SETEND, RFE, SRS, MCRR2, MRRC2

git-svn-id: svn://svn.berlios.de/openocd/trunk@2644 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoarm11 hardware step using simulation + breakpoint. Use "hardware_step enable" command...
oharboe [Thu, 27 Aug 2009 10:37:01 +0000 (10:37 +0000)]
arm11 hardware step using simulation + breakpoint. Use "hardware_step enable" command to revert to hardware stepping. Ideally we could retire the "hardware_step enable" command once we no longer believe it to be necessary.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2643 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoarm11 single stepping wip - at least we know the next PC now
oharboe [Thu, 27 Aug 2009 07:37:07 +0000 (07:37 +0000)]
arm11 single stepping wip - at least we know the next PC now

git-svn-id: svn://svn.berlios.de/openocd/trunk@2642 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoarm11 single stepping wip
oharboe [Thu, 27 Aug 2009 07:35:47 +0000 (07:35 +0000)]
arm11 single stepping wip

git-svn-id: svn://svn.berlios.de/openocd/trunk@2641 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agorefactor arm simulator to allow arm11 code to use it as well - no observable changes...
oharboe [Thu, 27 Aug 2009 06:50:36 +0000 (06:50 +0000)]
refactor arm simulator to allow arm11 code to use it as well - no observable changes otherwise.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2640 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agosome arm11 stuff that isn't done yet.
oharboe [Wed, 26 Aug 2009 19:27:33 +0000 (19:27 +0000)]
some arm11 stuff that isn't done yet.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2639 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> cortex...
oharboe [Wed, 26 Aug 2009 19:25:44 +0000 (19:25 +0000)]
Matt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org>  cortex-a8: Wait for the CPU to be halted/started

With DCCR we are asking the CPU to halt, we should wait until
the CPU has halted before proceeding with the operation.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2638 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Print...
oharboe [Wed, 26 Aug 2009 19:24:45 +0000 (19:24 +0000)]
Matt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org>  Print the value that the method didn't like

git-svn-id: svn://svn.berlios.de/openocd/trunk@2637 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Only...
oharboe [Wed, 26 Aug 2009 19:23:35 +0000 (19:23 +0000)]
Matt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Only dap_ap_select when we are going to do a memory access
in the fast reg case.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2636 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> cortex-a8: Copy some more registers from the documentation
oharboe [Wed, 26 Aug 2009 19:22:28 +0000 (19:22 +0000)]
Matt Hsu <matt@0xlab.org> cortex-a8: Copy some more registers from the documentation

git-svn-id: svn://svn.berlios.de/openocd/trunk@2635 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> cortex_a8_exec_opcode is writing the ARM instruction into
oharboe [Wed, 26 Aug 2009 19:21:26 +0000 (19:21 +0000)]
Matt Hsu <matt@0xlab.org> cortex_a8_exec_opcode is writing the ARM instruction into
the ITR register but it will only be executed when the DSCR[13]
bit is set. The documentation is a bit weird as it classifies
the DSCR as read-only but the pseudo code is writing to it as
well. This is working on a beagleboard.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2634 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> Wait for the DTRRX to be full before reading it. Remove...
oharboe [Wed, 26 Aug 2009 19:20:25 +0000 (19:20 +0000)]
Matt Hsu <matt@0xlab.org> Wait for the DTRRX to be full before reading it. Remove the trans_mode change as it is done in the mem_ap_read_atomic_u32 function.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2633 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMatt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Before...
oharboe [Wed, 26 Aug 2009 19:16:08 +0000 (19:16 +0000)]
Matt Hsu <matt@0xlab.org> and Holger Hans Peter Freyther <zecke@selfish.org> Before executing a new instruction wait for the previous
instruction to be finished. This comes from the pseudo code
of the cortex a8 trm.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2632 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Fix segv in jtag_examine_chain(): exit loop...
oharboe [Wed, 26 Aug 2009 19:06:56 +0000 (19:06 +0000)]
David Brownell <david-b@pacbell.net> Fix segv in jtag_examine_chain(): exit loop on no-tap.  Keep
"next iteration" step with the rest of the loop overhead.

Cleanup:  remove spurious whitespace, and an overlong line;
only assign "tap->hasidcode" once.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2631 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoadded missing check on jtag_execute
oharboe [Wed, 26 Aug 2009 10:13:51 +0000 (10:13 +0000)]
added missing check on jtag_execute

git-svn-id: svn://svn.berlios.de/openocd/trunk@2630 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoRemove bogus "BUG:". If the PC is pointing to an invalid instruction, then simulation...
oharboe [Wed, 26 Aug 2009 10:03:54 +0000 (10:03 +0000)]
Remove bogus "BUG:". If the PC is pointing to an invalid instruction, then simulation will fail. This is expected.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2629 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoreduce arm11 output noise
oharboe [Wed, 26 Aug 2009 08:32:03 +0000 (08:32 +0000)]
reduce arm11 output noise

git-svn-id: svn://svn.berlios.de/openocd/trunk@2628 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMichael Schwingen <rincewind@discworld.dascon.de> news about xscale
oharboe [Wed, 26 Aug 2009 07:11:16 +0000 (07:11 +0000)]
Michael Schwingen <rincewind@discworld.dascon.de> news about xscale

git-svn-id: svn://svn.berlios.de/openocd/trunk@2627 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Clock updates/fixes for the Stellaris flash...
oharboe [Wed, 26 Aug 2009 06:26:29 +0000 (06:26 +0000)]
David Brownell <david-b@pacbell.net> Clock updates/fixes for the Stellaris flash driver:

 - Bugfixes:
   * internal osc: it's *12* MHz (not 15 MHz) on _current_ chips
      + except new Tempest parts where it's 16 MHz (and calibrated!)
      + or some old Sandstorm ones, where 15 MHz was valid
   * crystal config:
      + read and use the crystal config, don't assume 6 MHz
      + know when that field is 4 bits vs 5
   * an RCC2 register may be overriding the original RCC
      + more clock source options
      + bigger dividers
      + fractional dividers on Tempest (NYET handled)
   * there's a 30 KHz osc on newer chips (for deep sleep)
   * there's a 32768 Hz osc on newer chips (for hibernation)

 - Cosmetic
   * say "rev A0" not "vA.0", to match vendor docs
   * don't always report master clock as an "estimate":
      + give the error bound if it's approximate, like "±30%"
      + else don't say anything
   * fix whitespace and caps in some messages
   * these are not AT91SAM chips!!

Those clock issues might explain problems sometimes reported when
writing to Stellaris flash banks; they affect write timings.

That 12-vs-15 MHz issue is problematic; there's no consolidated doc
showing which chips (and revs!) have which internal oscillator speed.
It's clear that only older silicon had the faster-and-less-accurate
flavor.  What's less clear is which chips are "old" like that.

Lightly tested, on a DustDevil part.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2626 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Various updates to 0.3.0 NEWS
oharboe [Tue, 25 Aug 2009 20:03:35 +0000 (20:03 +0000)]
David Brownell <david-b@pacbell.net> Various updates to 0.3.0 NEWS

git-svn-id: svn://svn.berlios.de/openocd/trunk@2625 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Tweak disassembly commands:
oharboe [Tue, 25 Aug 2009 20:02:19 +0000 (20:02 +0000)]
David Brownell <david-b@pacbell.net> Tweak disassembly commands:

 For ARMv4/ARMv5:
  - better command parameter error checking
  - don't require an instruction count; default to one
  - recognize thumb function addresses
  - make function static
  - shorten some too-long lines
 For Cortex-M3:
  - don't require an instruction count; default to one

With the relevant doc updates.
---
Nyet done:  invoke the thumb2 disassembler on v4/v5,
to better handle branch instructions.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2624 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> More jtag_add_reset() cleanup:
oharboe [Tue, 25 Aug 2009 19:59:55 +0000 (19:59 +0000)]
David Brownell <david-b@pacbell.net> More jtag_add_reset() cleanup:

Unify the handling of the req_srst parameter, and rip out a
large NOP branch and its associated FIXME.  (There didn't seem
to be anything that needs fixing; but that was unclear since
the constraints were scattered all over the place not unified.)

git-svn-id: svn://svn.berlios.de/openocd/trunk@2623 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> More jtag_add_reset() cleanup:
oharboe [Tue, 25 Aug 2009 19:58:06 +0000 (19:58 +0000)]
David Brownell <david-b@pacbell.net> More jtag_add_reset() cleanup:

Unify the handling of the req_tlr_or_trst parameter.  Basically,
JTAG TMS+TCK ops ("TLR") is always used ... unless TRST is a safe
option in this system configuration.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2622 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Some jtag_add_reset() cleanup:
oharboe [Tue, 25 Aug 2009 19:55:32 +0000 (19:55 +0000)]
David Brownell <david-b@pacbell.net> Some jtag_add_reset() cleanup:

 - Track whether TRST and/or SRST actually change:

    * If they're not changing, don't ask the JTAG adapter to do anything!
      (JTAG TCK/TMS ops might still be used to enter TAP_RESET though.)
    * Don't change their recorded values until after the adapter says it
      did so ... so fault paths can't leave corrupt state.
    * Detect and report jtag_execute_queue() failure mode
    * Only emit messages saying what really changed; this includes adding
      an omitted "deasserted TRST" message.
    * Only apply delays after deasserting SRST/TRST if we *DID* deassert!

 - Messages say "TLR" not "RESET", to be less confusing; there are many
   kinds of reset.  (Though "TLR" isn't quite ideal either, since it's
   the name of the TAP state being entered by TMS+TCK or TRST; it's at
   least non-ambiguous in context.)

So the main effect is to do only the work this routine was told to do;
and to have debug messaging make more sense.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2621 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net> Accomodate targets which don't support various...
oharboe [Tue, 25 Aug 2009 19:52:02 +0000 (19:52 +0000)]
David Brownell <david-b@pacbell.net> Accomodate targets which don't support various target-specific
reset operations.  Maybe they can't; or it's a "not yet" thing.

Note that the assert/deassert operations can't yet trigger for
OMAP3 because resets currently include JTAG reset in all cases,
resetting the ICEpick and thus disabling the TAP for Cortex-A8.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2620 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMichael Schwingen <rincewind@discworld.dascon.de> fix previous doc patch
oharboe [Tue, 25 Aug 2009 13:00:45 +0000 (13:00 +0000)]
Michael Schwingen <rincewind@discworld.dascon.de> fix previous doc patch

git-svn-id: svn://svn.berlios.de/openocd/trunk@2619 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years ago- fix build warnings
ntfreak [Tue, 25 Aug 2009 12:19:44 +0000 (12:19 +0000)]
- fix build warnings
- add svn props to recently added files armv7a.[ch]

git-svn-id: svn://svn.berlios.de/openocd/trunk@2618 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMichael Schwingen <rincewind@discworld.dascon.de> a small CFI cleanup
oharboe [Tue, 25 Aug 2009 08:21:11 +0000 (08:21 +0000)]
Michael Schwingen <rincewind@discworld.dascon.de> a small CFI cleanup

git-svn-id: svn://svn.berlios.de/openocd/trunk@2617 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agostrange.... the code build and links w/Linux GCC target but fails w/arm-elf. The...
oharboe [Tue, 25 Aug 2009 07:17:19 +0000 (07:17 +0000)]
strange.... the code build and links w/Linux GCC target but fails w/arm-elf. The code was clearly broken as it was missing two extern's in the .h file...

git-svn-id: svn://svn.berlios.de/openocd/trunk@2616 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoFerdinand Postema <ferdinand@postema.eu> fix warnings
oharboe [Tue, 25 Aug 2009 07:14:05 +0000 (07:14 +0000)]
Ferdinand Postema <ferdinand@postema.eu> fix warnings

git-svn-id: svn://svn.berlios.de/openocd/trunk@2615 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoFerdinand Postema <ferdinand@postema.eu> increase reset delay to fix regression from...
oharboe [Tue, 25 Aug 2009 07:12:57 +0000 (07:12 +0000)]
Ferdinand Postema <ferdinand@postema.eu> increase reset delay to fix regression from 2600 to 2604

git-svn-id: svn://svn.berlios.de/openocd/trunk@2614 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoMichael Schwingen <rincewind@discworld.dascon.de> The attached patch adds a "xscale...
oharboe [Tue, 25 Aug 2009 07:09:48 +0000 (07:09 +0000)]
Michael Schwingen <rincewind@discworld.dascon.de> The attached patch adds a "xscale vector_table" command that allows to set
the values that are written in the mini-IC (plus documentation updates that
describe why this is needed).

git-svn-id: svn://svn.berlios.de/openocd/trunk@2613 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoAudrius Urmanavičius <didele.deze@gmail.com> Latest source (R2606) does not compile...
oharboe [Tue, 25 Aug 2009 07:04:25 +0000 (07:04 +0000)]
Audrius Urmanavičius <didele.deze@gmail.com> Latest source (R2606) does not compile under Windows+Cygwin - fails with error about possibly uninitialized use of variable 'ch'.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2612 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoBrian Findlay <findlaybrian@gmail.com> finalize mini2440.cfg
oharboe [Tue, 25 Aug 2009 07:02:50 +0000 (07:02 +0000)]
Brian Findlay <findlaybrian@gmail.com> finalize mini2440.cfg

git-svn-id: svn://svn.berlios.de/openocd/trunk@2611 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agouse cortex_a8 instead of cortex_m3
oharboe [Tue, 25 Aug 2009 06:59:42 +0000 (06:59 +0000)]
use cortex_a8 instead of cortex_m3

git-svn-id: svn://svn.berlios.de/openocd/trunk@2610 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell The rest of the Cortex-A8 support from Magnus: replace the previous
oharboe [Tue, 25 Aug 2009 06:58:34 +0000 (06:58 +0000)]
David Brownell The rest of the Cortex-A8 support from Magnus: replace the previous
nonfunctional cortex_a8 code with something that at least basically
works (for halt/step/resume, without MMU) even if it is incomplete.
(With tweaks from Øyvind, and cleanup from Dave.)

This code has mainly been developed and tested against R1606, it has
been built and tested against R2294 where it runs but step and resume
commands are broken due to regression (which should be fixed now).

This code is really written for OMAP3530.  It doesn't identify debug
resources using generic DAP calls to scan the ROM table, or perform
topology detection.  The OMAP3530 DAP exposes two memory access ports:

 - Port #0 is connected to L3 interconnect (the main bus) with
   passthrough to the L4 EMU bus ... so it will be used for most
   memory accesses.

 - Port #1 is connected to a dedicated debug bus (L4 EMU), with
   access to L4 Wakeup, and holds the ROM table ... so it must
   be used for most debug and control operations.

The are some defines to handle this in cortex_a8.c, which should be
replaced with more general code.  Having access to another Cortex-A8
implementation would help get that right.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2609 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell Subset of Cortex-A8 support from Magnus: create an armv7a file
oharboe [Tue, 25 Aug 2009 06:57:26 +0000 (06:57 +0000)]
David Brownell Subset of Cortex-A8 support from Magnus:  create an armv7a file
and seed it with DAP access support using the current ADIv5 code.
(With tweaks and cleanup from Øyvind and Dave.)

The ARMv7-AR architecture manual is not publicly available (even
in subset form like the ARMv7-M spec), so it's hard to distinguish
between the Cortex-A8 implementation and the ARMv7-A architecture.

The register set presumably is architectural, and so it's stored
here; it's like earlier ARMs, with small additions.  Ditto the
instruction set, though Thumb2 support is used (extending Thumb
support from ARMv6 with more 32-bit instructions) and there's this
ThumbEE thing too.  There is a new "debug monitor" mode, not yet
fully addressed here, to support debugging in environments (like
motor control) where halting debug mode is inadvisable.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2608 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoadd missing isblank() for eCos
oharboe [Tue, 25 Aug 2009 06:45:40 +0000 (06:45 +0000)]
add missing isblank() for eCos

git-svn-id: svn://svn.berlios.de/openocd/trunk@2607 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoSteve Grubb <sgrubb@redhat.com> fix various and sundry leaks
oharboe [Mon, 24 Aug 2009 07:53:46 +0000 (07:53 +0000)]
Steve Grubb <sgrubb@redhat.com> fix various and sundry leaks

git-svn-id: svn://svn.berlios.de/openocd/trunk@2606 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoJonas Horberg <jhorberg@sauer-danfoss.com>
oharboe [Mon, 24 Aug 2009 07:26:05 +0000 (07:26 +0000)]
Jonas Horberg <jhorberg@sauer-danfoss.com>
The trunk is currently broken for interfaces without
the speed_div function (interface specific clock speed
value to kHz conversion). Example: parport.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2605 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoPieter Conradie <Pieter.Conradie@psitek.com> shuffle things around to the right spots...
oharboe [Fri, 21 Aug 2009 11:23:24 +0000 (11:23 +0000)]
Pieter Conradie <Pieter.Conradie@psitek.com> shuffle things around to the right spots. Should have been done in previous commit.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2604 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agonative line endings
oharboe [Fri, 21 Aug 2009 09:01:00 +0000 (09:01 +0000)]
native line endings

git-svn-id: svn://svn.berlios.de/openocd/trunk@2603 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoPieter Conradie <Pieter.Conradie@psitek.com> Scripts for Atmel AT91SAM7S256 and AT91S...
oharboe [Fri, 21 Aug 2009 08:58:49 +0000 (08:58 +0000)]
Pieter Conradie <Pieter.Conradie@psitek.com> Scripts for Atmel AT91SAM7S256 and AT91SAM9260

git-svn-id: svn://svn.berlios.de/openocd/trunk@2602 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoFlorian Boor <florian.boor@kernelconcepts.de> fixes a segfault executing commands...
oharboe [Fri, 21 Aug 2009 06:22:01 +0000 (06:22 +0000)]
Florian Boor <florian.boor@kernelconcepts.de> fixes a segfault executing commands from the web interface using the
"Run Command" tab.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2601 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoPiotr Ziecik <kosmo@semihalf.com> This patch adds handling blank characters between...
oharboe [Thu, 20 Aug 2009 08:55:34 +0000 (08:55 +0000)]
Piotr Ziecik <kosmo@semihalf.com> This patch adds handling blank characters between hex digits in
SVF file, making OpenOCD compatible with files generated by
Altera Quatrus II 9.0.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2600 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years ago- remove enable-ft2232-highspeed configure option, high speed ftdi support is now...
ntfreak [Thu, 20 Aug 2009 07:54:49 +0000 (07:54 +0000)]
- remove enable-ft2232-highspeed configure option, high speed ftdi support is now detected during the configure stage
- warning now issued if high speed ftdi device found and openocd was built using an old driver

git-svn-id: svn://svn.berlios.de/openocd/trunk@2599 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>More Thumb2 disassembly:
oharboe [Thu, 20 Aug 2009 07:15:46 +0000 (07:15 +0000)]
David Brownell <david-b@pacbell.net>More Thumb2 disassembly:

  ARMv7-M: A5.3.6 Load/store dual or exclusive, table branch

GCC will generate the table branch instructions, usually with inlined
tables that will confuse this disassembler.  LDREX and STREX are not
issued by GCC without inline assembly.

This means all Thumb2 instructions implemented by Cortex-M3 can now
be disassembled.  Cortex-A8 cores support more Thumb2 instructions,
but most of those aren't yet publicly documented.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2598 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoJonas Horberg [jhorberg@sauer-danfoss.com]:
ntfreak [Wed, 19 Aug 2009 08:39:06 +0000 (08:39 +0000)]
Jonas Horberg [jhorberg@sauer-danfoss.com]:
Fix small typo in ftd2xx type detection

git-svn-id: svn://svn.berlios.de/openocd/trunk@2597 b42882b7-edfa-0310-969c-e2dbd0fdcd60

15 years agoDavid Brownell <david-b@pacbell.net>Fix some command helptext:
oharboe [Wed, 19 Aug 2009 06:31:44 +0000 (06:31 +0000)]
David Brownell <david-b@pacbell.net>Fix some command helptext:

 - spell "address" right
 - list bp/wp params as optional

And make those source lines wrap at sane margins.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2596 b42882b7-edfa-0310-969c-e2dbd0fdcd60