LPUART Example code not working with eDMA

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

LPUART Example code not working with eDMA

跳至解决方案
3,747 次查看
axb
Contributor II

Project is created from S32K144 EAR SDK Example Projects. But there is no communication with UART. The same code is working with Interrupts. I have changed lpuart_user_config_t lpuart1_InitConfig0. (.transferType = LPUART_USING_DMA,)

Am I missing any configuration?

1 解答
3,133 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

to be able use  eDMA  data transfer mode - you also need init eDMA driver by adding this line in the main function:

EDMA_DRV_Init(&dmaController1_State, &dmaController1_InitConfig0);

front of UART init. 

Another suggestion from SDK team is to use latest RTM SDK version. Lot of bugs is fixed there. 

Jiri 

在原帖中查看解决方案

6 回复数
3,134 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

to be able use  eDMA  data transfer mode - you also need init eDMA driver by adding this line in the main function:

EDMA_DRV_Init(&dmaController1_State, &dmaController1_InitConfig0);

front of UART init. 

Another suggestion from SDK team is to use latest RTM SDK version. Lot of bugs is fixed there. 

Jiri 

3,133 次查看
axb
Contributor II

Thanks. It worked. Could you let me know how do I update my current SDK?

0 项奖励
回复
3,133 次查看
jiri_kral
NXP Employee
NXP Employee

If you have installed all updates (main menu bar -> Help -> Check for updates) - you can create project from example with latest SDK version 

pastedImage_1.png

Jiri

3,133 次查看
axb
Contributor II

Could you also look into another question of mine https://community.nxp.com/thread/456468?sr=inbox ?

0 项奖励
回复
3,133 次查看
axb
Contributor II

Thanks

0 项奖励
回复
3,133 次查看
jiri_kral
NXP Employee
NXP Employee

Hello, 

I tried LPUART example - and for me even the interrupt mode is not working correctly. I can get welcome message, but no response to typing. I sent email to SDK team for solution and I'll respond when I get answer. 

Jiri