Other Parts Discussed in Thread: TM4C1294NCPDT
I'm looking for advice on how to create a custom launch configuration for my project. I've tried several methods, but they all seem unreliable and don't launch with the correct settings.
CCS 6.1.1.00022
TM4C1294XL Evaluation Kit
My goal is to create a launch configuration for a specific project. The configuration must issue a CPU Reset after program download and I want to disable auto-run to main. The executable has no function called main; I get a warning with this option selected. Here are the steps I think should have worked.
Select my project (bootloaderusb) in the Project Explorer
File > New > Target Configuration File
File name: bootloaderusb.ccxml
Use shared location > Unselect
Workspace...
Select my project
This opens the target configuration in the editor. I make the following edits, save the file, and close it.
Connection: Stellaris In-Circuite Debug Interface
Device: Tiva TM4C1294NCPDT > Select
Save
So far, this all makes sense. Now I want to customize my launch configuration as described above. I think this is where I go wrong.
Project Explorer
bootloaderusb.ccxml > RMB > Properties
Run/Debug Settings > Select
New...
Code Composer Studio - Device Debugging > Select
OK
Edit launch configuration properties (dialog)
Name: bootloaderusb LC
Target Configuration: C:\Projects\USB\ccsws_6_1_1\bootloaderusb\bootloaderusb.ccxml
Target (tab) > Select
Program/Memory Load Options > Select
Reset the target on a program load or restart > Select
Apply
Auto Run and Launch Options > Select
Auto Run Options > On a program load or restart > Unselect
Apply
OK
Back in the Properties for bootloaderusb.ccxml dialog
Select booloaderusb LC
OK
At this point, my expectation is that I've created a custom target configuration for my project (bootloaderusb.ccxml) and I have associated it to a custom launch configuration (booloaderusb LC). When I hover over the "Bug" icon in the toolbar, the tool tip displays "Debug bootloaderusb.ccxml". I click the bug.
This opens the CCS Debug perspective, starts the debug session, and connects to the target. However, it is not using the custom launch configuration I just created above. It seems to have created a new launch configuration on-the-fly. The name seems to be my project name (bootloaderusb).
I open the Debug Configurations dialog and I see both my custom launch configuration (bootloaderusb LC) and the new one (bootloaderusb). Inspecting the properties, I see the new launch configuration does not contain my custom modifications.
Any suggestions on how to make this work?
Also, what is the difference between 1) target configuration, 2) launch configuration, and 3) debug configuration? It seems there are some subtle differences I'm not understanding.
Finally, in the launch configuration edit dialog, when I select my bootloaderusb.ccxml file using the Workspace... button, I would expect to get a workspace relative pathname. However, I get an absolute pathname. How to fix this?
Thank you,
~Ramsey