__LOG @ LOG_LEVEL_INFO is unable to log info in the terminal emulator

Hello everyone,

I am facing a problem with the 'light_switch' example project.

SDK- nRF SDK for Mesh 5.0.0 & nRF5 SDK 17.0.2

IDE: SEGGER EmStudio for ARM 5.68

Building and running the program on the nRF52DK is happening smoothly, and was able to provision the device without any hassle using nRF Mesh app.

The problem lies in the fact that my terminal emulator is not showing any logs, that are meant to be shown.

 __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "----- BLE Mesh Light Switch Server Demo -----\n");

For example, the above line in main.c is supposed to log the string on a run, but is not shown.

Likewise, I have tried to build and run other examples from the Mesh SDK, but to no avail.

I might be forgetting something or doing something wrong, but am unable to find a solution for it.

Any sort of help would be much appreciated!

Parents Reply
  • Hello Joakim,

    Thank you for the response.

    So, based on the referenced posts, a modification to the log.c file along with changing callbacks to main.c, there is a workaround for the terminal emulator to log the data, right?

    Also how would you normally view log data from a function like

     __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "----- BLE Mesh Light Switch Server Demo -----\n");

    Does it something to do with a a standalone logger like RTT Viewer?

    Best Regards,

    Rahul R

Children
Related