Hi,
I am working on LPUART - EDMA. I'm having a a problem to send and receive when I enabled the interrupt. Current behavior is like this:
If declare the interrupt
send can be done 1 time only. Receiver is okay but it will need fo be called before calling send
if no interrupt
can send multiple time but receiver side is not working, after call receive it will stuck in the tx callback there.
i also have question regarding the lpuart mask. How do we set the bit value. Please help!!
Hello @Alejandro_Salas ,
I'm using IMX8ULP. I noticed when LPUART1_IRQHandler is exist <even the function is empty> I'm not able to to transmit successfully. I put log inside LPUART1_IRQHandler function. I saw it keep on running non-stop. It doesn't even went into the callback.
Deleting that function solve the problem. However, if I delete it. I'm not able to receive lpuart_edma anymore.
Please assist.
Sorry I reply to wrong one.
Hello @Alejandro_Salas ,
I'm using IMX8ULP. I noticed when LPUART1_IRQHandler is exist <even the function is empty> I'm not able to to transmit successfully. I put log inside LPUART1_IRQHandler function. I saw it keep on running non-stop. It doesn't even went into the callback.
Deleting that function solve the problem. However, if I delete it. I'm not able to receive lpuart_edma anymore.
Please assist.
Hello @abdrhmn
Please check the example in SDK:
IMX8ULP_SDK/boards/evkmimx8ulp/driver_examples/lpuart/edma_transfer
There you can see how to handle an IRQ with eDMA.
Best regards!
Salas.
Hi @Alejandro_Salas ,
The example you mentioned is not using an interrupt. do you have other example? Thanks!