DMAMUX_CHCFG Source for SPI0 transmit/receive

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

DMAMUX_CHCFG Source for SPI0 transmit/receive

Jump to solution
688 Views
MehmetAliIpin
Contributor V

Dear community,

I am trying to establish a slave SPI0 interface with DMA0 with DMAMUX2. When I write the DMAMUX_CHCFG_SOURCE(13) to the DMAMUX0_CHCFG2 I get all

DOE,

DAE,

SOE,

SAE

error bits of DMA0 Error status registere are set.

DMAMUX0_CHCFG2 = DMAMUX_CHCFG_SOURCE(13) |  DMAMUX_CHCFG_ENBL_MASK;

I am using the number 13 because of table 8-2 of ref. manual.

How can I tell the DMAMUX unit that I will connect it SPI0 transmit/receive?

Thanks and best regards

Mehmet Ali Ipin

Labels (3)
0 Kudos
1 Solution
504 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

View solution in original post

0 Kudos
3 Replies
504 Views
timesyssupport
Senior Contributor II

Hello Mehmet,

Have you followed both notes in section 22.3.1 in the Vybrid reference manual? I am unsure if your code:


DMAMUX0_CHCFG2 = DMAMUX_CHCFG_SOURCE(13) |  DMAMUX_CHCFG_ENBL_MASK;


will work due to the note, "Before changing the trigger or source settings, a DMA channel must be disabled via the CHCFGn[ENBL] bit.". Try disabling the CHCFGn[ENBL] bit, set the source, then enable the CHCFGn[ENBL] bit.

Thanks,

Timesys Support

0 Kudos
504 Views
MehmetAliIpin
Contributor V

Dear Timesys support,

Thank you very much,

Now I can transmit with SPI0 DMA channel.

0 Kudos
505 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

0 Kudos