Tool/software: Linux
Hi all,
I have a code for UART transmission and reception, which was finely working with Beaglebone Black(BBB).
Now I am trying to use the same code for AM572x EVM.
For AM572x EVM, I modified the .dts file am57xx-evm.dts and the modified portions are as shown below.
&dra7_pmx_core {
pinctrl-names = "default";
pinctrl-0 = <&board_pins>;
board_pins: pinmux_board_pins {
pinctrl-single,pins = <
0x2E0 0x020E
0x2D8 0x020E
0x74 0x020E
0x88 0x020E
0xC4 0x060E
0xCC 0x060E
0xD8 0x060E
>;
};
uart1_pins: pinmux_uart1_pins {
pinctrl-single,pins = <
0x3E0 (PIN_INPUT_PULLUP | MUX_MODE0) /* UART1 RXD */
0x3E4 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* UART1 TXD */
>;
};
};
&uart1 {
status="okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
};
Also the code that I am using is started with
ser_fd = open("/dev/ttyS1",O_RDWR | O_NOCTTY);
if(ser_fd == -1)
{
printf("\n Error! in Opening ttyS1\n");
}
else
{
printf("\n ttyS1 Opened Successfully\n");
}
tcgetattr(ser_fd, &ser_settings);
cfsetispeed(&ser_settings,B9600);
cfsetospeed(&ser_settings,B9600);
Here the file /dev/ttyS1 is opened successfully.
But transmission or reception is not happening.
A I missing something? Or anything wrong?
Any working sample code available for the same?
Thanks for the help.
Thanks & Regards,
Sajeevan.K