2259 views|0 replies

2015

Posts

0

Resources
The OP
 

Use CCS to connect to a running C2000 chip [Copy link]

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.

This post is from Microcontroller MCU
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list