From: oharboe at B. <oh...@ma...> - 2009-08-30 19:33:01
|
Author: oharboe Date: 2009-08-30 19:32:56 +0200 (Sun, 30 Aug 2009) New Revision: 2651 Modified: trunk/doc/openocd.texi Log: David Brownell <da...@pa...> Minor doc updates: - Itemize the list of private customization examples for openocd.cfg - Add "override defaults" as a customization, specifically for the work area (back it up or relocate it) - Highlight some work area location issues Modified: trunk/doc/openocd.texi =================================================================== --- trunk/doc/openocd.texi 2009-08-30 17:30:14 UTC (rev 2650) +++ trunk/doc/openocd.texi 2009-08-30 17:32:56 UTC (rev 2651) @@ -733,11 +733,15 @@ When you write config files, separate the reusable parts (things every user of that interface, chip, or board needs) from ones specific to your environment and debugging approach. +@itemize +@item For example, a @code{gdb-attach} event handler that invokes the @command{reset init} command will interfere with debugging early boot code, which performs some of the same actions that the @code{reset-init} event handler does. + +@item Likewise, the @command{arm9tdmi vector_catch} command (or @cindex vector_catch its siblings @command{xscale vector_catch} @@ -747,9 +751,16 @@ along with messaging and tracing setup. (@xref{Software Debug Messages and Tracing}.) +@item +You might need to override some defaults. +For example, you might need to move, shrink, or back up the target's +work area if your application needs much SRAM. + +@item TCP/IP port configuration is another example of something which is environment-specific, and should only appear in a user config file. @xref{TCP/IP Ports}. +@end itemize @section Project-Specific Utilities @@ -2614,9 +2625,12 @@ which OpenOCD needs to know about. @item @code{-work-area-backup} (@option{0}|@option{1}) -- says -whether the work area gets backed up; by default, it doesn't. +whether the work area gets backed up; by default, +@emph{it is not backed up.} When possible, use a working_area that doesn't need to be backed up, since performing a backup slows down operations. +For example, the beginning of an SRAM block is likely to +be used by most build systems, but the end is often unused. @item @code{-work-area-size} @var{size} -- specify/set the work area |