Need help with LPUART-EDMA

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

Need help with LPUART-EDMA

595 Views
abdrhmn
Contributor I

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!!

0 Kudos
Reply
5 Replies

578 Views
abdrhmn
Contributor I

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.

0 Kudos
Reply

581 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @abdrhmn ,

 

Could you please share what MPU/MCU are you using?

 

Best regards!

 

Salas.

0 Kudos
Reply

574 Views
abdrhmn
Contributor I

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.

0 Kudos
Reply

558 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply

490 Views
abdrhmn
Contributor I

Hi @Alejandro_Salas ,

The example you mentioned is not using an interrupt. do you have other example? Thanks!

0 Kudos
Reply