Hi,
I have this setup:
MacBook -> iMCU USB (J2) <-> nRF5340 DK <-> P19 Debug Out -> My PCB board
I can currently flash my nRF 5340 successfully and I can connect using the RTT Viewer inside of Visual Studio Code.
My P19 port is using the SWDIO and SWDClk to connect to my board.
I have in my prf.conf the following:
CONFIG_EARLY_CONSOLE=y
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT_MODE_BLOCK=n
CONFIG_PRINTK=y
CONFIG_LOG_PRINTK=n
CONFIG_SERIAL=n
And my src code is:
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/sys/printk.h>
int main(void)
{
printk("Application started via RTT\n");
while (1) {
printk("application running...\n");
k_sleep(K_SECONDS(1));
}
return 0;
}
My problem is that I cannot get anything to print in the output. I have tried multiple things and nothing works. Any idea to fix this?