summaryrefslogtreecommitdiff
path: root/src/jtag/jtag.c
Commit message (Collapse)AuthorAgeFilesLines
* Laurentiu Cocanu - more help textoharboe2008-10-221-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1087 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Laurentiu Cocanu - memory read/write and exit() error path fixesoharboe2008-10-151-2/+5
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1064 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - added myself to copyright on files i remember adding large contributions ↵ntfreak2008-09-201-10/+1
| | | | | | | | | for over the years - cleaned up headers to match rest of code - added missing svn props for previously added files git-svn-id: svn://svn.berlios.de/openocd/trunk@987 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Duane Ellis: target_process_reset is now implemented in tcl. This allows ↵oharboe2008-09-121-2/+72
| | | | | | better control from target configuration scripts. git-svn-id: svn://svn.berlios.de/openocd/trunk@984 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* continue execution even if chain can't be validated. This will, hopefully, ↵oharboe2008-08-201-10/+2
| | | | | | give us some more feedback on what's wrong. git-svn-id: svn://svn.berlios.de/openocd/trunk@953 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* DANGER: committed work-in-progress to handle examination of jtag devices ↵oharboe2008-08-191-12/+10
| | | | | | | | | | without IDCODE. I think this works, but I may have to pull that change out again... added alive_sleep() to avoid warnings when resetting target(fixes incomprehensible error timeout error messages in GDB). git-svn-id: svn://svn.berlios.de/openocd/trunk@941 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix warning.oharboe2008-08-131-1/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@911 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix output from jtag_khz when only jtag_speed has been invokedoharboe2008-08-111-2/+11
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@908 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix error messageoharboe2008-08-111-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@904 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fix target_examine declarationntfreak2008-08-061-1/+1
| | | | | | | | - remove build warnings - added --enable-gccwarnings to docs - update mips_m4k_examine function git-svn-id: svn://svn.berlios.de/openocd/trunk@893 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Duane Ellis: fix warningsoharboe2008-08-051-3/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* TAP_TLR won't work in a pathmove sequence. OpenOCD shouldn't and doesn't ↵oharboe2008-08-041-0/+5
| | | | | | need to support this. git-svn-id: svn://svn.berlios.de/openocd/trunk@886 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* warning output upon connection problems.oharboe2008-07-301-2/+6
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@882 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* more jtag_examine() checks. catch errors during first 640 bits.oharboe2008-07-291-1/+20
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@881 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added yours sincerely for files where I feel that I've made non-trivial ↵oharboe2008-07-251-0/+3
| | | | | | contributions. git-svn-id: svn://svn.berlios.de/openocd/trunk@872 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* allow jtag minidriver access to cmd_queue_cur_state for jtag_add_pathmove()oharboe2008-07-241-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@867 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fix typo in jtag_add_end_statentfreak2008-07-231-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@863 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - jtag_khz/speed are now single parameter only. These are usedoharboe2008-07-211-49/+35
| | | | | | | | | | | | | | | | | | | | | from pre/post_reset event scripts. Adding the second parameter was a mistake seen in retrospect. this gives precise control in post_reset for *when* the post reset speed is set. The pre_reset event was added *after* the second parameter to jtag_khz/speed - the target implementations no longer gets involved in the reset mode scheme. Either they reset a target into a halted mode or not. target_process_reset() detects if the reset halt failed or not. - tcl target event names are now target_N_name. Mainly internal at this early stage, but best to get the naming right now. - added hardcoded reset modes from gdb_server.c. I don't know precisely what these defaults should be or if it should be made configurable. Perhaps some hardcoded defaults will do for now and it can be made configurable later. - bugfix in cortex_m3.c for reset_run_and_xxx? - issue syntax error upon obsolete argument in target command instead of printing message that will surely drown in the log git-svn-id: svn://svn.berlios.de/openocd/trunk@849 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fix incorrectly registered function openocd_array2memntfreak2008-07-181-10/+1
| | | | | | | | | - removed unused variables - reformatted lpc288x.[ch] - fixed helper/Makefile.am dependencies - add correct svn props to added files git-svn-id: svn://svn.berlios.de/openocd/trunk@829 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* keep_alive() fix for reset warnings.oharboe2008-07-181-0/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@827 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Charles Hardin <ckhardin@gmail.com> move tcl stuff nearer to where it belongs.oharboe2008-07-181-4/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@824 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Charles Hardin ckhardin at gmail.com oharboe2008-07-111-27/+45
| | | | | | | | | This address the >32 bit problem with drscan also added a check for bypass in the execute since this will manifest itself as a memory corruption when this check helps to debug the problem alot easier git-svn-id: svn://svn.berlios.de/openocd/trunk@794 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - retired variable stuff. oharboe2008-07-111-38/+54
| | | | | | | | - drscan is now a low level tcl command: execute DR scan <device> <num_bits> <value> <num_bits1> <value2> - removed obsolete partial command text support git-svn-id: svn://svn.berlios.de/openocd/trunk@791 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy:oharboe2008-06-181-7/+7
| | | | | | | - TAP reset without TRST shall be called TLR (stands for test-logic-reset, named after the TAP state it ends is) rather than tms (test-mode-select) - some comments changed to /* C coding style */ git-svn-id: svn://svn.berlios.de/openocd/trunk@717 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel Chromy: fix logging syntax error + formatting & removing obsolete ↵oharboe2008-06-041-1/+1
| | | | | | comments. git-svn-id: svn://svn.berlios.de/openocd/trunk@702 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* jtag_exexcute_queue() now logs error when it is invoked before 'init' command.oharboe2008-05-221-1/+7
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@673 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* reverted change in 658 and simply removed the busted warning for now.oharboe2008-05-191-2/+4
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@668 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Michael Fischer found this bogus warning. Fixed.oharboe2008-05-191-4/+2
| | | | | | Error: jtag.c:941 jtag_add_reset(): BUG: transition of req_tlr_or_trst ... git-svn-id: svn://svn.berlios.de/openocd/trunk@665 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - added jlink support, based on Jürgen Stuber patchntfreak2008-05-141-0/+7
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@658 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* This matters for embedded devices, but is probably not observably better for ↵oharboe2008-05-071-2/+2
| | | | | | PC hosted OpenOCD. git-svn-id: svn://svn.berlios.de/openocd/trunk@647 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Edgar's naming convention fixes.oharboe2008-04-301-6/+11
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@629 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Edgar's added support for printing jtag_khzoharboe2008-04-301-26/+43
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@628 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix for gaffe in 555 that stopped JTAG chain examine + validate from running.oharboe2008-04-161-2/+2
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@588 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* A dummy driver to test codepath w/no contact w/target.oharboe2008-04-131-1/+8
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@572 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - Set up ICE registers after TRSToharboe2008-04-131-3/+7
| | | | | | | | - Work in progress to allow launching GDB/telnet server *before* jtag chain enum, validate & examine git-svn-id: svn://svn.berlios.de/openocd/trunk@569 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Reset wip. Just adding hooks. This is just to reduce the size of the actual ↵oharboe2008-04-111-4/+9
| | | | | | change, no change in behaviour. git-svn-id: svn://svn.berlios.de/openocd/trunk@565 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* back out Don Porges workaround for some device with manufcaturer # 0x1a2oharboe2008-04-091-9/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@555 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Don Porges fixed c99 issues.oharboe2008-04-091-9/+31
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@553 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - added "init" command. "init" and "reset" at end of startup script is ↵oharboe2008-04-091-1/+68
| | | | | | | | | | | | | | | equivalent to daemon_startup(still supported). - print warning if srst and trst change state at the same time when srst_and_trst is seperate - reset now performs a trst, examines and validates the jtag chain before targets assert reset - if startup fails to examine and validate the jtag chain, try a reset before trying again git-svn-id: svn://svn.berlios.de/openocd/trunk@552 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Pavel pointed out that jtag_add_tlr() is better than jtag_add_tms().oharboe2008-04-081-16/+16
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@547 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* The endstate now reports the endstate of the queue instead ofoharboe2008-04-081-1/+6
| | | | | | | reading endstate variable internal to the driver. git-svn-id: svn://svn.berlios.de/openocd/trunk@546 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added query of reset speedoharboe2008-04-041-13/+18
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@538 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - fixes for jtag_khz committed.oharboe2008-04-011-24/+44
| | | | | | - wip, flash fillw/h/b. For testing purposes. git-svn-id: svn://svn.berlios.de/openocd/trunk@531 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Do not assert trst in srst_only case even if srst_pulls_trst.oharboe2008-03-311-28/+36
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@530 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* make jtag_add_statemove() internal to the driver.oharboe2008-03-311-33/+9
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@527 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* TAP_SD/SI are now forbidden end states.oharboe2008-03-261-16/+15
| | | | | | jtag_add_reset() now returns void streamlining the API git-svn-id: svn://svn.berlios.de/openocd/trunk@525 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - rename log functions to stop conflicts under win32 (wingdi)ntfreak2008-03-251-45/+45
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@523 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* - changed jtag_add_reset errors to warningsntfreak2008-03-221-2/+2
| | | | | | - removed extra jtag reset warnings from arm7_9 and cortex_m3 git-svn-id: svn://svn.berlios.de/openocd/trunk@520 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* clarified jtag_khz command.oharboe2008-03-131-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@513 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added jtag_khz for use with target libraryoharboe2008-03-131-0/+50
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@512 b42882b7-edfa-0310-969c-e2dbd0fdcd60