Question of EDMA and LPUART receive

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

Question of EDMA and LPUART receive

1,248 Views
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!

0 Kudos
Reply
2 Replies

1,062 Views
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 Kudos
Reply

1,062 Views
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 Kudos
Reply