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.

[参考译文] CC2642R:显示错误的 CPU 负载

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1187559/cc2642r-cpu-load-showing-the-error

器件型号:CC2642R

尊敬的团队:

我使用的是简单外设代码、而工作 SDK 是  simplelink_cc13x2_26x2_SDK_5_10_00_48。

如果我希望打开运行时对象视图(ROV)进行 CPU 负载计算、那么那时我将面临以下错误。

如何消除上述错误。

此致、

Shrikant Koli

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

    您好!

    您能否列出配置项目所遵循的步骤?

    另请确保查看以下主题:

    此致、

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

    /*Added below line into the .cfg file*/
    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    if (Program.cpu.deviceName.match(/CC2640R2F/)) {
        ROM.romName = ROM.CC2640R2F;
    }
    else if (Program.cpu.deviceName.match(/CC26.2/)) {
        ROM.romName = ROM.CC26X2;
    }
    else if (Program.cpu.deviceName.match(/CC13.2/)) {
        ROM.romName = ROM.CC13X2;
    }
    else if (Program.cpu.deviceName.match(/CC26/)) {
        ROM.romName = ROM.CC2650;
    }
    else if (Program.cpu.deviceName.match(/CC13/)) {
        ROM.romName = ROM.CC1350;
    }
    
    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
    LoggingSetup.sysbiosLoggerSize = 1024;
    LoggingSetup.loadLogging = false;
    /*enable this option as a true. before that its false*/
    BIOS.logsEnabled = true;

    您好!

    我遵循链接中提及的设置。

    但图形仍然没有显示任何内容。

    我在此  附上了屏幕截图供您参考。

    每当帧来自中央器件时、我将切换 GPIO 引脚。

    我要在计时器 ISR 中执行的基本操作。

    请建议我如何获得准确的 CPU 负载。

    此致、

    Shrikant

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

    Shrikant、您好、

    Clement 在担任 OOO 时要求我回复、我希望我能在这里提供帮助。

    上述.cfg 摘录表明内核位于 ROM 中。 要查看系统加载和执行图、必须将内核置于闪存中。 为此、请注释掉以下内容:

    /*Remove the following code to place the kernel in Flash*/
    /*
    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    if (Program.cpu.deviceName.match(/CC2640R2F/)) {
        ROM.romName = ROM.CC2640R2F;
    }
    else if (Program.cpu.deviceName.match(/CC26.2/)) {
        ROM.romName = ROM.CC26X2;
    }
    else if (Program.cpu.deviceName.match(/CC13.2/)) {
        ROM.romName = ROM.CC13X2;
    }
    else if (Program.cpu.deviceName.match(/CC26/)) {
        ROM.romName = ROM.CC2650;
    }
    else if (Program.cpu.deviceName.match(/CC13/)) {
        ROM.romName = ROM.CC1350;
    }
    */

    您已正确启用 BIOS.logsEnabled。 还需要执行以下几个步骤来添加到.cfg 文件中:

    /* Setup Logging */
    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
    /* Make sure to choose a large enough loggerSize to capture enough data */
    LoggingSetup.sysbiosLoggerSize = 4000;
    
    /* This step is required for load logging */
    LoggingSetup.loadLogging = true;
    /* This step will enable the Load graph */
    var Load = xdc.useModule('ti.sysbios.utils.Load');

    祝您好运!

    -Ammar

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

    尊敬的  

    感谢您的回复。

    /*
    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    if (Program.cpu.deviceName.match(/CC2640R2F/)) {
        ROM.romName = ROM.CC2640R2F;
    }
    else if (Program.cpu.deviceName.match(/CC26.2/)) {
        ROM.romName = ROM.CC26X2;
    }
    else if (Program.cpu.deviceName.match(/CC13.2/)) {
        ROM.romName = ROM.CC13X2;
    }
    else if (Program.cpu.deviceName.match(/CC26/)) {
        ROM.romName = ROM.CC2650;
    }
    else if (Program.cpu.deviceName.match(/CC13/)) {
        ROM.romName = ROM.CC1350;
    }
    */
    
    /* Setup Logging */
    var LoggingSetup = xdc.useModule('ti.uia.sysbios.LoggingSetup');
    /* Make sure to choose a large enough loggerSize to capture enough data */
    LoggingSetup.sysbiosLoggerSize = 4000;
    
    /* This step is required for load logging */
    LoggingSetup.loadLogging = true;
    /* This step will enable the Load graph */
    var Load = xdc.useModule('ti.sysbios.utils.Load');

    在这里、我要附加代码片段、无论您在该线程中提到哪一个。

    我也尝试过、但仍然无法看到 CPU 负载。

    图像供您参考。

    此致、

    Shrikant

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

    Shrikant、您好、

    请告诉我、您是否成功使用了以下任一资源:

    e2e.ti.com/.../1177627
    https://www.ti.com/lit/spruh43 

    此致、
    Ryan