1. Introduction
When the product is in the prototype testing stage, or when the product is put on the market, the program may occasionally run away or run abnormally. In many cases, such occasional failures are difficult to reproduce. Therefore, developers hope to connect to the running C2000 device through the emulator, and the C2000 cannot be reset, in order to obtain the current running status of the chip to determine the fault.
Test hardware: F28027 launchpad, if it is a product board, then an emulator is required (XDS100/XDS200/XDS510 are both acceptable)
Development environment: CCSv5 and above
Code and project: The original .out file or project needs to be retained
2. Operation steps
1) Open CCS and the project corresponding to the problem board. Then click View-> Target Configuration to bring up the Target Configuration menu, open Debug Configurations, right-click on the .CCXML file-> Properties
2) Set TargetOptionsOpen
the Target tab and perform the following operations:
Under Program/Memory Load options->Connection Options:
· Uncheck "Reset the target on a connect"
· Check "Halt the target on a connect"
Under Program/Memory Load options:
· Uncheck "Restart the target on a symbol load as well as program load"
Under Auto Run and Launch Options:
· Check "Enable realtime mode"
Click Apply to save the settings. The relevant settings are now completed.
3) After CCS settings are completed,
right-click the configured CCXML file in Target Configuration and select LaunchSelected Configuration to enter the Debug interface.
4) After entering the Debug interface, select Run->Load->Load Symbols to load the .out file generated by the compilation.
5) After loading is complete, click Run->Connect Target to connect the emulator, and the running device will be halted. At this time, you can see the location of program execution and related parameter values in the project file, and then analyze the system failure. If there is no project file, you can also observe the variables and PC values.
3. Notes
1) Load Program: will load the program into the chip, and load the debug symbols required for debugging into the CCS debugger. Load Symbols: will only load the debug symbols required for debugging into the CCS debugger.
|