I'm doing with the nRF Connect SDK v.19.1, testing the project C:\ncs\v1.9.1\zephyr\samples\hello_world.
The main. c file is
void main(void)
{
printk("Hello World! %s\n", CONFIG_BOARD);
}
To obtain the information from printk function, I added the prj.conf file to the root directory of hello_world, the contents are as followings,
CONFIG_SERIAL=y
#CONFIG_UART_0_NRF_UARTE=y
CONFIG_NRFX_UARTE0=y
CONFIG_PWM=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
But unfortunately, I can not get any things in the RTT Viewer V7.7.0. So it seems that the prj.conf does not work or not work correctly.
Are there any guys facing the same problem just like me and get the answers finally. Could you please share how to do with this. We'd really appreciate it.
Thanks so much.