Question of EDMA and LPUART receive

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Question of EDMA and LPUART receive

1,682件の閲覧回数
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,496件の閲覧回数
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,496件の閲覧回数
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 件の賞賛
返信