This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTT logs on central_and_peripheral_hr v.1.8.0

Added the below lines to the peripheral_hr and I could see the logs without any trouble.

Same lines added to the central_and_peripheral_hr and I can see anything. What I am missing?

# RTT Log Enanble
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_PRINTK=y

Many Thanks!

  • For some reason, CONFIG_PRINTK=y gets ignore in printk function

    void printk(const char *fmt, ...)
    {
    	va_list ap;
    
    	va_start(ap, fmt);
    
    	if (IS_ENABLED(CONFIG_LOG_PRINTK)) {
    		log_printk(fmt, ap);
    	} else {
    		vprintk(fmt, ap);
    	}
    	va_end(ap);
    }

    Any help?

  • Ok. So commenting out the following line in the prj.conf will solve this issue:

    #CONFIG_NCS_SAMPLES_DEFAULTS=y

    What is this config option for?

    If removed, would it affect the normal functioning of the  central_and_peripheral_hr sample?

    Thanks

Related