I'm trying to use printk for debugging with a) NRF5340 DK and a) NRF5340 AUDIO DK
With prj.conf (info from here):
CONFIG_LOG=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
main.c
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
void main(void)
{
while(1) {
printk("hello\n\r");
k_msleep(1000);
}
}
I can display with VCOM1 in NRF5340 DK, but not with RTT in both NRF5340 DK and NRF5340 AUDIO DK (AUDIO DK doesn't show any VCOM).
Next i tried this configuration (same main.c) in prj.conf:
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
And with RTT i can see the printk message only with NRF5340 DK, but not with NRF5340 AUDIO DK.
So, why printk cannot be seen with RTT in NRF5340 AUDIO DK?