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

NRF_LOG_INFO and printf does not work

Hello,

I am trying to print things from my board. I would like to go with NRF_LOG_INFO. I have the modules enabled, included the essential libraries, including the c files, but it does not work.

uint32_t err_code = NRF_LOG_INIT(NULL);
    APP_ERROR_CHECK(err_code);

    NRF_LOG_DEFAULT_BACKENDS_INIT();
	NRF_LOG_INFO("Hi!");
	NRF_LOG_FLUSH();
	NRF_LOG_PROCESS();
	
    //gpio_init();
	pin_init();
	NRF_LOG_INFO("Pin Init OK?");
	NRF_LOG_FLUSH();
	NRF_LOG_PROCESS();
	
	comp_init();
	NRF_LOG_INFO("COMP Init OK?");
	NRF_LOG_FLUSH();
	NRF_LOG_PROCESS();
	
	NRF_LOG_INFO("Ready...");
	NRF_LOG_FLUSH();
	NRF_LOG_PROCESS();

I am using NRF52DK with SDK v14.20. I use PuTTY and have connected to the correct virtual COM port with the correct configuration.

Is there anything I may be missing?

Thank you in advance.

Parents Reply Children
No Data
Related