This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using UART on nRF9160

Hello,

I want to use UART 1 in my project (based on aws_fota sample) and I tried this code but it reboots. I cannot use the debugger (see devzone.nordicsemi.com/.../ozone-settings-with-bootloader). Do someone have an idea ?

Is there any samples how to use peripherals like in nRF5 SDK (because menuconfig is very messy) ?

uart1_dev = device_get_binding("UART_1");

uart_irq_rx_disable(uart1_dev);
uart_irq_tx_disable(uart1_dev);

uart_irq_callback_set(uart1_dev, uart_cb);

uart_irq_rx_enable(uart1_dev);

Parents Reply Children
No Data
Related