DMAMUX_CHCFG Source for SPI0 transmit/receive

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DMAMUX_CHCFG Source for SPI0 transmit/receive

ソリューションへジャンプ
2,258件の閲覧回数
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 解決策
2,074件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
2,074件の閲覧回数
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 件の賞賛
返信
2,074件の閲覧回数
MehmetAliIpin
Contributor V

Dear Timesys support,

Thank you very much,

Now I can transmit with SPI0 DMA channel.

0 件の賞賛
返信
2,075件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you help with this case?

0 件の賞賛
返信