Hi,
µC - MK66
I am trying to configure a EDMA transfer with SPI and PIT with the peripheral Tool.
My requirement is , On a GPIO interrupt I need to trigger a PIT(PIT0) which inturn needs to trigger the SPI-EDMA transfer
40 Transfers ( on Each Transfer 4 * 2 Bytes data )
So I configured
DMA #60: AlwaysOn 60 - for Tx to SPI1 through eDMA Ch-0
, with Tx to SPI1->PUSHR
and #16: SPI1 Receive for Rx messages. eDMA Ch-1
with recieve data Rx on SPI1->POPR
I return the Transaction to µC after 40 Transfers (On Major Loop Completion)
are completed to stop the PIT and continue.
On Non-transactional (TCD structure)
Minor Count of 4
Major Count of 40
I also configured SPI1 seperately with its configuration
I am not able to see any SPI transfers happening. And Also based on these Peripheral Setting, execution asserts on Initialization DSPI_MasterTransferCreateHandleEDMA (edmaRxRegToRxDataHandle, edmaTxDataToIntermediaryHandle)
I am able to get the interrupt and start the PIT
As I need to configure PIT to trigger DMA, I did not enable interrupts on it.
What am i Missing?
Any info would be helpful.