David Brownell [Wed, 7 Oct 2009 16:16:39 +0000 (09:16 -0700)]
Merge branch 'master' of ssh://dbrownell@openocd.git.sourceforge.net/gitroot/openocd/openocd
dbrownell [Wed, 7 Oct 2009 16:15:21 +0000 (16:15 +0000)]
Remove pointless "target library" chapter.
It had a very little bit of content; move that to the more extensive
chapter on config file guidelines, and give more current "ls" output
to show the available library code.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2820
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 7 Oct 2009 15:56:11 +0000 (15:56 +0000)]
Note bug in handling of variables through command line parameters.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2819
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 7 Oct 2009 15:31:33 +0000 (15:31 +0000)]
Updates for "reset_config":
- revert to previous default: don't talk JTAG during SRST
- add "srst_nogates" flag, the converse of "srst_gates_jtag"
- with no args, display the current configuration
And update the User's Guide text with bullet lists to be a bit more clear.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2818
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 12:21:58 +0000 (12:21 +0000)]
first stab at imx35 reset init script
git-svn-id: svn://svn.berlios.de/openocd/trunk@2817
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 12:20:06 +0000 (12:20 +0000)]
remove recrusive reset invocation from reset init callback
git-svn-id: svn://svn.berlios.de/openocd/trunk@2816
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 12:19:17 +0000 (12:19 +0000)]
add timeouts and fix syntax error handling of mrc/mcr commands.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2815
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 12:05:37 +0000 (12:05 +0000)]
add timeouts and fix syntax error handling of mrc/mcr commands.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2814
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 11:03:56 +0000 (11:03 +0000)]
increase pause before reboot so web interface remains responsive when issuing a reboot of zy1000
git-svn-id: svn://svn.berlios.de/openocd/trunk@2813
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 11:03:01 +0000 (11:03 +0000)]
Do not check ir capture if there is no IDCODE
git-svn-id: svn://svn.berlios.de/openocd/trunk@2812
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 7 Oct 2009 06:53:44 +0000 (06:53 +0000)]
1.55 snapshot
git-svn-id: svn://svn.berlios.de/openocd/trunk@2810
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 7 Oct 2009 05:43:05 +0000 (05:43 +0000)]
Change version labels to work better with GIT
- The guess-rev.sh script is now a tweaked version of "setlocalversion" as
seen in Linux, U-Boot, and various other projects. When it finds source
control support (git, hg, svn) it uses IDs from there. Else (specific
to this project) it reports itself as "-snapshot", e.g. from gitweb.
I verified this new "guess-rev.sh" script runs under Cygwin.
- Also update the generic version strings to be like "0.3.0-dev" (during
development) instead of the very long "0.3.0-in-development". These also
show up in the PDF docs. For better tracking, we might eventually change
these strings to include the version IDs too.
- Change the startup banner version strings so they include the guess-rev
output. Development and release versions with GIT will be like
Open On-Chip Debugger
0.3.0-dev-00282-g7191a4f-dirty (2009-10-05-20:57)
Open On-Chip Debugger 0.3.0 (2009-10-05-20:57)
instead of the previous SVN-specific (even when using git-svn!)
Open On-Chip Debugger 0.3.0-in-development (2009-10-05-01:39) svn:exported
Open On-Chip Debugger 0.3.0 (2009-10-05-01:39) Release
git-svn-id: svn://svn.berlios.de/openocd/trunk@2809
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
David Brownell [Tue, 6 Oct 2009 22:58:06 +0000 (15:58 -0700)]
Merge branch 'master' of ssh://dbrownell@openocd.git.sourceforge.net/gitroot/openocd/openocd
dbrownell [Tue, 6 Oct 2009 22:56:52 +0000 (22:56 +0000)]
Add basic support for DM6446 EVM board.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2808
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 6 Oct 2009 22:55:46 +0000 (22:55 +0000)]
Dragonite has the same EICE affliction as feroceon.
From: Nicolas Pitre <nico@fluxnic.net>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2807
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 6 Oct 2009 22:55:04 +0000 (22:55 +0000)]
Dragonite target script
From: Nicolas Pitre <nico@fluxnic.net>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2806
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
David Brownell [Tue, 6 Oct 2009 15:29:23 +0000 (08:29 -0700)]
Merge branch 'master' of ssh://dbrownell@openocd.git.sourceforge.net/gitroot/openocd/openocd
oharboe [Tue, 6 Oct 2009 08:10:57 +0000 (08:10 +0000)]
Introduced jtag_init and "jtag arp_init" to allow target scripts more control over how OpenOCD starts up and initializes the target.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2805
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 6 Oct 2009 08:10:05 +0000 (08:10 +0000)]
stop using targetnum
git-svn-id: svn://svn.berlios.de/openocd/trunk@2804
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 6 Oct 2009 05:28:30 +0000 (05:28 +0000)]
Take "patches" out of .gitignore ... Win32 is case-crazy
git-svn-id: svn://svn.berlios.de/openocd/trunk@2803
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
David Brownell [Mon, 5 Oct 2009 23:49:51 +0000 (16:49 -0700)]
Merge branch 'master' of ssh://dbrownell@openocd.git.sourceforge.net/gitroot/openocd/openocd
dbrownell [Mon, 5 Oct 2009 23:45:14 +0000 (23:45 +0000)]
Add initial ".gitignore".
git-svn-id: svn://svn.berlios.de/openocd/trunk@2802
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
David Brownell [Mon, 5 Oct 2009 08:27:43 +0000 (01:27 -0700)]
Merge branch 'master' of ssh://dbrownell@openocd.git.sourceforge.net/gitroot/openocd/openocd
dbrownell [Mon, 5 Oct 2009 08:23:33 +0000 (08:23 +0000)]
Improve jtag_validate_ircapture() diagnostics.
Bugfix the error message so it shows the disliked value, and add
a debug message showing each TAP's IR capture value, all N bits.
This just changes diagnostics ... it still ignores the parameters
given to us at TAP declaration time.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2801
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 5 Oct 2009 08:20:28 +0000 (08:20 +0000)]
Add a new JTAG "setup" event; use for better DaVinci ICEpick support.
The model is that this fires after scanchain verification, when it's
safe to call "jtag tapenable $TAPNAME". So it will fire as part of
non-error paths of "init" and "reset" command processing. However it
will *NOT* trigger during "jtag_reset" processing, which skips all
scan chain verification, or after verification errors.
ALSO:
- switch DaVinci chips to use this new mechanism
- log TAP activation/deactivation, since their IDCODEs aren't verified
- unify "enum jtag_event" scripted event notifications
- remove duplicative JTAG_TAP_EVENT_POST_RESET
git-svn-id: svn://svn.berlios.de/openocd/trunk@2800
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 5 Oct 2009 08:18:17 +0000 (08:18 +0000)]
Minor cleanup to ARM926 debug entry:
- don't needlessly export this function
- handle "case 0" debug method-of-entry better (silent by default)
The "case 0" is a valid debug entry mode so it doesn't deserve the
warning int now gets. But it probably means that OpenOCD confused
itself somehow; or that it confused the ARM9EJS target.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2799
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 5 Oct 2009 08:14:57 +0000 (08:14 +0000)]
Update the NEWS file to cover more of the user-visible changes.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2798
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 5 Oct 2009 08:13:00 +0000 (08:13 +0000)]
Get rid of needless OMAP and Davinci target config options
so they provide better examples and are easier to maintain.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2797
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:52:02 +0000 (16:52 +0000)]
Updated reset event handling in omap3530 cfg
git-svn-id: svn://svn.berlios.de/openocd/trunk@2796
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:50:42 +0000 (16:50 +0000)]
It is not possible to invalidate I-Cache on memory writes while the target is running
git-svn-id: svn://svn.berlios.de/openocd/trunk@2795
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:44:16 +0000 (16:44 +0000)]
Make sure that DSCR_DTR_RX is not full before writing
git-svn-id: svn://svn.berlios.de/openocd/trunk@2794
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:39:50 +0000 (16:39 +0000)]
More error reporting in Cortex_a8 execute_opcode
git-svn-id: svn://svn.berlios.de/openocd/trunk@2793
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:37:22 +0000 (16:37 +0000)]
Added asser_reset and deassert_reset for cortex_a8
git-svn-id: svn://svn.berlios.de/openocd/trunk@2792
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 2 Oct 2009 16:36:03 +0000 (16:36 +0000)]
Added asser_reset and deassert_reset for cortex_a8
git-svn-id: svn://svn.berlios.de/openocd/trunk@2791
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Fri, 2 Oct 2009 09:19:03 +0000 (09:19 +0000)]
Minor ETB and ETM bugfixes and doc updates
- ETB
* report _actual_ hardware status, not just expected status
* add a missing diagnostic on a potential ETB setup error
* prefix any diagnostics with "ETB"
- ETM
* make "etm status" show ETM hardware status too, instead of
just traceport status (which previously was fake, sigh)
- Docs
* flesh out "etm tracemode" docs a bit
* clarify "etm status" ... previously it was traceport status
* explain "etm trigger_percent" as a *traceport* option
ETM+ETB tracing still isn't behaving, but now I can see that part of
the reason is that the ETB turns itself off almost immediately after
being enabled, and before collecting any data.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2790
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Thu, 1 Oct 2009 17:39:13 +0000 (17:39 +0000)]
ARMv7A: Report fault status registers when in Abort state
git-svn-id: svn://svn.berlios.de/openocd/trunk@2789
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:52 +0000 (23:20 +0000)]
Update release process documentation.
- Improve and clarify the wording of the introduction.
- Add section on version taggging.
- Some other minor corrections.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2788
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:43 +0000 (23:20 +0000)]
Improve release script version tag management commands.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2787
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:36 +0000 (23:20 +0000)]
Add numeric version tag support to release script.
The release process itself does not use this support yet, but it allows
packagers to automate the process of managing their own tags, if they
patch the source code before releasing binaries. The release processes
should be revised to incorporate this feature to support -rc packages.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2786
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:20 +0000 (23:20 +0000)]
Improve release script version handling commands.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2785
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:13 +0000 (23:20 +0000)]
Add workaround to release script to update source code URL keyword.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2784
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:20:06 +0000 (23:20 +0000)]
Document and automate signature creation for the release archives.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2783
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
zwelch [Wed, 30 Sep 2009 23:19:53 +0000 (23:19 +0000)]
Fix release script bugs after experience from 0.2.0:
- The NEWS step failed due to an empty commit comment.
- The final release step would have failed, because the steps to switch
from the secure to insecure repository (and back again) require both
switch and a URL relocation steps
git-svn-id: svn://svn.berlios.de/openocd/trunk@2782
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 30 Sep 2009 23:02:15 +0000 (23:02 +0000)]
Remove annoying EOL whitespace (again, sigh).
git-svn-id: svn://svn.berlios.de/openocd/trunk@2781
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Wed, 30 Sep 2009 17:24:43 +0000 (17:24 +0000)]
Add DSCR_DTR_RX_FULL bit define
git-svn-id: svn://svn.berlios.de/openocd/trunk@2780
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 30 Sep 2009 05:40:40 +0000 (05:40 +0000)]
strip gdb config options
git-svn-id: svn://svn.berlios.de/openocd/trunk@2779
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 30 Sep 2009 05:37:32 +0000 (05:37 +0000)]
michal smulski <michal.smulski@ooma.com> reset now works
git-svn-id: svn://svn.berlios.de/openocd/trunk@2778
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 19:28:08 +0000 (19:28 +0000)]
Streamline Capture-IR validation code
- Don't issue needless JTAG resets ... only do them after
errors. Normal exit now leaves every TAP in BYPASS.
- Fix an unlikely memory leak on one fault path.
- Remove the oddball limitation that invalid capture LSBs
trigger errors only for TAPs that support IDCODE.
Re the JTAG reset: there are too many of them, and they can
(and do!) change system state. So the needless ones should
get removed. This one was especially pointless.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2777
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 18:30:06 +0000 (18:30 +0000)]
ARM11 command handling fixes
- Commands were supposed to have been "arm11 memwrite ..."
not "memwrite ..."
- Get rid of obfuscatory macros
- Re-alphabetize
- Add docs for "arm11 vcr"
git-svn-id: svn://svn.berlios.de/openocd/trunk@2776
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 18:26:18 +0000 (18:26 +0000)]
Make "-expected-id 0" suppress warnings; not unlike it used to do.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2775
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 18:20:30 +0000 (18:20 +0000)]
Doc updates: add section on target software changes, minor fixes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2774
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 18:08:16 +0000 (18:08 +0000)]
ETM: fix build issue on MinGW.
The Win32 global namespace is rather cluttered...
git-svn-id: svn://svn.berlios.de/openocd/trunk@2773
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 29 Sep 2009 18:06:26 +0000 (18:06 +0000)]
ETB: cleanup needless symbol exports and forward decls.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2772
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 29 Sep 2009 14:24:02 +0000 (14:24 +0000)]
handle single threading
git-svn-id: svn://svn.berlios.de/openocd/trunk@2771
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 29 Sep 2009 14:23:42 +0000 (14:23 +0000)]
reentry assert
git-svn-id: svn://svn.berlios.de/openocd/trunk@2770
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 29 Sep 2009 13:46:26 +0000 (13:46 +0000)]
httpd smoketest info
git-svn-id: svn://svn.berlios.de/openocd/trunk@2769
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Tue, 29 Sep 2009 06:07:50 +0000 (06:07 +0000)]
added t/nsrst_assert_width commands
git-svn-id: svn://svn.berlios.de/openocd/trunk@2768
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 28 Sep 2009 12:22:20 +0000 (12:22 +0000)]
if srst pulls trst, then set state to TAP_RESET.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2767
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 28 Sep 2009 12:13:49 +0000 (12:13 +0000)]
spelling fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@2766
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 28 Sep 2009 04:55:23 +0000 (04:55 +0000)]
Shrink symbols exported from arm9tdmi.c and remove a forward ref.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2765
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 27 Sep 2009 17:08:42 +0000 (17:08 +0000)]
Add list of JTAG adapter drivers with TAP_RESET statemove bug.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2764
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 27 Sep 2009 16:55:52 +0000 (16:55 +0000)]
Update FT2232 driver so that it reliably enters TAP_RESET.
When the OpenOCD server starts up it records its state as TAP_RESET,
even though it could be anything. Then when it starts to examine
the scan chain, it calls jtag_add_tlr() which sees it doesn't have
any work to do, and so it does nothing. This can make the next
operations fail because they start from the wrong TAP state...
Instead of caring about the current recorded state, always enter
TAP_RESET by forcing five clocks with TMS high.
(NOTE: it seems most other JTAG adapter drivers have this same bug.)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2763
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 27 Sep 2009 07:59:10 +0000 (07:59 +0000)]
Don't provide invalid OMAP5912 IR capture value/mask attributes
git-svn-id: svn://svn.berlios.de/openocd/trunk@2762
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 26 Sep 2009 22:08:50 +0000 (22:08 +0000)]
On DM355 EVM board, associate NAND chips with $_TARGETNAME
instead of a target number.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2761
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 26 Sep 2009 22:01:24 +0000 (22:01 +0000)]
Diagnostics tweaks for jtag_examine_chain() failure paths.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2760
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 26 Sep 2009 19:18:42 +0000 (19:18 +0000)]
Updates to the initial scanchain validation code:
- minor bug fixes
- code cleanup
- update comments
- improve diagnostics
- etc
git-svn-id: svn://svn.berlios.de/openocd/trunk@2759
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 26 Sep 2009 19:08:34 +0000 (19:08 +0000)]
Streamline Capture-IR handling and integrity test.
Change the handling of the "-ircapture" and "-irmask" parameters
to be slightly more sensible, given that the JTAG spec describes
what is required, and that we already require that conformance in
one place. IR scan returns some bitstring with LSBs "01".
- First, provide and use default values that satisfy the IEEE spec.
Existing TAP configs will override the defaults, but those parms
are no longer required.
- Second, warn if any TAP gets set up to violate the JTAG spec.
It's likely a bug, but maybe not; else this should be an error.
Improve the related diagnostics to say which TAP is affected.
And associated minor fixes/cleanups to comments and diagnostics.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2758
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Fri, 25 Sep 2009 17:02:59 +0000 (17:02 +0000)]
Update DM355 target config to know about ICEpick.
Still defaults to nonstandard EMU0/EMU1 settings.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2757
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 25 Sep 2009 16:48:15 +0000 (16:48 +0000)]
Michael Hasselberg <mh@open-engineering.de> target configuration files for Toshiba TX09 familiy
git-svn-id: svn://svn.berlios.de/openocd/trunk@2756
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 25 Sep 2009 11:11:39 +0000 (11:11 +0000)]
Try/catch scheme. Typed up the functionality and regression tested.
Ready for discussion and tiny patches that tries out this scheme.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2755
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Thu, 24 Sep 2009 06:34:23 +0000 (06:34 +0000)]
When attaching GDB to OpenOCD, the target state is no longer affected.
Added gdb_sync feature that allows GDB to sync up to target state.
Issue "monitor gdb_sync" and the next stepi, will return immediately
with updated register values to GDB.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2754
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 23 Sep 2009 22:03:41 +0000 (22:03 +0000)]
Start handling the (second) SRST stage of reset better:
make sure that when there are two or more targets, their
various pre/post event reports are correctly ordered.
Previously, only the first target always saw its "pre"
method before SRST was asserted or deasserted.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2753
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 23 Sep 2009 21:52:40 +0000 (21:52 +0000)]
When setting up an ETM, cache its ETM_CONFIG register. Then
only expose the registers which are actually present. They
could be missing for two basic reasons:
- This version might not support them at all; e.g. ETMv1.1
doesn't have some control/status registers. (My sample of
ARM9 boards shows all with ETMv1.3 support, FWIW.)
- The configuration on this chip may not populate as many
registers as possible; e.g. only two data value comparators
instead of eight.
Includes a bugfix in the "etm info" command: only one of the
two registers is missing on older silicon, so show the first
one before bailing.
Update ETM usage docs to explain that those registers need to be
written to configure what is traced, and that some ETM configs
are not yet handled. Also, give some examples of the kinds of
constrained trace which could be arranged.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2752
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 23 Sep 2009 09:16:00 +0000 (09:16 +0000)]
Start cleaning up ETM register handling. On one ARM926 ETM+ETB
system, removes 20 non-existent registers ... but still includes
over 45 (!) ETM registers which don't even exist there ...
- Integrate the various tables to get one struct per register
- Get rid of needless per-register dynamic allocation
- Double check list of registers:
* Remove sixteen (!) non-registers for data comparators
* Remove four registers that imply newer ETM than we support
* Change some names to match current architecture specs
- Handle more register info
* some are write-only
* some are read-only
* record which versions have them, just in case
- Reorganize the registers to facilitate removing the extras
* group e.g. comparator/counter #N registers together
* add and use lookup-by-ID
git-svn-id: svn://svn.berlios.de/openocd/trunk@2751
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Wed, 23 Sep 2009 07:49:38 +0000 (07:49 +0000)]
Initial ETM cleanups. Most of these are cosmetic:
- Add a header comment
- Line up the ETM context struct, pack it a bit
- Remove unused context_id (this doesn't support ETMv2 yet)
- Make most functions static
- Remove unused string table and other needless lines of code
- Correct "tracemode" helptext
Also provide and use an etm_reg_lookup() to find entries in the ETM
register cache. This will help cope with corrected contents of that
cache, which doesn't include entires for non-existent registers.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2750
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Wed, 23 Sep 2009 07:14:03 +0000 (07:14 +0000)]
Nico Coesel <ncoesel@dealogic.nl> fix warnings. . I'm wondering why these
didn't turn up earlier. Is everyone still using gcc 3.x? Or is the x86
version of gcc 4.x much more relaxed?
git-svn-id: svn://svn.berlios.de/openocd/trunk@2749
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 22 Sep 2009 15:39:23 +0000 (15:39 +0000)]
- fix build issue under win32 (cygwin/msys) from svn r2746
git-svn-id: svn://svn.berlios.de/openocd/trunk@2748
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
ntfreak [Tue, 22 Sep 2009 14:50:46 +0000 (14:50 +0000)]
- add missing svn props from previous commit
git-svn-id: svn://svn.berlios.de/openocd/trunk@2747
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Tue, 22 Sep 2009 05:39:06 +0000 (05:39 +0000)]
Make it easier to erase or protect through to the end
of a (NOR) flash chip: allow passing "last" as an alias
for the number of the last sector.
Improve several aspects of error checking while we're at it.
From: Johnny Halfmoon <jhalfmoon@milksnot.com>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2746
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 21:35:56 +0000 (21:35 +0000)]
Update presentation of TAP events and tap enable/disable.
Highlight that the "post-reset" event kicks in before the
scan chain is validated, which limits what can be done
in a post-reset handler.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2745
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 18:52:45 +0000 (18:52 +0000)]
Remove annoying end-of-line whitespace from doc/* files.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2744
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 18:48:22 +0000 (18:48 +0000)]
Remove annoying end-of-line whitespace from tcl/* files
git-svn-id: svn://svn.berlios.de/openocd/trunk@2743
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 18:40:55 +0000 (18:40 +0000)]
Remove annoying end-of-line whitespace from most src/*
files; omitted src/httpd
git-svn-id: svn://svn.berlios.de/openocd/trunk@2742
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Mon, 21 Sep 2009 09:25:52 +0000 (09:25 +0000)]
Ethan Eade <ethan@evolution.com> board config script for Cogent CSB732 i.MX35 (arm1136)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2741
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 00:37:58 +0000 (00:37 +0000)]
Ensure that DaVinci chips can't start with a too-fast JTAG clock.
It can be sped up later, once it's known the PLLs are active.
Note that modern tools from TI all use adaptive clocking; and
that if that's done with OpenOCD, "too fast" is also a non-issue.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2740
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Mon, 21 Sep 2009 00:04:35 +0000 (00:04 +0000)]
Update the jtag-examine_chain() logic to verify that there's no
garbage after the expected data (from the TAPs' BYPASS or IDCODE
registers).
NOTE that there was previously some code that looked like it was
trying to do this ... which didn't work, because it was looping
over the list of expected TAPs, and never checked *after* that
list completed! That could hide some *nasty* reset issues...
Also replace a now-obsolete scanchain length test with one that
behaves correctly; and update reporting of unexpected IDCODEs.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2739
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 20 Sep 2009 23:54:13 +0000 (23:54 +0000)]
Enhancement: stm32 flash protection error message
This patch modifies an error message which, in its original state,
I find somewhat unhelpful. So a small hint was added.
Signed-off-by: Johnny Halfmoon <jhalfmoon at milksnot.com>
git-svn-id: svn://svn.berlios.de/openocd/trunk@2738
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 20 Sep 2009 21:17:08 +0000 (21:17 +0000)]
Update the User's Guide to cover the scan chain verification step
done on exit from the config stage, how JTAG clocking issues can
trigger errors there, and how to avoid such problems.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2737
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 20 Sep 2009 07:55:11 +0000 (07:55 +0000)]
Debug message updates:
- Shrink messaging during resets, primarily by getting rid of
"nothing happened" noise that hides *useful* information.
- Improve: the "no IDCODE" message by identifying which tap only
supports BYPASS; and the TAP event strings.
Related minor code updates:
- Remove two needless tests when examining the chain: we know
we have a TAP, and that all TAPs have names.
- Clean up two loops, turning "while"s into "for"s which better
show what's actually being done.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2736
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sun, 20 Sep 2009 07:46:22 +0000 (07:46 +0000)]
Minor regression bugfix for the jtag_tap_handle_event() case
for disabling TAPs. We don't actually know how to make any
JRCs which do that yet; but when we do, this will matter.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2735
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Sat, 19 Sep 2009 20:38:38 +0000 (20:38 +0000)]
Added CPUDBG_WCR_BASE define
git-svn-id: svn://svn.berlios.de/openocd/trunk@2734
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Sat, 19 Sep 2009 14:50:18 +0000 (14:50 +0000)]
Avoid cache invalidation when writing to hardware debug registers
git-svn-id: svn://svn.berlios.de/openocd/trunk@2733
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Sat, 19 Sep 2009 14:47:53 +0000 (14:47 +0000)]
Reduced sleep time after reset
git-svn-id: svn://svn.berlios.de/openocd/trunk@2732
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 19 Sep 2009 06:54:01 +0000 (06:54 +0000)]
Style cleanup for the updated ft2232_add_pathmove().
Indentation, whitespace, line lengths.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2731
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 19 Sep 2009 06:49:40 +0000 (06:49 +0000)]
Minor behavior fixes for the two JTAG reset events (C/internal,
and Tcl/external):
- Reorder so *both* paths (TCK/TMS or TRST) can enable TAPs with
ICEpick ... first C code flags TAPs that got disabled, then call
any Tcl code that might want to re-enable them.
- Always call the C/internal handlers when JTAG operations can be
issued; previously that wasn't done when TRST was used.
Plus some small cleanups (whitespace, strings, better messaging
during debug and on some errors) to reset-related code.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2730
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Sat, 19 Sep 2009 06:42:50 +0000 (06:42 +0000)]
Minor tweaks to description of JTAG adapter/dongle issues.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2729
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
mlu [Fri, 18 Sep 2009 15:11:46 +0000 (15:11 +0000)]
Move Cortex A8 debug access initialisation from omap3530.cfg to cortex_a8.c
git-svn-id: svn://svn.berlios.de/openocd/trunk@2728
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
oharboe [Fri, 18 Sep 2009 07:09:44 +0000 (07:09 +0000)]
remove unused externs
git-svn-id: svn://svn.berlios.de/openocd/trunk@2727
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Fri, 18 Sep 2009 00:11:51 +0000 (00:11 +0000)]
Tweak TCL reset script ... mostly improving descriptions of
the various steps, but also calling [target names] only once.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2726
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
dbrownell [Thu, 17 Sep 2009 19:20:18 +0000 (19:20 +0000)]
Address codereview comment from Steve Grubb <sgrubb@redhat.com>:
avoid a duplicate test.
Plus other cleanup in the same code: be "static", sane line lengths
for source and diagnostics, and fix misleading variable names.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2725
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)