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

Unable to print messages using NRF_LOG_INFO()

#include "nrf_drv_spi.h"
#include "app_util_platform.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#include "boards.h"
#include "app_error.h"
#include <string.h>
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
#include "nrf.h"
#include "nrf_drv_gpiote.h"
#include "nrf_power.h"
#include "bsp.h"
#include "system_nrf52.h"
#include "nrf_pwr_mgmt.h"
#include "app_uart.h"

#define LED1         BSP_LED_0
#define LED2         BSP_LED_1
#define LED3         BSP_LED_2
#define LED4         BSP_LED_3 

int main(void){
	APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
    NRF_LOG_DEFAULT_BACKENDS_INIT();
    NRF_LOG_INFO("MCU WAKEUP");

    while (1)
    {
    	 NRF_LOG_INFO("This should be displayed");
    }
}

Related