HIEE450964R0001模塊備件,ABB中文PDF用戶手冊
使用調試器PPCBug是命令驅動的;它執(zhí)行各種操作以響應在鍵盤上輸入的命令。當PPC1錯誤提示時顯示在屏幕上,調試器已準備好接受調試器命令。當PPC1 Diag提示符出現(xiàn)在屏幕上時調試器已準備好接受診斷命令。從一個切換模式,輸入SD。您輸入的內容存儲在內部緩沖區(qū)中。只有在按回車鍵或回車鍵。這允許您更正輸入錯誤,如有必要,使用PPCBug中描述的控制字符固件包用戶手冊。
IEE450964R0001模塊備件調試器執(zhí)行命令后,將再次出現(xiàn)提示。但是,如果該命令導致執(zhí)行用戶目標代碼(對于例如,GO)則控制可能返回或不返回調試器,取決于用戶程序的功能。例如,如果斷點具有則當斷點被指定時,控制返回到調試器在執(zhí)行用戶程序時遇到?;蛘撸脩舫绦蚩梢酝ㄟ^系統(tǒng)調用處理程序返回調試器例行返回(在PPCBug固件包用戶手冊中描述手動)。有關更多信息,請參閱GD、GO和GT命令PPCBug固件包用戶手冊中的說明。調試器命令由以下部分組成:? 命令名,大寫或小寫(例如,MD或MD)。? 命令指定的任何必需參數(shù)。? 第一個參數(shù)前至少有一個空格。優(yōu)先于所有其他帶有空格或逗號的參數(shù)。? 一個或多個選項。在一個選項或一組選項之前加上分號(;)。如果未輸入任何選項,則命令的默認值為使用選項條件。調試器命令表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