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.

[参考译文] RTOS/CC2650:使用 Log_write2()记录 TA -显示在实时会话中而不是 printf 日志中

Guru**** 2587365 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/596270/rtos-cc2650-logging-ta-with-log_write2---shows-in-live-session-not-printf-logs

器件型号:CC2650

工具/软件:TI-RTOS

您好!

我正在尝试将数据记录到 printf 日志中。 I An Using Log_write2 (UIAEvt_detailWithStr、(Int) 0x01、(IArg)"Testing");。 此消息显示在 Live Session 选项卡中、但不显示在 printf Logs 选项卡中。 请参阅下面的屏幕截图。 有什么想法会导致这种情况?

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

    Anthony、

    只有 Log_printN 调用显示在 printf Logs 窗口中。 例如

    void workTaskFunc(UArg0、UArgarg1)

      INT 计数= 0;

      while (1){

        /*执行工作*/

        doWork();

        log_write2 (UIAEvt_detailWithStr、(Int) 0x01、(IArg)"Testing");

        log_print2 (Diags_User1、"%s"、(IArg")"Seq ="、count);

        count++;

        Task_sleep (500);

      }

    几秒钟后具有以下内容

    此时将显示 Live Session (具有所有记录)

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