Hi,
I'm trying to send a string message via LPUART1 inside a PORTC Interrupt Service Routine. I configured the LPUART with DMA (Ch1 Rx and Ch2 Tx). Inside the ISR I call the function:
LPUART_DRV_SendData(INST_LPUART1, (uint8_t *)msg, strlen(msg));
to send the string msg on a terminal.
The result is that if i press SW3 or SW4 on the S32K148 EVB the ISR is called correctly, but on the terminal the message start a infinite loop. My goal is to send msg each time the ISR is executed.
If I use LPUART_DRV_SendData to send a message in the main function it works as expected.
Can someone please help me to understand this behaviour?
Thanks