1. 23 Nov, 2011 1 commit
  2. 11 Oct, 2011 1 commit
  3. 14 Aug, 2011 1 commit
  4. 16 Jun, 2011 1 commit
  5. 13 Jun, 2011 1 commit
  6. 31 Mar, 2011 1 commit
  7. 29 Dec, 2010 1 commit
    • Andrew MacIsaac's avatar
      Compilation Warnings on OS X 10.5 · 50e79d60
      Andrew MacIsaac authored
      I received a number of "-Wshadow" related warnings (treated as errors) while
      trying to build on OS X Leopard.  In addition, there were two miscellaneous
      other warnings in the flash drivers.  Attached are two patches which correct
      these issues and the commit messages to accompany them.
      
      My system has the following configuration (taken from uname -a):
      
      Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009;
      root:xnu-1228.15.4~1/RELEASE_I386 i386
      
      === Werror_patch.txt Commit Message ===
      compilation: fixes for -Wshadow warnings on OS X
      
      These changes fix -Wshadow compilation warnings on OS X 10.5.8
      
      Compiled with the following configure command:
      
      ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink
      --enable-ft2232_libftdi
      
      === flash_patch.txt Commit Message ===
      compilation: fixes for flash driver warnings on OS X
      
      These changes fix two compilation warnings on OS X 10.5.8:
      
      ../../../../src/flash/nor/at91sam3.c:2767: warning: redundant redeclaration
      of 'at91sam3_flash'
      ../../../../src/flash/nor/at91sam3.c:101: warning: previous declaration of
      'at91sam3_flash' was here
      
      and
      
      ../../../../src/flash/nor/stmsmi.c:205: warning: format not a string literal
      and no format arguments
      
      Compiled with the following configure command:
      
      ../configure --prefix=/usr/local --enable-maintainer-mode --enable-jlink
      --enable-ft2232_libftdi
      ===
      
      Andrew
      50e79d60
  8. 22 Dec, 2010 1 commit
  9. 15 Nov, 2010 1 commit
  10. 12 Sep, 2010 1 commit
  11. 11 Sep, 2010 1 commit
    • Øyvind Harboe's avatar
      version command: make it scriptable · 505d4633
      Øyvind Harboe authored
      
      
      you can now set a variable in a script like set version [version].
      
      Also version takes an optional argument "git" to show git version
      of source. If git is not installed during the build, then this
      will yield an error that is ignored during the build and "version git"
      returns an empty string.
      
      Signed-off-by: default avatarØyvind Harboe <oyvind.harboe@zylin.com>
      505d4633
  12. 01 Aug, 2010 1 commit
  13. 05 Jul, 2010 1 commit
  14. 02 Jul, 2010 1 commit
    • David Brownell's avatar
      initial "transport" framework · 93f2afa4
      David Brownell authored
      
      
      This adds the guts of a transport framework with initialization,
      which should work with current JTAG-only configurations (tested
      with FT2232).
      
      Each debug adapter can declare the transports it supports, and
      exactly one transport is initialized.  (with its commands) in
      any given OpenOCD session.
      
        * Define a new "struct transport with init hooks and a few
       "transport"  subcommands to support it:
      
           "list" ... list the transports configured (just "jtag" for now)
           "select" ... makes the debug session use that transport
           "init" ... initializes the selected transport (internal)
      
        * "interface_transports" ... declares transports the current interface
          can support.  (Some will do this from C code instead, when there are
          no hardware versioning (or other) issues to prevent it.
      
      Plus some FT2232 tweaks, including a few to streamline upcoming
      support for an SWD transport (initially for Luminary adapters).
      
      Eventually src/jtag should probably become src/transport, moving
      jtag-specific stuff  to transport/jtag.
      
      Signed-off-by: default avatarDavid Brownell <db@helium.(none)>
      93f2afa4
  15. 23 Jun, 2010 1 commit
  16. 21 Jun, 2010 1 commit
  17. 10 Apr, 2010 1 commit
  18. 17 Mar, 2010 1 commit
  19. 14 Mar, 2010 1 commit
  20. 11 Mar, 2010 1 commit
    • David Brownell's avatar
      split "interface" commands from "jtag" ones · 591e0bba
      David Brownell authored
      
      
      We'll need to be able to work with debug adapter interfaces (drivers)
      even when they're not used for JTAG ... for example, while there are
      multi-transport drivers which support JTAG *and* several other
      transports (or just one more, like SWD) there are also adapters
      with more limited goals (and no JTAG support at all).
      
      Start decoupling the two concepts ("debug adapter driver", "jtag")
      by having two command groups, which initialize separately.
      
      This will help us support OpenOCD sessions using only non-JTAG
      transports, in which JTAG commands should not be registered.
      Update docs to mention that the JTAG, SVF, and XSVF commands
      won't work without a JTAG transport.
      
      Note that at least commands working with SRST are still inappropriately
      coupled  to JTAG ... inappropriate because (a) SRST is not part of the
      JTAG standard, for all that many platforms (like ARM) expect it; and also
      (b) because they're used with non-JTAG debug and programming interfaces,
      too.  They should perhaps become generic "interface" operations at some
      point.  (Similarly with the clock rate to be used by a given adapter.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      591e0bba
  21. 09 Mar, 2010 1 commit
  22. 15 Feb, 2010 1 commit
  23. 11 Dec, 2009 1 commit
  24. 05 Dec, 2009 3 commits
    • Zachary T Welch's avatar
      rename nand.h to flash//nand/core.h · 899c9975
      Zachary T Welch authored
      Rename nand.h as flash/nand/core.h, chase consumers.  The public APIs
      need to be sorted out with imp.h, but this allows other changes to
      begin improving the separation between policy and mechanism.
      
      Moves #include <target/target.h> and #include "driver.h" into the
      internal headers or source files, removing it from <flash/nand/core.h>.
      899c9975
    • Zachary T Welch's avatar
      remove flash.h from tree · f3e6f584
      Zachary T Welch authored
      Remove the now vestigial <flash/flash.h> header from the tree,
      replacing a few references with <flash/nor/core.h>
      f3e6f584
    • Zachary T Welch's avatar
      split NOR and NAND flash headers · 1527272f
      Zachary T Welch authored
      Moves common flash errors to <flash/common.h> to decouple these two
      mostly unrelated trees of code.
      1527272f
  25. 04 Dec, 2009 1 commit
    • Zachary T Welch's avatar
      check top-level command registrations · c5eb8e29
      Zachary T Welch authored
      When calling module_register_commands, the return value needs to be
      checked for failures.  Instead of duplicating code, use an array of
      function pointers to the identical registration functions to iterate
      over during startup.
      c5eb8e29
  26. 03 Dec, 2009 13 commits
    • David Brownell's avatar
      fix another init regression · adbf40a0
      David Brownell authored
      
      
      This makes Beagle work again, instead of losing horribly because
      the JTAG event handlers are no longer able to e.g. "runtest".  I
      get the previous quirky behavior ... comes up OK but "reset halt"
      somewhat mysteriously makes it all better.  (Instead of nothing
      being able to work at all...)  However, I'm still seeing:
      
       The 'init' command must be used before 'init'.
      
      That seems to come from invoking "jtag init", sometime after it
      gets mapped to "ocd_jtag init", according to debug message traces.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      adbf40a0
    • Zachary T Welch's avatar
      fix double 'init' regression · de27ebfa
      Zachary T Welch authored
      To prevent regression in the behavior of 'init', we allow it to run in
      any mode.  If provided with -c init and with -c noinit, then the second
      init at startup caused a spurious mode failure.  Let 'init' handle it.
      de27ebfa
    • Zachary T Welch's avatar
      change #include "xsvf.h" to <xsvf/xsvf.h> · 12499f97
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "xsvf.h"
      
      the following form should be used.
      
      	#include <xsvf/xsvf.h>
      
      The exception is from .c files in the same directory.
      12499f97
    • Zachary T Welch's avatar
      change #include "svf.h" to <svf/svf.h> · 66e45ba6
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "svf.h"
      
      the following form should be used.
      
      	#include <svf/svf.h>
      
      The exception is from .c files in the same directory.
      66e45ba6
    • Zachary T Welch's avatar
      change #include "pld.h" to <pld/pld.h> · 49675db9
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "pld.h"
      
      the following form should be used.
      
      	#include <pld/pld.h>
      
      The exception is from .c files in the same directory.
      49675db9
    • Zachary T Welch's avatar
      change #include "server.h" to <server/server.h> · c538a830
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "server.h"
      
      the following form should be used.
      
      	#include <server/server.h>
      
      The exception is from .c files in the same directory.
      c538a830
    • Zachary T Welch's avatar
      change #include "httpd.h" to <server/httpd.h> · 6db3ed48
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "httpd.h"
      
      the following form should be used.
      
      	#include <server/httpd.h>
      
      The exception is from .c files in the same directory.
      6db3ed48
    • Zachary T Welch's avatar
      change #include "gdb_server.h" to <server/gdb_server.h> · 5e7369d9
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "gdb_server.h"
      
      the following form should be used.
      
      	#include <server/gdb_server.h>
      
      The exception is from .c files in the same directory.
      5e7369d9
    • Zachary T Welch's avatar
      change #include "nand.h" to <flash/nand.h> · 450ceda9
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "nand.h"
      
      the following form should be used.
      
      	#include <flash/nand.h>
      
      The exception is from .c files in the same directory.
      450ceda9
    • Zachary T Welch's avatar
      change #include "mflash.h" to <flash/mflash.h> · 9cbab8d3
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "mflash.h"
      
      the following form should be used.
      
      	#include <flash/mflash.h>
      
      The exception is from .c files in the same directory.
      9cbab8d3
    • Zachary T Welch's avatar
      change #include "jtag.h" to <jtag/jtag.h> · cb4a475f
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "jtag.h"
      
      the following form should be used.
      
      	#include <jtag/jtag.h>
      
      The exception is from .c files in the same directory.
      cb4a475f
    • Zachary T Welch's avatar
      change #include "ioutil.h" to <helper/ioutil.h> · 2fc071c6
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "ioutil.h"
      
      the following form should be used.
      
      	#include <helper/ioutil.h>
      
      The exception is from .c files in the same directory.
      2fc071c6
    • Zachary T Welch's avatar
      change #include "configuration.h" to <helper/configuration.h> · 0b7720d2
      Zachary T Welch authored
      Changes from the flat namespace to heirarchical one.  Instead of writing:
      
      	#include "configuration.h"
      
      the following form should be used.
      
      	#include <helper/configuration.h>
      
      The exception is from .c files in the same directory.
      0b7720d2