DMAMUX_CHCFG Source for SPI0 transmit/receive

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

DMAMUX_CHCFG Source for SPI0 transmit/receive

跳至解决方案
1,355 次查看
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

标签 (3)
0 项奖励
回复
1 解答
1,171 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,171 次查看
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 项奖励
回复
1,171 次查看
MehmetAliIpin
Contributor V

Dear Timesys support,

Thank you very much,

Now I can transmit with SPI0 DMA channel.

0 项奖励
回复
1,172 次查看
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

0 项奖励
回复