This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

OpenThread logging enable

Hello,

I am developing thread network and i am building on top of mqttsn_sleepy_publisher example. But I have problem to enable RTT logging (UART not available) for thread stack. RTT logging for app works (using NRF_LOG_INFO). I see logs within RTT Viewer. But none of the logs comes from open thread stack.

It should be enabled by default (it is mentioned in following link)

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fthread_ot_logging.html

I even tried FULL_LOGS=1 build flag, but no logs appeared from open thread.

    Open the .h configuration file whose name corresponds to the name of the openthread-core-default-config.h file, for example openthread-core-posix-config.h.
    In this file, define the desired log output configuration.

I tried to edit openthread-core-default-config.h but nothing changed. The header file is not included in any files within project.

Thanks for help

SDK version 4.1.0

Parents
  • Hello,

    Sorry for the late reply. Where did you find this file? Online on Github? Where did you put the file?

    As you say, no file in your project probably points to this file. If you downloaded it from github, then this needs to be used to re-build the openthread library.

    I don't know whether you meant to point to the SDKv3.2.0 for Thread and Zigbee. If you use that version, that is fine. Look at the file found in SDK\external\openthread\project\readme.txt

    It says what tag the openthread stack is built on. Download the same version, and use this guide to re-build the openthread libraries.

    Best regards,

    Edvin

Reply
  • Hello,

    Sorry for the late reply. Where did you find this file? Online on Github? Where did you put the file?

    As you say, no file in your project probably points to this file. If you downloaded it from github, then this needs to be used to re-build the openthread library.

    I don't know whether you meant to point to the SDKv3.2.0 for Thread and Zigbee. If you use that version, that is fine. Look at the file found in SDK\external\openthread\project\readme.txt

    It says what tag the openthread stack is built on. Download the same version, and use this guide to re-build the openthread libraries.

    Best regards,

    Edvin

Children
Related