This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1310: How to connect (attach) to a running target without resetting it? Only way is to edit cc26x0.gel?

Part Number: CC1310


Tool/software:

Hi there,

I want to connect (attach) to a running target and debug it without resetting it. I'm using Code Composer Studio 12.8.1.00005 and  experimenting on a CC1310-LAUNCHXL (with CC1310F128).

I have selected "Load symbols only":

 :

I have unticked "Reset the target on a program load or restart":

I have also unticked the Auto Run Option: "On a program load or restart":

I then got down the rabbit hole as far as "c:\ti\ccs1281\ccs\ccs_base\emulation\gel\cc26x0.gel" and editing StartUp():

StartUp(int major, int minor, int patch)
{
    /* Initialize memory map */
    memorymap_init();

    /* Debugger specific handling */
    if(GEL_MatchesConnection(".*TIXDS.*") == 1)
    {
        GEL_LoadGel("$(GEL_file_dir)/cc26xx_connect_util.gel");
        GEL_LoadGel("$(GEL_file_dir)/cc26x0_xds.gel");

        DefineResets(0);

        // Issue Board Reset to ensure device is in a known state
        // Note: If you want to attach to a running target without resetting the
        //       device, you must comment out the following 4 lines:
        //if(!GEL_IsConnected())
        //{
        //    GEL_AdvancedReset("Board Reset");
        //}
    }
    else if(GEL_MatchesConnection(".*JLink.*") == 1)
    {
        GEL_LoadGel("$(GEL_file_dir)/cc26xx_jlink.gel");
    }
    else
    {
        GEL_TextOut("Error: Unknown debugger.\n");
        return;
    }
}

The comment said that I must comment out 4 lines which I did and it worked :) Is this the only and correct way to do it?

Thanks in advance,

Pieter