1. 21 Feb, 2010 1 commit
  2. 11 Feb, 2010 1 commit
  3. 10 Feb, 2010 1 commit
  4. 04 Feb, 2010 1 commit
  5. 02 Feb, 2010 1 commit
    • David Brownell's avatar
      NOR: User's Guide updates · 5750e899
      David Brownell authored
      
      
      Remove long-obsolete text about "erase_check" affecting "flash info" output.
      Move parts of that text to "protect_check", where it's still relevant; and
      update the "flash info" description to mention the issue.
      
      (This is still awkward.  It might be best to make "protect_check" mirror
      "erase_check" by dumping what it finds, so "flash info" doesn't dump any
      potentially-stale cache info.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      5750e899
  6. 28 Jan, 2010 1 commit
    • David Brownell's avatar
      doc clarifications for server flags · 804c0b2a
      David Brownell authored
      
      
      The "-f" is a shortcut for "-c" ... and providing any "-c" options
      means the "openocd.cfg" file isn't implicitly used.  Both the User's
      Guide and the manual page were weak on these points, which has led
      to some confusion.
      
      Also update the manual page to include highlights of the search path
      mechanism, including the facts that it exists and that "-s" adds to it.
      Stop saying only the current directory is involved; the OpenOCD
      script library is quite significant.
      
      (Missing: complete manpage coverage of the search path, including a
      FILES section listing all components and saying where the script
      library is found.)
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      804c0b2a
  7. 22 Jan, 2010 1 commit
  8. 20 Jan, 2010 1 commit
  9. 14 Jan, 2010 3 commits
    • Peter Korsgaard's avatar
      nand flash support for s3c64xx · 000a1cfd
      Peter Korsgaard authored
      
      
      Identical to the existing 2412/2443 support except for the base address
      and NFCONF value (bit 2 is reserved and should be written as 1 ref UM).
      
      Tested on a s3c6410 board, but controller is identical in 6400/6410
      except for 8bit MLC ECC support in 6410 which isn't supported by the
      driver.
      
      Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
      Signed-off-by: default avatarØyvind Harboe <oyvind.harboe@zylin.com>
      000a1cfd
    • David Brownell's avatar
      User's Guide updates · b60dd35e
      David Brownell authored
      
      
      Capture various bits of useful information that have come up on the
      list but haven't yet gotten into the documentation:
      
       - Watchdog timers firing during JTAG debug need attention;
      
       - Some chips have special registers to help JTAG debug;
      
       - Cortex-M3 stepping example with IRQs and maskisr;
      
       - Clarifications re adaptive clocking:  not all ARMs do it, and
         explain it a bit better.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      b60dd35e
    • David Brownell's avatar
      NOR: add optional "flash erase_address" sector padding · 73566405
      David Brownell authored
      
      
      Add a NOR flash mechanism where erase_address ranges can be padded
      out to sector boundaries, triggering a diagnostic:
      
        > flash erase_address 0x0001f980 16
        address range 0x0001f980 .. 0x0001f98f is not sector-aligned
        Command handler execution failed
        in procedure 'flash' called at file "command.c", line 647
        called at file "command.c", line 361
        >
      
        > flash erase_address pad 0x0001f980 16
        Adding extra erase range, 0x0001f800 to 0x0001f97f
        Adding extra erase range, 0x0001f990 to 0x0001fbff
        erased address 0x0001f980 (length 16) in 0.095975s (0.163 kb/s)
        >
      
      This addresses what would otherwise be something of a functional
      regression.  An earlier version of the interface had a dangerous
      problem:  it would silently erase data outside the range it was
      told to erase.  Fixing that bug turned up some folk who relied on
      that unsafe behavior.  (The classic problem with interface bugs!)
      Now they can get that behavior again.  If they really need it,
      just specify "pad".
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      73566405
  10. 10 Jan, 2010 2 commits
    • David Brownell's avatar
      FreeBSD build fixes · c8267930
      David Brownell authored
      
      
      Based on notes from Tomek Cedro <tomek.cedro@gmail.com> and
      Steve Franks <bahamasfranks@gmail.com>.
      
      In the User's Guide, sort the list of operating systems reported
      through Tcl with $ocd_HOSTOS ... and include FreeBSD.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      c8267930
    • David Brownell's avatar
      parport (mostly) doc fixes · ff647e6b
      David Brownell authored
      
      
      The "parport_port" commands generally don't *require* a port_number;
      they're of the "apply any parameter, then print result" variety.  Update
      the User's Guide accordingly.
      
      Some of those commands are intended to be write-once: parport_port,
      and parport_cable.  Say so.
      
      Use proper EBNF for the parport_write_on_exit parameter.
      
      Parport address 0xc8b8 is evidently mutant.  Say so in the "parport.cfg"
      file, to avoid breaking anyone with that mutant config.  But update the
      User's Guide to include a sane example for the LP2 port.
      
      Finally document the "presto_serial" command.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      ff647e6b
  11. 09 Jan, 2010 4 commits
    • David Brownell's avatar
      src/flash/nor: usage/help/doc updates · 1c5c57ec
      David Brownell authored
      
      
      Make "usage" messages use the same EBNF as the User's Guide;
      no angle brackets.  Improve and correct various helptexts.
      
      Don't use "&function"; a function's name is its address.
      Remove a couple instances of pointless whitespace; shrink a
      few overlong lines; fix some bad indents.
      
      Add TODO list entry re full support for NAND/NOR bank names.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      1c5c57ec
    • David Brownell's avatar
      src/server: usage/help/doc updates · fc9a2d0e
      David Brownell authored
      
      
      Make "usage" messages use the same EBNF as the User's Guide;
      no angle brackets.  Improve and correct various helptexts.
      
      Specifically for the port commands, clarify that the number
      is optional, and omitting it causes the current number to be
      displayed.
      
      Don't use "&function"; a function's name is its address.
      Remove a couple instances of pointless whitespace; shrink a
      few overlong lines.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      fc9a2d0e
    • David Brownell's avatar
      NAND: help/usage/doc updates · 2a76c1bc
      David Brownell authored
      
      
      Usage messages should use the same EBNF as the User's Guide;
      no angle brackets.  Be more complete too ... some params were
      missing.  Improve and correct various helptexts.
      
      Make user's guide refer to the NAND "driver" name, not the
      controller name; that's a bit more precise.
      
      Don't use "&function"; its name is its address.  Line up struct
      initializers properly.  Remove some blank lines.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      2a76c1bc
    • David Brownell's avatar
      Coexist with quilt: rename PATCHES --> PATCHES.txt · c1cb2097
      David Brownell authored
      
      
      The issues is on Win32, which ignores case in filesystem
      and thus doesn't tolerate the quilt "patches" directory.
      
      Rename, and add "patches" to .gitignore so that developers
      can choose to use quilt for local patch management.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      c1cb2097
  12. 08 Jan, 2010 7 commits
    • David Brownell's avatar
      ARM966: help/usage updates · 82c0fb52
      David Brownell authored
      
      
      Usage syntax messages have the same EBNF as the User's Guide;
      there should be no angle brackets in either place.
      
      Fix the User's Guide to say where the magic CP15 bits are defined;
      and add comments in case someone provides mcr/mrc methods.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      82c0fb52
    • David Brownell's avatar
      Xscale: User's Guide updates · e7965cd3
      David Brownell authored
      
      
      Fix some EBNF goofs ... these commands have *optional* params, etc
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      e7965cd3
    • David Brownell's avatar
      ARM720: help/usage updates · a42bea65
      David Brownell authored
      
      
      Deprecate the "pass an instruction opcode" flavor of cp15
      access in favor of the "arm mcr ..." and "arm mrc ..."
      commands, which offer fewer ways to break things.
      
      Use the same EBNF syntax in the code as for the user's guide.
      
      Update User's Guide to say where to find those magic values
      (which table in the ARM920 TRM).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      a42bea65
    • David Brownell's avatar
      ARM720: help/usage updates · e0b6e5de
      David Brownell authored
      
      
      Deprecate the "pass an instruction opcode" flavor of cp15 access
      in favor of the "arm mcr ..." and "arm mrc ..." commands, which
      offer fewer ways to break things.
      
      Use the same EBNF syntax in the code as for the user's guide.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      e0b6e5de
    • David Brownell's avatar
      ARM11: help/usage updates · 199abf49
      David Brownell authored
      
      
      Usage syntax messages have the same EBNF as the User's Guide;
      there should be no angle brackets in either place.
      
      Uupdate some helptext to be more accurate.
      
      Fix the User's Guide in a few places to be more consistent (mostly
      to use brackets not parentheses) and to recognize that parameter may
      be entirely optional (in which case the command just displays output,
      and changes nothing).  Also reference NXP, not Philips, for LPC chips.
      
      Don't use "&function"; functions are like arrays, their address
      is their name.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      199abf49
    • David Brownell's avatar
      ARM7/ARM9: help/usage updates · 48d51e17
      David Brownell authored
      
      
      Provide helptext which was sometimes missing; update some of it
      to be more accurate.
      
      Usage syntax messages have the same EBNF as the User's Guide;
      there should be no angle brackets in either place.
      
      Fix the User's Guide in a few places to be more consistent (mostly
      to use brackets not parentheses) and to recognize that parameter may
      be entirely optional (in which case the command just displays output,
      and changes nothing).  Also reference NXP, not Philips, for LPC chips.
      
      Don't use "&function"; functions are like arrays, their address
      is their name.  Shrink some overlong lines.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      48d51e17
    • David Brownell's avatar
      ARMv7: help/usage updates · 17921f51
      David Brownell authored
      
      
      Provide helptext which was sometimes missing; update some of it
      to be more accurate.
      
      Usage syntax messages have the same EBNF as the User's Guide;
      there should be no angle brackets in either place.
      
      Don't use "&function"; functions are like arrays, their address
      is their name.  Shrink some overlong lines, remove some empties.
      
      Add a couple comments about things that should change:  those
      extra TCK cycles for MEM-AP reads are in the wrong place (that
      might explain some problems we've seen); the DAP command tables
      should be shared, not copied.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      17921f51
  13. 02 Jan, 2010 1 commit
    • David Brownell's avatar
      streamline and document helptext mode displays · b3bf1d12
      David Brownell authored
      
      
      Most commands are usable only at runtime; so don't bother saying
      that, it's noise.  Moreover, tokens like EXEC are cryptic.  Be
      more clear: highlight only the commands which may (also) be used
      during the config stage, thus matching the docs more closely.
      There are
      
       - Configuration commands (per documentation)
       - And also some commands that valid at *any* time.
      
      Update the docs to note that "help" now shows this mode info.
      
      This also highlighted a few mistakes in command configuration,
      mostly commands listed as "valid at any time" which shouldn't
      have been.  This just fixes ones I noted when sanity testing.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      b3bf1d12
  14. 31 Dec, 2009 1 commit
  15. 30 Dec, 2009 1 commit
  16. 28 Dec, 2009 1 commit
    • David Brownell's avatar
      Fix Luminary FT2232 layout docs/configs · ec297e4b
      David Brownell authored
      
      
      Most of this patch updates documentation and comments for various
      Luminary boards, supporting two bug fixes by helping to make sense
      of the current mess:
      
       - Recent rev C lm3s811 eval boards didn't work.  They must use
         the ICDI layout, which sets up some signals that the older
         boards didn't need.  This is actually safe and appropriate
         for *all* recent boards ... so just make "luminary.cfg" use
         the ICDI layout.
      
       - "luminary-lm3s811.cfg", was previously unusable!  No VID/PID;
         and the wrong vendor string.  Make it work, but reserve it
         for older boards where the ICDI layout is wrong.
      
       - Default the LM3748 eval board to "luminary.cfg", like the
         other boards.  If someone uses an external JTAG adapter, all
         boards will use the same workaround (override that default).
      
      The difference between the two FT2232 layouts is that eventually
      the EVB layout will fail cleanly when asked to enable SWO trace,
      but the ICDI layout will as cleanly be able to enable it.  Folk
      using "luminary.cfg" with Rev B boards won't see anything going
      wrong until SWO support is (someday) added.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      ec297e4b
  17. 27 Dec, 2009 1 commit
    • David Brownell's avatar
      NOR: make flash_write_unlock() pad to sector end · 155a6a2c
      David Brownell authored
      
      
      Resolve a regression when using newish automagic "write_image"
      modes, by always padding to the end of affected sectors.
      
      Also document some issues associated with those automagic options,
      in the User's Guide and also some related code comments.
      
      We might need similar padding at the *beginning* of some sectors,
      but this is a minimalist fix for the problems which have currently
      been reported (plus doc updates).
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      155a6a2c
  18. 26 Dec, 2009 2 commits
  19. 19 Dec, 2009 3 commits
    • Dean Glazeski's avatar
      AT91SAM9 NAND flash driver. · 3ac2a440
      Dean Glazeski authored
      
      
      This creates the TCL interface for configuring an AT91SAM9 NAND flash
      controller and implements the necessary functions to correctly work with
      a NAND flash device connected to the chip.  This includes updates to the
      driver list and the Makefile.am to support building the driver and also
      houses the documentation update in openocd.texi.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      3ac2a440
    • David Brownell's avatar
      ETM: add "etm trigger_debug" command · abe8b437
      David Brownell authored
      
      
      In conjunction with manual register setup, this lets the ETM trigger
      cause entry to debug state.   It should make it easier to test and
      bugfix the ETM code, by enabling non-trace usage and isolating bugs
      specific to thef ETM support.  (One current issue being that trace
      data collection using the ETB doesn't yet behave.)
      
      For example, many ARM9 cores with an ETM should be able to implement
      four more (simple) breakpoints and two more (simple) watchpoints than
      the EmbeddedICE supports.  Or, they should be able to support complex
      breakpoints, incorporating ETM sequencer, counters, and/or subroutine
      entry/exit criteria int criteria used to trigger debug entry.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      abe8b437
    • David Brownell's avatar
      ETM trigger_percent becomes an ETB command · 9abad965
      David Brownell authored
      
      
      This command was misplaced; it's not generic to all traceport drivers,
      only the ETB supports this kind of configuration.  So move it, and
      update the relevant documentation.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      9abad965
  20. 16 Dec, 2009 1 commit
  21. 15 Dec, 2009 1 commit
  22. 14 Dec, 2009 1 commit
  23. 07 Dec, 2009 3 commits