1. 11 Nov, 2009 1 commit
    • Zachary T Welch's avatar
      add const keyword to some APIs · ca594adb
      Zachary T Welch authored
      Add 'const' keyword to 'char *' parameters to allow command handlers to
      pass constant string arguments.  These changes allow the 'args' command
      handler to be changed to 'const' in a subsequent patch.
      ca594adb
  2. 10 Nov, 2009 4 commits
  3. 09 Nov, 2009 3 commits
    • David Brownell's avatar
      Revert "target: add target->type->has_mmu fn" · 7269ba5e
      David Brownell authored
      
      
      This patch introduced a bug preventing flash writes from working
      on Cortex-M3 targets like the STM32.  Moreover, it's the wrong
      approach for handling no-MMU targets.
      
      The right way to handle no-MMU targets is to provide accessors
      for physical addresses, and use them everywhere; and any code
      which tries to work with virtual-to-physical mappings should use
      a identity mapping (which can be defaulted).
      
      And ... we can tell if a target has an MMU by seeing if it's
      got an mmu() method.  No such methood means no MMU.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      7269ba5e
    • David Brownell's avatar
      finish removing deprecated/obsolete commands · d70d9634
      David Brownell authored
      
      
      It's been about a year since these were deprecated and, in most
      cases, removed.  There's no point in carrying that documentation,
      or backwards compatibility for "jtag_device" and "jtag_speed",
      around forever.  (Or a few remnants of obsolete code...)
      
      Removed a few obsolete uses of "jtag_speed":
      
       - The Calao stuff hasn't worked since July 2008.  (Those Atmel
         targets need to work with a 32KHz core clock after reset until
         board-specific init-reset code sets up the PLL and enables a
         faster JTAg clock.)
       - Parport speed controls don't actually work (tops out at about
         1 MHz on typical HW).
       - In general, speed controls need to live in board.cfg files (or
         sometimes target.cfg files), not interface.cfg ...
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      d70d9634
    • Zachary T Welch's avatar
      Overhaul time support API · 2689f58f
      Zachary T Welch authored
      This patch changes the duration_* API in several ways.  First, it
      updates the API to use better names.  Second, string formatting has
      been removed from the API (with its associated malloc).  Finally, a
      new function added to convert the time into seconds, which can be
      used (or formatted) by the caller.  This eliminates hidden calls to
      malloc that require associated calls to free().
      
      This patch also removes the useless extern keyword from prototypes,
      and it eliminates the duration_t typedef (use 'struct duration').
      These API also allows proper error checking, as it is possible for
      gettimeofday to fail in certain circumstances.
      
      The consumers have all been chased to use this new API as well, as
      there were relatively few cases doing this type of measurement.
      In most cases, the code performs additional checks for errors, but
      the calling code looks much cleaner in every case.
      2689f58f
  4. 06 Nov, 2009 2 commits
  5. 05 Nov, 2009 6 commits
  6. 03 Nov, 2009 1 commit
  7. 23 Oct, 2009 2 commits
  8. 22 Oct, 2009 1 commit
  9. 21 Oct, 2009 1 commit
  10. 13 Oct, 2009 2 commits
  11. 12 Oct, 2009 1 commit
  12. 08 Oct, 2009 2 commits
  13. 21 Sep, 2009 1 commit
  14. 20 Sep, 2009 1 commit
    • dbrownell's avatar
      Debug message updates: · 0c4b119d
      dbrownell authored
       - 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
      0c4b119d
  15. 19 Sep, 2009 1 commit
    • dbrownell's avatar
      Minor behavior fixes for the two JTAG reset events (C/internal, · 2d3bcddf
      dbrownell authored
      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
      2d3bcddf
  16. 11 Sep, 2009 3 commits
  17. 10 Sep, 2009 1 commit
  18. 30 Aug, 2009 1 commit
  19. 25 Aug, 2009 2 commits
  20. 19 Aug, 2009 1 commit
  21. 18 Aug, 2009 1 commit
    • ntfreak's avatar
      David Brownell [david-b@pacbell.net]: · 69dd81dc
      ntfreak authored
      Simplify dumping of register lists by only printing cached values
      if they are marked as valid.  Most of the time, they are invalid;
      so printing *any* value is just misleading.
      
      Note that for ARM7 and ARM9 most EmbeddedICE registers (except for
      debug status) could be cached most of the time; and their register
      cache isn't maintained properly (many accesses seem to bypass that
      cache code).
      
      git-svn-id: svn://svn.berlios.de/openocd/trunk@2594 b42882b7-edfa-0310-969c-e2dbd0fdcd60
      69dd81dc
  22. 17 Jul, 2009 1 commit
  23. 06 Jul, 2009 1 commit