Software Uart Using GPIO's.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Software Uart Using GPIO's.

1,740 Views
vipulkumar
Contributor III

Hi,

I am working on a customised i.MX6 Dual board. The board supports 4 UART's but all are used. So, I need to use software UART. I am having 2 GPIO's that I need to configure as UART's Rx and Tx.

OS - Linux

Kernel - 3.10

BSP - Yocto

Can anybody suggest me how to configure GPIO's as a UART or refer some code example ?

Labels (2)
Tags (1)
1 Reply

1,086 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Vipul Kumar,

There is a simple buy excellent tutorial on how to setup a simple Device Tree on the following document. You may find it useful as the first step would be setting the GPIOs on your Device Tree (which is introduced starting Kernel 3.10)

https://community.nxp.com/docs/DOC-329664

There are also examples of a GPIO device tree in the communities, as for example the following thread:

https://community.nxp.com/message/519839

Regarding the actual UART Software implementation there is not an App Note covering this but you may find some software UART examples on the web. It may not be as straightforward as it sounds but already available open source software may help.

Regards,