Download TMS320C54x C Source Debugger User's Guide
Transcript
Defining the Conditions for Analysis The events selected cause the debugger to halt the processor whenever the occurrence of a call taken, a branch taken, a pipeline clock, the EMU0 pin being driven low, or a program or data bus being accessed is detected. If you want to enable a hardware breakpoint at a particular program or data address, you can enter the address as a symbol or value in any format. Setting up the event comparators The analysis module has separate event comparators for the program and data buses. You can set up analysis to either count the number of accesses to a certain bus address or halt the processor on accesses to a specified address. The program and data bus fields in the Analysis break events dialog box are identical to the program and data bus fields in the Analysis count events dialog box. As a result, changing the values in these fields in either dialog box affects both of these dialog boxes. The program bus supports noninstruction read and write accesses and instruction fetches. If you enable the Access qualifier, noninstruction reads and writes are detected. If you enable the Fetch qualifier, only program fetches are detected. Similarly, if you select Data Bus, load the data address field with 0x0800 and select Access in the Analysis break events dialog box, the processor halts every time a read or write occurs on the data bus at address 0x0800: Break when a read or write occurs at address 0x0800 on the data bus. Look for read or writes. Enabling one of the program or data bus comparators in the Analysis count events dialog box allows you to count the number of accesses that are detected or to stop processing after a certain number of accesses have occurred. 9-12