imx6q UART CTS/RTS Issue

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

imx6q UART CTS/RTS Issue

2,615 Views
angelo_d
Senior Contributor I

Dear all,

i am using a kernel 3.10.17 on a board very similar to sabre-lite board.

I have an HCI/ BT module connected on uart2, that needs flow control.

After reset, the module sends on UART TX (imx6 RX) a train of data, scanning for firmware to be downloaded from bluez hciattach.

With pinmux settings for CTS and RTS commented out, i see the burst of data only on imx6 RX, as it should be, and i can upload the firmware successfully. Just after i have issues since the flow control is off.

If i enable pinmux ctrl pins for CTS and RTS, i see this burst of data in TX replicated on RX pin, RTS and CTS pins. And due to same train of data also in imx6 TX, i cannot upload the firmware anymore. Why this signal is now on all 4 UART pins ?

Thanks

Angelo

Labels (1)
0 Kudos
5 Replies

1,111 Views
mohammedazlum
Contributor IV

Hello,

Have you connected HCI BT modules directly into the iMX6 ?

Or Did you put any bridge between iMX6 CPU and youyr BCI BT ?

Regards,

Azlum

0 Kudos

1,111 Views
marcocavallini
Contributor V

Are your RTS/CTS signal working then?

0 Kudos

1,111 Views
angelo_d
Senior Contributor I

Hi all,

thanks,

i had some linux devicetree issues mainly, something wrong in the syntax was not enabling really the flow control on those pins. Yes, now, with proper pinmux config, it works.

0 Kudos

1,111 Views
marcocavallini
Contributor V

Hi Angelo,

I still am struggling to make RS work.

Would you mind to share an excerpt of your DT please?

I am doing tese settings at the moment

https://community.freescale.com/thread/353966

1,111 Views
Yuri
NXP Employee
NXP Employee

IMX6 UART has some specific implementation features. The i.MX6 DQ Reference

Manual provides clear description about internal signals and (external) multiplexing
for them. Table in the Datasheet helps to clarify it. Also - the following thread in Community
may be helpful.

"i.MX6: What does the DTE/DCE in i.MX6's UART do and how are RTS and CTS affected
by the UARTxUFCR[DTEDCE] bit?"

https://community.freescale.com/docs/DOC-97509#

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------