Hi,
I am unable to do simple uart communication in BBB. I have set device tree
uart2_pins: uart2_pins {
pinctrl-single,pins = <
0x154 0x01
0x150 0x31
;
};
&uart2 {
status = “okay”;
pinctrl-names = “default”;
pinctrl-0 = <&uart2_pins>;
};
then I configure the UART Port
stty -F /dev/ttys0 cstopb -evenp ispeed 115200
Then I made a user space application for reading and writing data to
device file. I have attached the application program
I connected Tx and Rx pin in same BBB.(Loop back mode)
But I am not able to do simple UART communication in loop back
mode. Do am I missing something? Please help me
uart_1.c (1.06 KB)
Hi,
I am unable to do simple uart communication in BBB. I have set device tree
uart2_pins: uart2_pins {
pinctrl-single,pins = <
0x154 0x01
0x150 0x31
;
};
&uart2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins>;
};
then I configure the UART Port
stty -F /dev/ttys0 cstopb -evenp ispeed 115200
^^^^^^^^^
stty: /dev/ttys0: No such file or directory
uart2 is not /dev/ttyS0.
uart0 = /dev/ttyS0
uart1 = /dev/ttyS1
uart2 = /dev/ttyS2
Regards,
Peter Hurley
Are you sure, that you selected the right UART port???
I believe it can be now since v3.19.x but we don’t know the kernel version he’s using so all we can do is guess :(.
There’s a recent thread here with some links with instructions on how to set it up so perhaps the OP can give that a go :thumbup:.