Question of EDMA and LPUART receive

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

Question of EDMA and LPUART receive

1,679 次查看
rotato
Contributor II

Hi,

I have a project of EDMA and LPUART  ,used S32K SDK. These are the codes snippet .

for(;;){

   PRINTF(welcomeMsg);    //LPUART send 

   readfromconsole(buffer);  //LPUART receive 

   PRINTF((char *)buffer);   // LPUART send 

   clearBuff(buffer,255);      // clear the buffer
}

These codes "readfromconsole(buffer);" only can execute at the first loop , so I just can input words form the PC CommUart assistant  only one time.

I can not resolve the problem.The whole project  is attached.

Forward your help ,thanks!

标记 (5)
0 项奖励
回复
2 回复数

1,493 次查看
raresvasile
NXP Employee
NXP Employee

Hi,

It worked on my side using S32K144-EVB.

Please make sure that the terminal is appending \n(LF) to the message and that there are no breakpoints in readfromconsole.

Best regards,

Rares

0 项奖励
回复

1,493 次查看
rotato
Contributor II

Hi,Rares

I'm sure there are no breakpoints in readfromconsole and the message is end of "\n". But the function "readfromconsole" only  can execute at the first loop.As I debugged the project, I found it had stepped into these codes "LPUART_DRV_IRQHandler" and cannot stepped out.

void LPUART2_IrqHandler(void)
{
    LPUART_DRV_IRQHandler(2);
}

0 项奖励
回复