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
Solved! Go to Solution.
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
Dear Timesys support,
Thank you very much,
Now I can transmit with SPI0 DMA channel.