i.mx93 LPSPI + eDMA problem on Cortex-M33

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

i.mx93 LPSPI + eDMA problem on Cortex-M33

Jump to solution
1,555 Views
albi84
Contributor II

I’m using a Tria i.MX9332 (B1 silicon) SMARC module and trying to use LPSPI6 with eDMA on the Cortex-M33, but I can’t get it working.

Development environment

  • VS Code 1.109.0

  • MCUXpresso for VS Code extension 26.1.56

  • SDK 25.09.00

Hardware

  • Tria SM2S-IMX93 on a custom carrier board

  • LCD with ILI9341 controller connected via SPI (LPSPI6)

Current status

  • The display works correctly when using LPSPI6 without DMA.

  • I’m trying to switch to LPSPI6 + eDMA to improve throughput, but I cannot get completion notification.

Issue
The DMA-based transfer appears to start, but I never receive the LPSPI DMA completion callback at the end of the transfer.

Details and relevant code/config are in the attached file.
Could someone point out what I might be missing, or why the callback is not triggered?

0 Kudos
Reply
1 Solution
1,495 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @albi84 

Please refer the attachment patch file configuration the LPDPI with EDMA

B.R

View solution in original post

0 Kudos
Reply
4 Replies
1,496 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @albi84 

Please refer the attachment patch file configuration the LPDPI with EDMA

B.R

0 Kudos
Reply
1,474 Views
albi84
Contributor II

Thank you for the sample code. Reviewing the example helped me to make it work.

0 Kudos
Reply
1,296 Views
rti
Contributor II

Hello,

 

Can you please share the skeleton for the LPSPI with eDMA?

 

Thanks.

0 Kudos
Reply
1,160 Views
albi84
Contributor II

It is not a skeleton but the actual code I use. Does this help?