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
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!
-----------------------------------------------------------------------------------------------------------------------
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.
sudhakarp did you ever come up with a solution for your hardware flow control requirement?
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
hi dave,
i did successfully. thank you.
regards,
sudhakar p
Did you implement it by taking what was in the MQX source, as suggested by Radek?
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
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
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!
-----------------------------------------------------------------------------------------------------------------------