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!
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
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);
}