Is there any i.MXRT example code using LPUART_SendEDMA / LPUART_ReceiveEDMA ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Is there any i.MXRT example code using LPUART_SendEDMA / LPUART_ReceiveEDMA ?

跳至解决方案
953 次查看
np
Contributor IV

I'm writing code for i.MX RT106x processors, and would like to use NXP's LPUART_SendEDMA() / LPUART_ReceiveEDMA() library functions (in drivers/fsl_lpuart_edma.c/.h) to handle writes to (and reads from) the various UARTs.

However, the only example code I've found for this is for the NXP Kinetis K22F and KV11 processors, that uses a slightly different NXP DMA manager - DMAMGR_Init() / DMAMGR_RequestChannel() :

https://github.com/kylemanna/kinetis-sdk2/blob/master/boards/frdmk22f/driver_examples/lpuart/edma_tr...

Is there any i.MXRT example code out there using LPUART_SendEDMA / LPUART_ReceiveEDMA ? This may well need nothing more than a handful of i.MXRT DMA initialisation lines to get it working.

Thanks, Nick

标签 (1)
0 项奖励
1 解答
948 次查看
jay_heng
NXP Employee
NXP Employee

You can refer to below demos:

\SDK_2.11.1_EVK-IMXRT1060\boards\evkimxrt1060\driver_examples\lpuart\edma_rb_transfer

\SDK_2.11.1_EVK-IMXRT1060\boards\evkimxrt1060\driver_examples\lpuart\edma_transfer

在原帖中查看解决方案

2 回复数
949 次查看
jay_heng
NXP Employee
NXP Employee

You can refer to below demos:

\SDK_2.11.1_EVK-IMXRT1060\boards\evkimxrt1060\driver_examples\lpuart\edma_rb_transfer

\SDK_2.11.1_EVK-IMXRT1060\boards\evkimxrt1060\driver_examples\lpuart\edma_transfer

941 次查看
np
Contributor IV

Thanks! Perfect answer!

0 项奖励