HIEE205012R1中文使用說明,ABB工控模塊
使用調(diào)試器PPCBug是命令驅(qū)動(dòng)的,在響應(yīng)您在鍵盤上輸入的命令。當(dāng)PPC1錯(cuò)誤提示出現(xiàn)在屏幕上,調(diào)試器已準(zhǔn)備好接受調(diào)試器命令。當(dāng)PPC1 Diag提示符出現(xiàn)在屏幕上,調(diào)試器已準(zhǔn)備好接受診斷命令。切換從一種模式切換到另一種模式,輸入SD。您輸入的內(nèi)容存儲(chǔ)在內(nèi)部緩沖區(qū)中。只有在按<回車>或<回車>鍵。這允許您更正輸入如有必要,與PPCBug中描述的控制字符有關(guān)的錯(cuò)誤固件包用戶手冊(cè)。調(diào)試器執(zhí)行命令后,將再次出現(xiàn)提示。
HIEE205012R1中文使用說明,但是,如果該命令導(dǎo)致執(zhí)行用戶目標(biāo)代碼(對(duì)于示例GO)則控制可能返回或不返回調(diào)試器,取決于用戶程序的功能。例如,如果斷點(diǎn)具有則當(dāng)斷點(diǎn)被指定時(shí),控制返回到調(diào)試器在執(zhí)行用戶程序時(shí)遇到。或者,用戶
程序可以通過系統(tǒng)調(diào)用處理程序返回調(diào)試器常規(guī)返回。有關(guān)更多信息,請(qǐng)參閱GD、GO和GT命令。有關(guān)控制字符和調(diào)試器命令的信息,請(qǐng)參閱PPCBug固件包用戶手冊(cè)。
調(diào)試器命令由以下部分組成:? 命令名,大寫或小寫(例如,MD或MD)
? 命令指定的任何必需參數(shù)? 第一個(gè)參數(shù)前至少有一個(gè)空格。優(yōu)先于所有其他帶有空格或逗號(hào)的參數(shù)? 一個(gè)或多個(gè)選項(xiàng)。在一個(gè)選項(xiàng)或一組選項(xiàng)之前加上分號(hào)(;)。如果未輸入任何選項(xiàng),則命令的默認(rèn)值為使用選項(xiàng)條件。調(diào)試器命令下表列出了各個(gè)調(diào)試器命令。注意:通過輸入幫助(他)獨(dú)自指揮。您可以查看通過輸入HE和命令助記符,如下所示。雖然是允許擦除和重新編程閃存的命令內(nèi)存是可用的,請(qǐng)記住,重新編程任何部分的閃存將擦除閃存中當(dāng)前包含的所有內(nèi)容,包括PPC1Bug調(diào)試器。診斷測試下表列出了各個(gè)診斷測試集。這個(gè)PPC1Bug診斷手冊(cè)中介紹了診斷,如中所列附錄D,相關(guān)文件。
Use the Debugger
PPCBug is command-driven and 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. For more about this, refer to the GD, GO, and GT
commands.
For information on control characters and debugger commands, refer to
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 the following table.
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 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 PPC1Bug debugger.Diagnostic Tests
The individual diagnostic test sets are listed in the following table. The
diagnostics are described in the PPC1Bug Diagnostics Manual, listed in
Appendix D, Related Documentation.