S32k344 spi+dma+master

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

S32k344 spi+dma+master

ソリューションへジャンプ
619件の閲覧回数
lluo
Contributor III

Hi , I am trying to configure the spi master with dma enabled based on the project Spi_Transfer_S32K344 provided by S32 DS 3.5. I just added two dma channels in the mcl module and generated the code. The compilation succeeded. When I tried to execute the code , I encountered the following error :

lluo_0-1704969387258.png

When seems to be caused by the two added dma channel.

lluo_1-1704969440033.png

Do you probably know how to fix this error? For your reference, I have attached the project. Thank you in advance.

0 件の賞賛
返信
1 解決策
604件の閲覧回数
lluo
Contributor III

I found the reason why it failed. I need to enable the dma in mcu configuration. The issue can be closed.

lluo_0-1705023380754.png

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
388件の閲覧回数
nehalp
Contributor III

Is the MCAL MCU module required to enable these clocks? Does it do something besides writing the PRTN COFB CLKEN registers?

I'm seeing  eDMA TCD clock registers in MC_ME enabled by Clock_Ip_Init()  if I just use the low-level RTD drivers, but I'm still getting a hardfault when attempting a DMA transfer

0 件の賞賛
返信
605件の閲覧回数
lluo
Contributor III

I found the reason why it failed. I need to enable the dma in mcu configuration. The issue can be closed.

lluo_0-1705023380754.png

 

0 件の賞賛
返信