Hi guys,
I want to send 'a' characters via the uart1 of the nRF52840-DK. I cut the short on the SB6 jumper to disconnect LED 2 from P0.14, which also happens to be TX of uart1.
#include <zephyr/kernel.h>
#include <zephyr/zephyr.h>
#include <zephyr/device.h>
#include <zephyr/drivers/gpio.h>
#include <zephyr/drivers/uart.h>
void main(void)
{
struct device *gpio0_dev = DEVICE_DT_GET(DT_NODELABEL(gpio0));
gpio_pin_configure(gpio0_dev, 14, GPIO_OUTPUT);
struct device *uart_dev = DEVICE_DT_GET(DT_NODELABEL(uart1));
while (true) {
uart_poll_out(uart_dev, 'a');
}
}
According to my protocol analyzer, P0.14 is low all the time.
Thanks for your help in advance!