I have made a PCB using a BL5340PA module, to start i have tried a simple code to see log from RTT using the SWD SWCLK pin, i am using an NRF5340 DK as debugger/programmer, my pin connection bewteen my board and nrf5340 dk seem good as i was able to flash the code without error.
But still can't see the log in JLink RTT Viewer.
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(main, LOG_LEVEL_DBG);
int main(void)
{
LOG_INF("Hello from RTT!");
while (1) {
LOG_DBG("Toggling");
k_msleep(1000);
}
return 0;
}