Setup UART-RS485 without using DMA for i.MX RT1170

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

Setup UART-RS485 without using DMA for i.MX RT1170

Jump to solution
757 Views
JayCao
Contributor III

Dear support team,

I am developing a project that uses several LPUARTs for RS232 and RS485.

For RS232, I used it same as the sample source.

However, I hard to find the RS485 configuration on the fls_lpuart.h library.

I read the guide for implementing the RS485 on the i.MX RT series
https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with...

but this one uses DMA to do that.

Could you help to guide me on how to use that without DMA?

Thanks and BRs

 

Tags (3)
0 Kudos
1 Solution
628 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

The UART module just acts as it is, the RS485 is supported with an external transceiver as mentioned in https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with... , whether DMA is used or not. 

 

Hope that makes sense,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

4 Replies
663 Views
JayCao
Contributor III

Hello,

Are there any updates for this question?

0 Kudos
734 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

If you don't prefer to the DMA operation, maybe you can start with the polling or interrupt mode, and we provide such kind of demos in the SDK, you may refer to SDK_2_14_0_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\lpuart for details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
725 Views
JayCao
Contributor III
Hello Kan Li,
Thanks for your answer!
I had seen the lpuart driver examples.
But it looks like support for RS232, which part should I change to use for RS485?
Thank you
0 Kudos
629 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

The UART module just acts as it is, the RS485 is supported with an external transceiver as mentioned in https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with... , whether DMA is used or not. 

 

Hope that makes sense,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------