Hi,
1.)
I am programming a custom board based on NRF52833 using NRF52833-DK using SWIO/SWCLK interfaces using Segger Embedded Studio with NCS v1.6.1.
I am trying to print some logs from my programmed custom board on the RTT terminal but it looks like RTT prints the output very very slowly and misses a lot of prints.
Below is a snippet of the code I am using in main.c:
#include <errno.h>
#include <zephyr.h>
LOG_MODULE_REGISTER(main);
void main(void)
{
while(1){
LOG_INF("Hello World!\r\n");
printk("Printk messages\r\n");
k_sleep(K_MSEC(100));
}
}
Below is the proj.conf file I am using:
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_MAIN_STACK_SIZE=4096
Below is a snapshot of what the RTT terminal looks like (I am also getting some weird errors at the beggining):

Is there anything that I am doing wrong? What should be done to speed up the RTT output?
2.)
I am not able to use NRF_LOG_INIT and NRF_LOG_INFO macros. It throws an error saying the functions are undefined.
The following headers are also not getting included in the project:
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default_backends.h"
Is there a reason why am I unable to use these logging functions ? As stated I am using SES with ncs v1.6.1
Any help on these 2 questions will be greatly appreciated.