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:如何在不将其复位的情况下连接(连接)正在运行的目标? 唯一方法是编辑 cc26x0.gel?

Guru**** 2350610 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1477163/cc1310-how-to-connect-attach-to-a-running-target-without-resetting-it-only-way-is-to-edit-cc26x0-gel

器件型号:CC1310

工具与软件:

你(们)好、

我想将(连接)连接到正在运行的目标、并且在不将其复位的情况下对其进行调试。 我正在使用 Code Composer Studio 12.8.1.00005并 在 CC1310-LAUNCHXL (具有 CC1310F128)上进行实验。

我已选择"仅加载符号":

我已取消勾选"在程序加载或重新启动时重置目标":

我也取消了"自动运行"选项:"在程序加载或重新启动时":

然后、我沿着兔子洞一直到"c:\ti\ccs1281\ccs\ccs_base\emulation\gel\cc26x0.gel"并编辑 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;
    }
}

评论说,我必须评论4行,我做了,它工作:)这是唯一和正确的方式做它?

提前感谢、

Pieter

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Pieter:

    很高兴听到一切正常。

    这是正确的方法。

    此致、
    等等