According to the reference manual (S32K144) the clock source for the DMA module is System Clock which is not gated via PCC, and yet if I comment the following line out, the code doesn't work.
PCC->PCCn[PCC_DMA0_INDEX] |= PCC_PCCn_CGC_MASK; // CGC=1: Clock enabled for DMA0
So what is going on here?
even in the design studio debugger's PERIPHERAL REGISTER view, PCC_DMA doesn't exist. This is a bit confusing .
In one of the S32K144.H variant PCC_DMA0_INDEX is defined as 8.
BUT AS I MENTIONED BEFORE there is no reference to this in the user manual or anywhere. I may be missing something.
Can someone clarify please.