No Serial Output

Hi,

I am using an nRF52840 Dongle board and am not seeing any serial output. This is a board and set up I have used previously so I know the hardware is OK. I can download an old hex file and everything works fine so Im guessing a config may have changed since I looked at this last, its been a few months.

I am simply trying to use the standard "Hello world" sample. My code looks like this

#include <zephyr.h>

void main(void)
{
	printk("Hello World! %s\n", CONFIG_BOARD);

}

and my prj file looks like this

CONFIG_PRINTK=y
CONFIG_LOG_PRINTK=y

and my overlay file looks like this

&uart0 {
  compatible = "nordic,nrf-uart"; 
  status = "okay";  
  current-speed = <115200>;
  tx-pin = <20>;
  rx-pin = <24>;
};

Thanks,

Rod

Related