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 Reply Children
  • Did you try to build the library without any changes? Try to do so and check if you get the same hardfault then before applying your changes. 

    May I ask what you need the openthread logs for? Do you experience any issues with the openthread network?

    BR,
    Edvin

  • Ok I will try it. Yeah I am using raspberry like device with nrf52840 dongle for border gateway. My nrf52840 device (dongle or my custom pcb with nrf52840) shows that commisioning is done. But when I enter ot-ctl scan command. The commisioning process runs again (led starts blinking) and the command doesnt show any discovered device. I used prebuilt images for nrf52840 dongle ncp driver and for nrf52840 sleepy mqtt publisher. Nothing changed and it doesnt works. I see no reason from logs on gateway, so I need to see device log, or add support for openthread debugging

  • Same result. built with flags make -f examples/Makefile-nrf52840 BORDER_AGENT=1 BORDER_ROUTER=1 COAP=1 COMMISSIONER=1 DISABLE_BUILTIN_MBEDTLS=1 DNS_CLIENT=1 DIAGNOSTIC=1 EXTERNAL_HEAP=1 JOINER=1 LINK_RAW=1 MAC_FILTER=1 MTD_NETDIAG=1 SERVICE=1 UDP_FORWARD=1 ECDSA=1 SNTP_CLIENT=1 COAPS=1 DHCP6_SERVER=1 DHCP6_CLIENT=1 USB=1

Related