Download Reference Manual
Transcript
STEP - Step Through DSP Program Example 13-37. SAVE Command save p:0..$ff x:0..$20 session1 Save all three memory maps to OMF file "session1.lod" of the current default target DSP address. Prompt for required action if file already exists. save s lunchbrk Save the default ADS state to filename "lunchbrk.adm". Prompt for required action if file already exists. save dv1 s lunchbrk.e1 -o Save the target DSP address 1 state to filename "lunchbrk.e1". Overwrite the current file lunchbrk.e1 if it exists. 13.39 STEP - Step Through DSP Program STEP [dev_list] [count] [LI(source lines)/IN(instructions)] The STEP command allows the user to execute count instructions or C source lines before displaying the enabled registers and memory blocks. This command gives the user a quick way to specify execution of a number of instructions without having to set a breakpoint. It is similar to the TRACE command except that display occurs only after the count number of cycles or instructions have occurred. Note that the address of the first instruction that is to be executed is in the OnCE Program Address Bus Decode Register (OPABD). If the Program Counter is changed before a TRACE or STEP command is issued, the address of the Program Counter Register points to the instruction to be executed. CAUTION DSP5616x: When single stepping through a BRKcc instruction and the condition is true, the instruction immediately following the BRKcc instruction will be displayed by the ADS but will not be executed. Instead, the DSP will correctly execute the instruction at LA + 1. Single-stepping Tcc, REPcc or REP instructions with initial loop counter equal to zero may cause incorrect DSP operation. The main difference between the TRACE and STEP commands is the OnCE port trace counter is armed to trace one instruction in the Trace mode. The STEP command arms the trace counter with the count instructions to be executed in real time before re-entering the Debug mode of operation and displaying the enabled registers and memory. 13-46 Suite56 ADS Debugger User’s Manual Motorola