Spi2 dma

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

Spi2 dma

484 Views
Asaf
Contributor I

I work with mk64fn1m0xx12

1. SPI2 CAN WORK WITH DMA?

Beacuse thereis is not source for tx and rx to dmamux only tx or rx

2.can i use gpio faling adge to trigger DMA Connected to SPI2.?

ADVICE

THANK

0 Kudos
Reply
2 Replies

443 Views
Asaf
Contributor I

Hi,

I configure spi0 to work with dma and it work properly.

I configura spi2 to work with dma diferent channel the first time i send 1byte i get interrupt and the data is ok. The second time i send 24 bytes only the first byte that transmit is correct and the other is not match to what i send and im not get interrupt at the end

Advice

0 Kudos
Reply

462 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. You are right. DMA request source for SPI2 is Transmit or Receive. There is not a separate source like with SPI0, but you can use it.

Yes, if your requirement is to use SPI2, you could use another pin for GPIO to trigger DMA.

Also, maybe this community post might be helpful: Using the DMA module in Kinetis Devices - NXP Community

 

Best Regards,

Ricardo

0 Kudos
Reply