HIEE450964R0001模块备件,ABB中文PDF用户手册
使用调试器PPCBug是命令驱动的;它执行各种操作以响应在键盘上输入的命令。当PPC1错误提示时显示在屏幕上,调试器已准备好接受调试器命令。当PPC1 Diag提示符出现在屏幕上时调试器已准备好接受诊断命令。从一个切换模式,输入SD。您输入的内容存储在内部缓冲区中。只有在按回车键或回车键。这允许您更正输入错误,如有必要,使用PPCBug中描述的控制字符固件包用户手册。
IEE450964R0001模块备件调试器执行命令后,将再次出现提示。但是,如果该命令导致执行用户目标代码(对于例如,GO)则控制可能返回或不返回调试器,取决于用户程序的功能。例如,如果断点具有则当断点被指定时,控制返回到调试器在执行用户程序时遇到。或者,用户程序可以通过系统调用处理程序返回调试器例行返回(在PPCBug固件包用户手册中描述手动)。有关更多信息,请参阅GD、GO和GT命令PPCBug固件包用户手册中的说明。调试器命令由以下部分组成:❏ 命令名,大写或小写(例如,MD或MD)。❏ 命令指定的任何必需参数。❏ 第一个参数前至少有一个空格。优先于所有其他带有空格或逗号的参数。❏ 一个或多个选项。在一个选项或一组选项之前加上分号(;)。如果未输入任何选项,则命令的默认值为使用选项条件。调试器命令表5-1列出了各个调试器命令。命令PPCBug固件包用户手册中有详细描述。注意:通过输入帮助(他)独自指挥。您可以查看通过输入HE和命令助记符,如下所示。虽然是一个允许擦除和重新编程的命令(PFLASH)你可以使用闪存,请记住,重新编程任何部分闪存将擦除当前包含在Flash,包括PPCBug调试器。注:闪存的A列和B列都包含PPCBug调试器
Using the Debugger
PPCBug is command-driven; it performs its various operations in response
to commands that you enter at the keyboard. When the PPC1-Bug prompt
appears on the screen, the debugger is ready to accept debugger
commands. When the PPC1-Diag prompt appears on the screen, the
debugger is ready to accept diagnostics commands. To switch from one
mode to the other, enter SD.
What you key in is stored in an internal buffer. Execution begins only after
you press the Return or Enter key. This allows you to correct entry errors,
if necessary, with the control characters described in the PPCBug
Firmware Package User’s Manual.
After the debugger executes the command, the prompt reappears.
However, if the command causes execution of user target code (for
example, GO) then control may or may not return to the debugger,
depending on what the user program does. For example, if a breakpoint has
been specified, then control returns to the debugger when the breakpoint is
encountered during execution of the user program. Alternately, the user
program could return to the debugger by means of the System Call Handler
routine RETURN (described in the PPCBug Firmware Package User’s
Manual). For more about this, refer to the GD, GO, and GT command
descriptions in the PPCBug Firmware Package User’s Manual.
A debugger command is made up of the following parts:
❏ The command name, either uppercase or lowercase (for example,
MD or md).
❏ Any required arguments, as specified by command.
❏ At least one space before the first argument. Precede all other
arguments with either a space or comma.
❏ One or more options. Precede an option or a string of options with
a semicolon (;). If no option is entered, the command’s default
option conditions are used.Debugger Commands
The individual debugger commands are listed in Table 5-1. The commands
are described in detail in the PPCBug Firmware Package User’s Manual.
Note You can list all the available debugger commands by entering the
Help (HE) command alone. You can view the syntax for a
particular command by entering HE and the command
mnemonic, as listed below.Although a command (PFLASH) to allow the erasing and reprogramming
of Flash memory is available to you, keep in mind that reprogramming any
portion of Flash memory will erase everything currently contained in
Flash, including the PPCBug debugger.
Note Both banks A and B of Flash contain the PPCBug debugger