summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Submitted by Magnus Lundin <lundin@mlu.mine.nu>:zwelch2009-05-231-1/+2
| | | | | | | | | - Add jtag_execute_queue in jtag_add_reset after interface_jtag_add_reset. - Use tap_set_state to demark TAP_RESET, instead of cmd_queue_cur_state - cmd_queue_cur_state needs to be retired. git-svn-id: svn://svn.berlios.de/openocd/trunk@1892 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Change the setting for the sam7se512 and sam7x256 mifi2009-05-232-3/+4
| | | | | | flash driver because of the new at91sam7 version. git-svn-id: svn://svn.berlios.de/openocd/trunk@1890 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Submitted by Magnus Lundin <lundin@mlu.mine.nu>:zwelch2009-05-231-21/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates to the J-Link interface driver to support more device versions: - Add capability detection: - if capable, detect protocol version; otherwise, assume v2 protocol. - if capable, detect buffer size; otherwise, assume minimal. - Disable command result queries for devices using v2 protocol. - Defined and use JTAG2 command with v2 protocol; JTAG3 is v3 protocol. - Add TCL command to allow explicit setting of J-Link protocol version. With approval, I revised the patch to make the following changes: - add static keywords to new jlink-specific variables - factor calculation of major_version to be more readable - remove braces around simple one-line statements in if/else clauses - remove (rather than #if 0) duplicate reset code; it is in SVN - use &function to be clearer when passing function pointers - add symbols for EMU_CMD_GET_CAPS bits; do not hard-code constants! - almost renamed jlink_handle_jlink_hw_jtag_command (seriously?!?!) - rewrote that function using a switch statement. - made version request processing easier to understand and modify - improve alternate endpoint detection: - make code easier to read by using temporary variables - eliminate extra level of indentation and redundant logging - use ternary conditional to select JTAG2 or JTAG3 command - reverse version test in jlink_usb_message to reduce indentation - this had the biggest effect in cleaning up this patch - use C99's ability to declare new/changed variables with less scope - add spaces around binary operators in new/changed code - revert other superfluous whitespace/comment style changes git-svn-id: svn://svn.berlios.de/openocd/trunk@1889 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* More printf fixes stemming from format string change in r1882.zwelch2009-05-231-2/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Raúl Sánchez Siles <rsanchezs@infoglobal.es>kc8apf2009-05-221-2/+20
| | | | | | | - Fix multi-byte reads on x16 devices used as x8 git-svn-id: svn://svn.berlios.de/openocd/trunk@1886 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Raúl Sánchez Siles <rsanchezs@infoglobal.es>kc8apf2009-05-221-2/+4
| | | | | | | - Fix calculation of flash_address for x16 devices used as x8 git-svn-id: svn://svn.berlios.de/openocd/trunk@1885 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Raúl Sánchez Siles <rsanchezs@infoglobal.es>kc8apf2009-05-221-4/+4
| | | | | | | - Consistently use flash_address git-svn-id: svn://svn.berlios.de/openocd/trunk@1884 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: David Brownell <david-b@pacbell.net>kc8apf2009-05-221-28/+3
| | | | | | | | | | | | | | | | | Remove un-implemented and dubious "nand copy" command. Doing this efficiently would mean doing the copying on the target CPU, instead of back and forth through JTAG. If anyone ever needs this functionality, that's what they should implement. Also, update on-line "help" for "nand dump" to display its two optional flags; and for "nand write" to display a recently added flag. git-svn-id: svn://svn.berlios.de/openocd/trunk@1883 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Rick Altherr <kc8apf@kc8apf.net>kc8apf2009-05-222-3/+3
| | | | | | | - printf conversion fixes for variably-sized types git-svn-id: svn://svn.berlios.de/openocd/trunk@1882 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Submitted by David Brownell <david-b@pacbell.net>:zwelch2009-05-223-1/+314
| | | | | | | | | | | | | | | | | | | | | | | | Improve support for the DM355 EVM board, and eventually other boards based on DaVinci chips: - Provide generic "davinci.cfg" to hold utilities that can be reused by different chips in this family. Start with PINMUX, PSC, and PLL setup. - DM355 chip support updates: provide a dictionary with chip-specific symbols, load those utilities. - Create a new dm355evm board file, with a reset-init event handler which uses those utilities to set up PLLs and clocks, configure the pins, and improve the JTAG speed limit. Also a minor tweak: provide a virtual address for the work area, matching what the very latest kernels do. It's probably unwise to use OpenOCD while the MMU is active though. The DRAM isn't yet accessible, but NAND access is mostly ready. git-svn-id: svn://svn.berlios.de/openocd/trunk@1881 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Submitted by Dean Glazeski <dnglaze@gmail.com>:zwelch2009-05-222-40/+173
| | | | | | | Add doxygen comments in arm7_9_common source and header files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1880 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* delete unused codeoharboe2009-05-211-26/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1878 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix warning. Use %p for pointersoharboe2009-05-211-1/+1
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1877 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-2/+7
| | | | | | | | | | -jtag.c, interface_jtag_add_ir_scan() [2/2] (version without goto): - change 'found' to bool - add comments on loops git-svn-id: svn://svn.berlios.de/openocd/trunk@1876 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Dirk Behme <dirk.behme@googlemail.com> Minor updates for OMAP3 scriptsoharboe2009-05-212-0/+20
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1875 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Additional format warning fixes in ioutil, required by r1873 changes.zwelch2009-05-211-2/+2
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1874 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* David Brownell <david-b@pacbell.net>: This patch adds annotations tozwelch2009-05-2110-24/+34
| | | | | | | | | | the key command_*() helper functions, fixng the bugs that turned up. Several of these bugs were from misuse of PRIi64; that's for 64-bit integers, NOT for "long long" or "u64" (which work best with %lld). git-svn-id: svn://svn.berlios.de/openocd/trunk@1873 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Thomas Kindler <mail@t-kindler.de>kc8apf2009-05-211-1/+1
| | | | | | | - Increase DTC status retry count to avoid problems with STM Primer git-svn-id: svn://svn.berlios.de/openocd/trunk@1871 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Øyvind Harboe <oyvind.harboe@zylin.com>kc8apf2009-05-211-0/+8
| | | | | | | - Allow target_read/write_buffer of size 0 git-svn-id: svn://svn.berlios.de/openocd/trunk@1870 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Holger Schurig <hs4233@mail.mn-solutions.de>kc8apf2009-05-211-2/+0
| | | | | | | -Prevent freezing of target when doing a 'shutdown'. git-svn-id: svn://svn.berlios.de/openocd/trunk@1869 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-15/+12
| | | | | | | | | | | -jtag.c, interface_jtag_add_ir_scan() [1/2]: - remove temporary scan_size and use tap->ir_length instead - slight loop restructuring to reduce indentation level git-svn-id: svn://svn.berlios.de/openocd/trunk@1868 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-30/+33
| | | | | | | | | | | | | -jtag.c, interface_jtag_add_dr_out(): - use pointer 'field' instead of scan->fields[field_count] - restructure the main loop to clearly separate the two cases: TAP is not bypassed / TAP is bypassed (this is to keep the function similar to interface_jtag_add_dr_scan()) - fix bug where only the first output field has its tap field set - add asserts to verify that target_tap points to the one not bypassed TAP git-svn-id: svn://svn.berlios.de/openocd/trunk@1867 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-37/+27
| | | | | | | | | | | | -jtag.c, interface_jtag_add_dr_scan(): - use pointer 'field' instead of scan->fields[field_count] - restructure the main loop to clearly separate the two cases: TAP is not bypassed / TAP is bypassed - add an assert that each non-bypassed TAP receives at least one field - add an assert that checks that no superfluous input fields were passed git-svn-id: svn://svn.berlios.de/openocd/trunk@1866 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-16/+17
| | | | | | | | | | -jtag.c, interface_jtag_add_ir_scan(): - use pointer 'field' instead of scan->fields[nth_tap] - add assertion to ensure that input data has correct size for TAP's IR git-svn-id: svn://svn.berlios.de/openocd/trunk@1865 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-27/+28
| | | | | | | | | | - jtag.c: consolidate output scan field initialization in scan functions - jtag.c: add cmd_queue_scan_field_clone() to handle 1:1 field copies - jtag.c: fix bug where only the first output field in a dr scan has its tap field set git-svn-id: svn://svn.berlios.de/openocd/trunk@1864 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-9/+0
| | | | | | | | - jtag.c: remove unused variable 'nth_tap' from DR scan functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1863 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-44/+23
| | | | | | | | - jtag.c: Use single 'for' statement to iterate over list of TAPs in scan functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1862 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-15/+20
| | | | | | | | - jtag.c: consolidate all memory allocations in scan functions in one block, add out_fields pointer to set stage for further changes git-svn-id: svn://svn.berlios.de/openocd/trunk@1861 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-212-31/+31
| | | | | | | | - add 'const' qualifier to function parameters in jtag.c that are not to be modified or freed by the function git-svn-id: svn://svn.berlios.de/openocd/trunk@1860 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-211-14/+76
| | | | | | | | | | - add doxygen comments to scan commands in jtag.c - move jtag_add_dr_scan next to interface_jtag_add_dr_scan to keep these function pairs together git-svn-id: svn://svn.berlios.de/openocd/trunk@1859 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move TCL overview from source tree to doxygen manual.zwelch2009-05-201-430/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1855 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move non-arm target overview from source tree to doxygen manual.zwelch2009-05-201-76/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1853 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Move scripting overview from source tree to doxygen manual.zwelch2009-05-201-80/+0
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1852 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Spencer Oliver <spen@spen-soft.co.uk> use 7 tms out of resetoharboe2009-05-201-3/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1851 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Spencer Oliver <spen@spen-soft.co.uk>kc8apf2009-05-205-9/+55
| | | | | | | | - Bring the mips step/resume interrupt handling inline with the rest of openocd. git-svn-id: svn://svn.berlios.de/openocd/trunk@1850 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-13/+12
| | | | | | | | - simplify code in interface_jtag_add_plain_dr_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1849 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-4/+2
| | | | | | | | | - move scan_size in interface_jtag_add_dr_out() into the scope of the inner loop and change it to unsigned - move loop variable j into for scope git-svn-id: svn://svn.berlios.de/openocd/trunk@1848 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-16/+15
| | | | | | | | - simplify code in interface_jtag_add_dr_out() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1847 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-2/+1
| | | | | | | | - move scan_size in interface_jtag_add_dr_scan() into the scope of the inner loop and change it to unsigned git-svn-id: svn://svn.berlios.de/openocd/trunk@1846 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-18/+16
| | | | | | | | - simplify code in interface_jtag_add_dr_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1845 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-13/+12
| | | | | | | | - simplify code in interface_jtag_add_plain_ir_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1844 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-2/+1
| | | | | | | | - move scan_size in interface_jtag_add_ir_scan() into the scope of the inner loop and change it to unsigned git-svn-id: svn://svn.berlios.de/openocd/trunk@1843 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-19/+25
| | | | | | | | | - simplify code in interface_jtag_add_ir_scan() by adding a local variable 'scan' to hold the scan_command_t git-svn-id: svn://svn.berlios.de/openocd/trunk@1842 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-6/+7
| | | | | | | | - rename local variable x to num_taps in interface_jtag_add_ir_scan git-svn-id: svn://svn.berlios.de/openocd/trunk@1841 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Author: Michael Bruck <mbruck@digenius.de>kc8apf2009-05-201-78/+80
| | | | | | | | - rename input parameters 'num_fields' and 'fields' to 'in_num_fields' and 'in_fields' in all jtag.c interface functions git-svn-id: svn://svn.berlios.de/openocd/trunk@1840 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Added jtag_nsrst_delay 200 and jtag_ntrst_delay 200 to the LPC2294 target.mifi2009-05-191-0/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1838 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* fix warningsoharboe2009-05-191-4/+10
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1837 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* Wookey <wookey@wookware.org> update syntaxoharboe2009-05-191-8/+3
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1836 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* David Brownell <david-b@pacbell.net> NAND: update ids, "nand list" bugfixoharboe2009-05-192-4/+8
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1835 b42882b7-edfa-0310-969c-e2dbd0fdcd60
* added tms_sequence command to allow switching between old/new tms sequenceoharboe2009-05-191-34/+60
| | | | git-svn-id: svn://svn.berlios.de/openocd/trunk@1834 b42882b7-edfa-0310-969c-e2dbd0fdcd60