Hi,
We have functioning application code under the 2.4.4 SDK development setup. I would like to start migrating to newer code but am encountering issues. (Ultimately, I would like to progress to the latest version as well but I think we will do this step by step)
Everything works fine into the initialization until we get to the UART initialization:
static int uart0_init(void)
{
int retval;
struct uart_config uart0cfg;
uart0_dev = DEVICE_DT_GET(UART_0);
if (!device_is_ready(uart0_dev)) {
/* Not ready, do not use */
LOG_ERR("Could not get UART0 device\n");
return -ENODEV;
}
uart0cfg.baudrate = 460800;
uart0cfg.data_bits = UART_CFG_DATA_BITS_8;
uart0cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE;
uart0cfg.parity = UART_CFG_PARITY_NONE;
uart0cfg.stop_bits = UART_CFG_STOP_BITS_1;
retval = uart_configure(uart0_dev, &uart0cfg);
uart_callback_set(uart0_dev, uart0_cb, NULL);
uart_rx_enable(uart0_dev, uart0_rx_buf, sizeof(uart0_rx_buf), 100);
uart_irq_rx_enable(uart0_dev);
return retval;
}
It fails the device_is_ready test. There don't appear to be any conflicts in the dts/overlay or dtsi files. (these are custom).
I have looked through the migration guides and don't see anything that would point to an issue.
Do you have any guidance on how to get better debug information from the device_is_ready functions?
Thanks!
