Inquiry Regarding DMA Transmission Interference Between LPUART0 and LPUART1 (LIN Channel)

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

Inquiry Regarding DMA Transmission Interference Between LPUART0 and LPUART1 (LIN Channel)

450 Views
dongxun
Contributor III

Dear NXP Team,

  Hello! I am currently working on a project utilizing the LPUART0​ instance for asynchronous UART data transmission with DMA. Additionally, LPUART1​ is configured as a LIN channel​ for communication with a slave device. I have encountered an issue where activating the DMA-based data transmission on LPUART0​ appears to interfere with the transmission process of LPUART1 (LIN channel). Specifically, I have traced the problem to the function Lpuart_Uart_Ip_StartSendDataUsingDma(), which suggests that the DMA Tx interrupt​ may be a contributing factor.

   Could you please help clarify why two separate LPUART instances might experience this type of interference, leading to LIN transmission errors (note: LIN reception remains unaffected)? Any insight into the potential root cause or recommendations for resolving this conflict would be greatly appreciated. Thank you for your time and assistance.

Best regards,

DongXun

0 Kudos
Reply
1 Reply

410 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @dongxun,

Hard to say from the limited description, but since the LIN transmission is timing‑sensitive, have you tried using a higher interrupt priority for the LIN channel?

You did not mention what MCU part you use. But the DMA has also configurable priorities (fixed mode or round-robin) and bandwidth.

There could be also a bug in the RTD. Please specify the RTD version.

 

Regards,

Daniel 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2312653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EInquiry%20Regarding%20DMA%20Transmission%20Interference%20Between%20LPUART0%20and%20LPUART1%20(LIN%20Channel)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312653%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20NXP%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20Hello!%20I%20am%20currently%20working%20on%20a%20project%20utilizing%20the%20LPUART0%E2%80%8B%20instance%20for%20asynchronous%20UART%20data%20transmission%20with%20DMA.%20Additionally%2C%20LPUART1%E2%80%8B%20is%20configured%20as%20a%20LIN%20channel%E2%80%8B%20for%20communication%20with%20a%20slave%20device.%20I%20have%20encountered%20an%20issue%20where%20activating%20the%20DMA-based%20data%20transmission%20on%20LPUART0%E2%80%8B%20appears%20to%20interfere%20with%20the%20transmission%20process%20of%20LPUART1%20(LIN%20channel).%20Specifically%2C%20I%20have%20traced%20the%20problem%20to%20the%20function%20Lpuart_Uart_Ip_StartSendDataUsingDma()%2C%20which%20suggests%20that%20the%20DMA%20Tx%20interrupt%E2%80%8B%20may%20be%20a%20contributing%20factor.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BCould%20you%20please%20help%20clarify%20why%20two%20separate%20LPUART%20instances%20might%20experience%20this%20type%20of%20interference%2C%20leading%20to%20LIN%20transmission%20errors%20(note%3A%20LIN%20reception%20remains%20unaffected)%3F%20Any%20insight%20into%20the%20potential%20root%20cause%20or%20recommendations%20for%20resolving%20this%20conflict%20would%20be%20greatly%20appreciated.%20Thank%20you%20for%20your%20time%20and%20assistance.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EDongXun%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313743%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Inquiry%20Regarding%20DMA%20Transmission%20Interference%20Between%20LPUART0%20and%20LPUART1%20(LIN%20Channel)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313743%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F247897%22%20target%3D%22_blank%22%3E%40dongxun%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EHard%20to%20say%20from%20the%20limited%20description%2C%20but%20since%20the%20LIN%20transmission%20is%26nbsp%3Btiming%E2%80%91sensitive%2C%20have%20you%20tried%20using%20a%20higher%20interrupt%20priority%20for%20the%20LIN%20channel%3F%3C%2FP%3E%0A%3CP%3EYou%20did%20not%20mention%20what%20MCU%20part%20you%20use.%20But%20the%20DMA%20has%20also%20configurable%20priorities%20(fixed%20mode%20or%20round-robin)%20and%20bandwidth.%3C%2FP%3E%0A%3CP%3EThere%20could%20be%20also%20a%20bug%20in%20the%20RTD.%20Please%20specify%20the%20RTD%20version.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E