S32k344 spi+dma+master

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32k344 spi+dma+master

Jump to solution
999 Views
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 Kudos
Reply
1 Solution
984 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
768 Views
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 Kudos
Reply
985 Views
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 Kudos
Reply