The GPIO1_IO03 pad has an alternate function SDMA1_EXT_EVENT0(ALT5) according to the NXP IMX8M reference manual.
When I configure the IOMUX to enable SDMA_EXT_EVENT0 on GPIO1_IO03 pad. The SDMA goes to an unpredictable state after SDMA is Initialised using SDMA_Init() API on the Mcuexpresso SDK.
I see a lot of events pending on SDMA1 i.e SDMAARM1->EVTPEND reg value is 0x24da1f7f.
If the IOMUX is configured to set the GPIO1_IO03 pad to GPIO1_IO03, The SDMAARM1->EVTPEND reg value is 0x0.
Is there a way to reset the SDMA EVTPEND register?
I am using the Mcuxpresso SDK ECSPI SDMA example to initialize the SDMA and read the registers.