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

Get Mesh Light Switch Demo to output log over UART

Hello,

Is there a way to get the output log for the Mesh Light Switch Demo to output over UART instead of RTT? We are using a Fanstel BT832X module containing an nRF52832 on a shield which connects to the PCA10040 DK for programming.

The shield can be powered and run independently while disconnected from the DK, therefore I need to see debugging information over the UART because the BT832X is connected to an FTDI chip with the correct pins for RX, TX, etc. specified in custom_board.h included in boards.h.

Basically I'm asking is there a way to get __LOG() in main.c for the provisioner demo to output over UART instead of RTT? I'm using Mesh v2.1.1 and nRF5 SDK v15.0.0.

I've tried defining UART_CONFIG_LOG_ENABLED to 1 in sdk_config.h but it didn't do anything.

Thank you.

Related