I have enabled UART_1 but cant seem to send any data or receive any, I have hooked it up to logic analyser and cant see any trx data coming from the board.
If i set my config to output debug over uart1 instead of default uart0 It works, so my pin setup must be correct.
here is my prj.conf
CONFIG_SERIAL=y CONFIG_UART_NRFX=y CONFIG_TRUSTED_EXECUTION_NONSECURE=y CONFIG_UART_INTERRUPT_DRIVEN=y
and my pin setup
&uart1 {
status = "okay";
current-speed = <9600>;
tx-pin = <5>;
rx-pin = <6>;
};I am trying to send data using this command
struct device *uart1_dev;
uart1_dev = device_get_binding("UART_1");
uart_irq_callback_set(uart1_dev, uart_cb);
uart_irq_rx_enable(uart1_dev);
while (1)
{
uart_fifo_fill(uart1_dev, "AT\r" ,sizeof("AT\r"));
k_sleep(K_MSEC(2000));
}
Thanks