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.

[参考译文] CCS/LAUNCHXL-CC2640R2:帮助在 CCS 中使用 Log_info 函数

Guru**** 2595805 points
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2

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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/612219/ccs-launchxl-cc2640r2-help-using-log_info-function-in-ccs

器件型号:LAUNCHXL-CC2640R2

工具/软件:Code Composer Studio

您好!  

我目前正在为 LAUNCHXL-CC2640R2上的应用程序使用 PROJECT_ZERO 及其给定的服务和特性。 我还使用 putty 来使用 Log_info 来帮助在调试期间保持跟踪。

我现在正在尝试为项目中的各种应用程序(例如密钥生成)添加新服务。 使用此处提供的示例服务生成器: http://dev.ti.com/tirex/content/simplelink_academy_cc2640r2sdk_1_12_01_16/modules/ble_01_custom_profile/ble_01_custom_profile.html 我生成了 key_generation.c 和 key_generation.h 文件。  

根据上面的链接、我的新 key_generation 服务具有"无日志声明"。 我想知道我是否有任何方法来启用日志语句、以便我可以在 key_generation 服务中使用它。

谢谢、  

Arrenan

 

 

 

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

    我建议查看 LogX 语句如何添加到现有 Project Zero 服务中、例如 button_service.c 您可以以相同的方式将它们添加到您生成的代码中。

    祝你一切顺利