Hello,
I'm working with the following software configuration:
- Code Composer Studio version CCS 6.1.1.00022
- SYS/BIOS 6.42.2.29 Real Time Operating System
- XDC Tool 3.31.2.38_core
- Compiler GNU v4.8.4 (Linaro)
- NDK 2.24.3.35
- Sysbios sdk 2.1.1.2
I am trying to configure GPIO0-19pin as a external input interrupt on AM3359 ICE v2.
First, I have configured the pin(GPIO0-19) as input, and I have verified that I can read the input status Hi and Lo of this pin by polling.
Then, I have tried to generate an interrupt on the rising edge of this input. I've written the following code:
// GPIO config
GPIOSetDirMode(baseAddr, pinNum, GPIO_DIRECTION_INPUT);
GPIODebounceFuncEnable(baseAddr, pinNum, FALSE);
GPIOSetIntrType(baseAddr, pinNum, GPIO_INTR_MASK_RISE_EDGE);
GPIOIntrEnable(baseAddr, 96, pinNum);
GPIOGlobalWakeupDisable(baseAddr);
GPIOWakeupIntrDisable(baseAddr, 96, pinNum);
// Interrupt config
gIrqTopZIntrParams.triggerType = INTC_TRIG_RISING_EDGE;
gIrqTopZIntrParams.priority = 20U;
gIrqTopZIntrParams.pFnIntrHandler = topZitIsr;
gIrqTopZIntrParams.pUserParam = 0U;
gIrqTopZIntrParams.isIntrSecure = FALSE;
INTCConfigIntr(96,&gIrqTopZIntrParams, FALSE);
I think I've made the right configuration but when I debug my code I never go to my ISR: topZitIsr.
I have already tried to put gIrqTopZIntrParams.pFnIntrHandler = &topZitIsr but I never reach the function.
Is there someone who is able to help me on that case ? Is There any Texas documentation or example that can explain how to configure an interrupt on GPIO on ARM3359 ?
I have found a similar topic in the forum https://e2e.ti.com/support/arm/sitara_arm/f/791/p/498699/1837773#1837773
Thanks a lot for your help.
Laurence