Dark AI
Dark AI
DIIDevHeads IoT Integration Server
Created by Dtynin on 7/2/2024 in #middleware-and-os
Troubleshooting 'USART Device Not Ready' Error on AVR Microcontroller with Zephyr RTOS
Yea, @Dtynin this is a code example to help illustrate how you can set up and check the USART device: device tree
&usart1 {
compatible = "st,stm32-usart";
current-speed = <115200>;
status = "okay";
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
};
&usart1 {
compatible = "st,stm32-usart";
current-speed = <115200>;
status = "okay";
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
pinctrl-names = "default";
};
prj.conf file:
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_UART_CONSOLE=y
10 replies