1. Introduction
When a product is in the prototype testing stage or is put on the market, the program may occasionally run out of control or run abnormally. In many cases, such occasional failures are difficult to reproduce. Therefore, developers hope to connect the running C2000 device through the emulator, and the C2000 cannot be reset to obtain the current chip running status to determine the fault.
Test hardware: F28027 launchpad. If it is a production board, an emulator is required (XDS100/XDS200/XDS510 is 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 TargetOptions
Open the Target tab and do the following:
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 "Enablerealtime mode"
Click Apply to save the settings. The relevant settings are now completed.
3) After CCS is set up, debug
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.
|