S32k344 spi+dma+master

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

S32k344 spi+dma+master

跳至解决方案
617 次查看
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 解答
602 次查看
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 回复数
386 次查看
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 项奖励
回复
603 次查看
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 项奖励
回复