Re: Rs-485 Linux embedded

29 views
Skip to first unread message

Micka

unread,
Aug 2, 2017, 12:26:22 PM8/2/17
to Angelo Fares Menhem, Eldo Jose Dos Santos, Cloves Pereira Rafael, beagl...@googlegroups.com
Well, to summarize you have to compile the kernel 4.4: in the menu of the configuration, you switch to omap-serial.c  with CONFIG_SERIAL_OMAP

and on the device tree you have to put something like :


&am33xx_pinmux {
....
uart1_pins: pinmux_uart1_pins {
pinctrl-single,pins = <
AM33XX_IOPAD(0x980, PIN_INPUT | MUX_MODE0)     /* P9.26 uart1_rxd.uart1_rxd  INPUT   OK*/
AM33XX_IOPAD(0x984, PIN_OUTPUT | MUX_MODE0) /* P9.24 uart1_txd.uart1_txd  OUTPUT   OK*/
AM33XX_IOPAD(0x9a4,  PIN_OUTPUT | MUX_MODE7) /* TX enable GPIO 3_19   OK*/
AM33XX_IOPAD(0x848,  PIN_OUTPUT | MUX_MODE7) /* RX enable P9.14 GPIO 1_18 mode 7 OK*/
>;
};
.....

};


&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay";
rts-gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>; // 3_19
cts-gpio = <&gpio1 18 GPIO_ACTIVE_HIGH>; // 1_18
rs485-rts-active-high;
rs485-rts-delay = <0 0>;
linux,rs485-enabled-at-boot-time;
};


Enjoy !

Micka,


Le mer. 2 août 2017 à 17:33, Angelo Fares Menhem <ang...@concert.com.br> a écrit :
Eldo

Attached are the prints of my chat wit Michael Musset.

Please follow his instructions.

He kindly offered to help us via email.

If necessary send him a message copying me.

Regards

Angelo Fares Menhem

unread,
Aug 2, 2017, 9:38:23 PM8/2/17
to Micka, Eldo Jose Dos Santos, Cloves Pereira Rafael, beagl...@googlegroups.com
Micka,

Eldo succeeded in building the kernel and the device tree. It worked like a breeze (so far). 

Thank you very much. You have made friends here. If you need  help in anything that we can help, just let me know. 

Best regards

Angelo

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages