Hello,
I'm having an issue with getting a GPIO interrupt to trigger an EDMA event transfer through the CIC.
I have mapped GPIO14 (CIC1 Event #6) to host event/interrupt CIC1_OUT0 (EDMA Event Channel 43). When I toggle GPIO14 I see the status update in the CIC1 "System Interrupt Status Raw/Set Registers", but it doesn't trigger the appropriate bit in the Event Register High (ERH) EDMA register which I think indicates my CIC mapping is not working. The EDMA event transfer never occurs.
I tried to follow the instructions at this webpage:
https://processors.wiki.ti.com/index.php/Configuring_Interrupts_on_Keystone_Devices
The examples at the webpage were not for EDMA interrupts though, so I wasn't sure if the dispatch calls were needed for EDMA.
My code to setup the CIC1 mapping is:
unsigned short cicNumber = 1; unsigned short sysInt = 6; unsigned short hostInt = 0; CpIntc_mapSysIntToHostInt(cicNumber, sysInt, hostInt); CpIntc_enableSysInt(cicNumber, sysInt); CpIntc_enableHostInt(cicNumber, hostInt);
Then I pass 43 in as the channel ID to the various EDMA DRV calls.
Am I missing something in this setup code?
Thank you!
David