This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/AM5728: UART operation

Part Number: AM5728


Tool/software: Starterware

Hi all,

I am trying to interface UART1 with AM572x EVM. I am using Processor SDK Linux for it.

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.

Am I missing something? Or anything wrong?

Any working sample code available for the same?

Thanks for the help.

Thanks & Regards,

Sajeevan.K