aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-10-23arm9tdmi vector_catch: reserved means "don't use"David Brownell
Bit 5 shouldn't be used. Remove all support for modifying it. Matches the exception vector table, of course ... more than one bootloader uses that non-vector to help distinguish valid boot images from random garbage in flash.
2009-10-23Improve help for arm9 vector_catch.Øyvind Harboe
2009-10-23Remove debug output that could cause compile warnings.Øyvind Harboe
2009-10-23mcr/mrc interface work. Implemented for arm926ejs and arm720t. mcr/mrc ↵Øyvind Harboe
commands added.
2009-10-23Embedded ICE version is now dumped with debug_level 1Øyvind Harboe
2009-10-23jtag: clean up TAP state name handlingDavid Brownell
Some cosmetic cleanup, and switch to a single table mapping between state names and symbols (vs two routines which only share that state with difficulty). Get rid of TAP_NUM_STATES, and some related knowledge about how TAP numbers are assigned. Later on, this will help us get rid of more such hardwired knowlege. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-23SVF: clean up, mostly for TAP state name handlingDavid Brownell
- Use the name mappings all the other code uses: + name-to-state ... needed to add one special case + state-to-name - Improve various diagnostics: + don't complain about a "valid" state when the issue is actually that it must be "stable" + say which command was affected - Misc: + make more private data and code be static + use public DIM() not private dimof() + shorten the affected lines Re the mappings, this means we're more generous in inputs we accept, since case won't matter. Also our output diagnostics will be a smidgeon more informative, saying "RUN/IDLE" not just "IDLE" (emphasizing that there can be side effects). Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-22Ferocion: fix corruption of r0 when resuming Thumb modeNicolas Pitre
The wrong variable (pc instead of r0) was used. Furthermore, someone did cover this error by stupidly silencing the compiler warning that occurred before a dummy void reference to r0 was added to the code. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-22have "reg" command print cache names tooDavid Brownell
When dumping over 100 registers (as on most ARM9 + ETM cores), aid readability by splitting them into logical groups. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-22ETM: rename registers, doc tweaksDavid Brownell
The register names are perversely not documented as zero-indexed, so rename them to match that convention. Also switch to lowercase suffixes and infix numbering, matching ETB and EmbeddedICE usage. Update docs to be a bit more accurate, especially regarding what the "trigger" event can cause; and to split the issues into a few more paragraphs, for clarity. Make "configure" helptext point out that "oocd_trace" is prototype hardware, not anything "real". Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-22disable ZY1000's UART forwarding test code.Øyvind Harboe
2009-10-21mww_phys retired. Replaced by generic mww phys in target.cØyvind Harboe
2009-10-21virt2phys is now implemented by target.c globally, retire target specific ↵Øyvind Harboe
documentation.
2009-10-21retire obsolete mXY_phys commands. Handled by generic memory read/modify ↵Øyvind Harboe
commands and target read/write physical memory callbacks.
2009-10-21read/write physical target fn'sØyvind Harboe
2009-10-21add support for target_read/write_phys_memory callbacks.Øyvind Harboe
2009-10-21Added target_read/write_phys_memory() fn's. mdX/mwX commands updated to ↵Øyvind Harboe
support phys flag to specify bypassing of MMU.
2009-10-21Merge branch 'master' of ↵Øyvind Harboe
ssh://gowinex@openocd.git.sourceforge.net/gitroot/openocd/openocd into HEAD
2009-10-21Retire obsolete and superfluous implementations of virt2phys in each target. ↵Øyvind Harboe
This is done in a polymorphic implementation in target.c
2009-10-21Retire obsolete and superfluous implementations of virt2phys in each target. ↵Øyvind Harboe
This is done in a polymorphic implementation in target.c
2009-10-21First cut at implementing software breakpoints for mmu read only memoryØyvind Harboe
2009-10-21Defined target_write_memory() to be able to handle implementing breakpoints ↵Øyvind Harboe
for read only ram(e.g. MMU write protected.
2009-10-21eCos synthetic target updates.Øyvind Harboe
2009-10-20XSVF: use svf_add_statemove()David Brownell
XSVF improvements: - Layer parts of XSVF directly over SVF, calling svf_add_statemove() instead of expecting jtag_add_statemove() to conform to the SVF/XSVF requirements (which it doesn't). This should improve XSTATE handling a lot; it removes most users of jtag_add_statemove(), and the comments about how it should really do what svf_add_statemove() does. - Update XSTATE logic to be a closer match to the XSVF spec. The main open issue here is (still) that this implementation doesn't know how to build and submit paths from single-state transitions ... but now it will report that error case. - Update the User's Guide to mention the two utility scripts for working with XSVF, and to mention the five extension opcodes. Handling of state transition paths is, overall, still a mess. I think they should all be specified as paths not unlike SVF uses, and compiled to the bitstrings later ... so that we can actually make sense of the paths. (And see the extra clocks, detours through RUN, etc.) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-20Removed unused interface_jtag_set_end_state and wrote down some notes on ↵Øyvind Harboe
TCP/IP client/server scheme.
2009-10-20Added the faux flash driver and target. Used for testing.Øyvind Harboe
2009-10-20Added 'unlock' option to flash write_imageØyvind Harboe
2009-10-20More svn to git version string fixes.Øyvind Harboe
2009-10-19SVF: better spec conformance for STATE switchDavid Brownell
Don't add extra TCK in current state; exit from RESET had four extras. Only IDLE --> IDLE needs such an extra clock. (At least one TCK must be issued.) Allow entry to RESET; SVF allows it, so must we (despite those entries being commented out of the statemove table). When entering RESET, always use TLR ... we might end up with extra clocks in reset that way, which is harmless, but we'll never end up in any other state than RESET, which is useful paranoia. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-19davinci: add watchdog reset methodDavid Brownell
Lightly tested on dm365. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-19jtag_add_statemove() always uses TLR to get to RESETDavid Brownell
As decided a while back, this isn't a transition we want to chance. Whenever someone wants to got to RESET, force it. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-19SVF/XSVF: comment and whitespace fixesDavid Brownell
SVF: comment the predefined/default paths; make them static const SVF, XSVF: whitespace fixes, mostly so copyrights display sanely Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-19Improve Makefile rules for XScale debug handler; fixes 'make distcheck'.Zachary T Welch
2009-10-19MinGW: always use "-D__USE_MINGW_ANSI_STDIO"Redirect 'Slash' NIL
This is unfortunately needed to make stdio work like OpenOCD expects -- matching the ANSI-C standard, instead of MS-Windows. I tested it in both MinGW-W64 on Vista 64 and MinGW-W32 on XP, and I don't see any adverse effects to enabling it for all MinGW versions.
2009-10-19MinGW: use WinSock2Redirect 'Slash' NIL
After reading a bit further, it appears that ws2_32 (Windows Sockets 2) is included in all versions of Windows and backwards compatible with wsock32, at least according to http://msdn.microsoft.com/en-us/library/ms740673%28VS.85%29.aspx. Only Win95 seems to require a manual installation; is not a big deal. So I think we can drop this whole business of detecting 64 bit MinGW and just use -lws2_32 for all MinGW platforms.
2009-10-19Doc: jtag_init must validate scan chain tooDavid Brownell
Same requirement as like init_reset, and for the same reason: we need to start with a known and working state.
2009-10-19fix single step of bx instruction going into Thumb modeNicolas Pitre
Without this fix, the following code cannot be single stepped: add ip, pc, #1 bx ip [thumb code here]
2009-10-19Ignore openocd.exe for "git status"David Brownell
2009-10-19corrective fix for MinGW GNU C99 printf complianceRedirect 'Slash' NIL
Compilation on cygwin, using gcc v3 with option -mno-cygwin, currently produces a large number of the following warnings: warning: `gnu_printf' is an unrecognized format function type These have been introduced with the recent MinGW GNU C99 printf compliance patch, as gnu_printf was only introduced with gcc v4.4 and is not recognized with earlier versions. The attached fix adds gcc version detection to the previous patch to avoid the problem.
2009-10-19Sync with official Jim Tcl repository.oyvind
2009-10-19Switch from svn to git version string handling.oyvind
2009-10-18SDRAM and clock configuration for the SAM9-L9260 board from OlimexDean Glazeski
2009-10-17safer conversion to HANDLER on MinGW-W64Redirect 'Slash' NIL
Assign to "intptr_t", which on some versions of MS-Windows will widen the variable; then cast to HANDLE.
2009-10-17Ignore two more generated filesDavid Brownell
On Windows the name is "bin2char.exe". All operating systems now have "xscale_handler.h".
2009-10-17More MinGW C99 printf complianceRedirect 'Slash' NIL
Passing "--std=gun99" is unfortunately not sufficient to make current MinGW compilers conform with respect to checking printf format strings. (The C runtime seems not to have problems.) Fix by using a "gnu_printf" format specifier not "printf".
2009-10-17jim-eventloop for MinGW-w64Redirect \"Slash\" NIL
Use JIM_WIDE_MODIFIER for the sscanf format, and apply it for MINGW32 as well as other Windows environments. (Microsoft doesn't conform to the C99 standard, and uses "%I64d" not "%lld" for "long long".) NB: __MINGW32__ should work on both w32 and w64,.
2009-10-17build tweak for bin2charDavid Brownell
Work better when building outside the source tree. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-16xscale: better fix for debug_handler.binDavid Brownell
Generate a C struct with the data, and use that, instead of an assembly language file. The assembly language causes issues on Darwin and MS-Windows, which don't necessarily use GNU AS; or if they do, don't necessarily use its ELF syntax. It's also better in two other ways: fewer global symbols; and the init-time size check gets optimized away at compile time. (Unless it fails, in which case bigger chunks of the file vanish.) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-14another portability updateDavid Brownell
Just use "%p" instead of consing up some integral type for pointer printf. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-10-14portability updatesDavid Brownell
Based on some patches from <redirect.slash.nil@gmail.com> for preliminary Win64 compilation. More such updates are needed, but they need work. Compile tested on 64 and 32 bit Linuxes, and Cygwin. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>