frdmk64f uart flow control RTS/CTS

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

frdmk64f uart flow control RTS/CTS

3,094 Views
sudhakarp
Contributor V

Hi,

     how to implement flow control in FRDMK64f120 controller. i am using KDS2.0 IDE and KSDK 1. 1.0 MQX example program.

how to implement RTS/CTS flow control in "hello world" example project.

regards,

sudhakar p

10 Replies

1,562 Views
RadekS
NXP Employee
NXP Employee

Unfortunately UART driver in KSDK 1.1 do not support hardware flow control and version 1.2 will not solve it also.

We also don’t have any example code or modification for adding hardware flow control support to KSDK UART driver.

As free inspiration for your own modifications you can use MQX 4.1.1 (MQX4.2) serial driver which contains hardware flow control support.

I hope it helps you.

Have a great day,
RadekS

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

0 Kudos

1,562 Views
sudhakarp
Contributor V

hi Radek

     how can i use MQX 4.1.1 example into KSDK1.1.0  if possible can you modify KSDK "hello_example" with flow control using UART-3 are UART-4 RTS/CTS pins.

0 Kudos

1,562 Views
dave408
Senior Contributor II

sudhakarp​ did you ever come up with a solution for your hardware flow control requirement?

0 Kudos

1,562 Views
RadekS
NXP Employee
NXP Employee

Hi dave408,

I am afraid that this currently still missing even in KSDK 2.0 feature plan. But this plan isn’t still fixed, therefore there is still a chance that it will be in next KSDK version (Unfortunately I cannot promise it).

Best Regards

RadekS

0 Kudos

1,563 Views
sudhakarp
Contributor V

hi dave,

     i did successfully. thank you.

regards,

sudhakar p

0 Kudos

1,563 Views
dave408
Senior Contributor II

Did you implement it by taking what was in the MQX source, as suggested by Radek?

0 Kudos

1,563 Views
sudhakarp
Contributor V

hi,

No,i am not tried with MQX 4.1.1. Actually am using KSDk 1.1.0 so i wrote my own code (with Radek support).

regards,

sudhakar p

1,563 Views
nitinharish
Contributor V

Do you mind sharing code with the community sudhakarp‌ ?

Or RadekS‌, do you mind describing it ?

I am using FreeRTOS v 9.0.0 with KSDK 2.1.0 on my KL17Z256VFT4 chip and want to use flow control RTS and CTS lines.

0 Kudos

1,563 Views
RadekS
NXP Employee
NXP Employee

Hi Nitin,

Unfortunately, I left MQX team some time ago. Now I support 16bit MCUs.

Therefore, my experience with KSDK and UART driver are limited.

I am afraid that I cannot help you directly. Please contact @danielchen%40fsl). He should be able to help you – at least by some advice.

I hope it helps you.

Have a great day,
Radek

0 Kudos

1,563 Views
RadekS
NXP Employee
NXP Employee

Serial driver in MQX 4.1.1 is located at c:\Freescale\Freescale_MQX_4_1\mqx\source\io\serial\

Serial driver in KSDK 1.1 is located at c:\Freescale\KSDK_1.1.0\platform\drivers\src\uart\

Code related to hardware flow control in MQX 4.1.1 serial driver could be detected by occurrence of IO_SERIAL_HW_FLOW_CONTROL macro.

RTS (Request to Send) and CTS (Clear to Send) signals: These two lines allow the receiver and the transmitter to alert each other to their state. A transmitter raises its RTS line, which causes an interrupt on the receiver, i.e - hey can I send some data?. If the receiver is in a position to receive the data it will assert its CTS line, i.e - yes you can start sending.

In fact, you can use also any IO pins for handling RTS,CTS pins instead of hardware feature in UART module.

I hope it helps you.

Have a great day,
RadekS

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

0 Kudos