This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

66AK2G12: Request a gpio interrupt example.

Part Number: 66AK2G12

I'm working a DSP of 66AK2G12 in a baremetal environment referring to this FAQ.

GPIO is operating well without any problems. Now, I'm going to set another gpio pin of EVMK2G as input and use it as an external interrupt.

I tried to achieve the purpose by modifying the contents of GPIO_soc.c, but it has not been successful yet.

GPIO_socSetInitCfg(), GPIO_setCallback(), and GPIO_enabledInt() functions were used with GPIO_init() functions. Is there something wrong with my method?

The gpio callback function still does not work.

I couldn't find an example for EVMK2G in the CSL folder.

Please enable gpio interrupt in the baremetal environment and attach an example of ISR running when an external interrupt occurs.

  • Hello!

    In SoC TRM (https://www.ti.com/lit/ug/spruhy8i/spruhy8i.pdf) see clause 6.2.2.1 DSP Interrupt Sources. According to table there GPIOs trigger interrupts to DSP through GPIOMUX, so at least proper configuration of that mux should be performed. Keep in mind, GPIO interrupts can also reach DSP through Chip-level Interrupt Controller (CIC), and that path would also require certain configuration. So first of all one have to decide a routing of events to be used, then configure required h/w. So it might happen you just missed to perform these configurations. I'm not certain I could be of further help, but would suggest provide more details about pins being used and setups done.

  • Hello! Victor Kazmirenko

    Thank you for your reply.

    The custom board I'm developing is trying to connect two pins, GPIO0_128 and GPIO1_25 with each interrupt callback function. I checked the event number of GPIOMUX through the contents of TRM. In addition, it seemed necessary to check the EVTMUX of the BOOTCFG register. So the question arises as to how they organize routing. Can you tell me how to do it?

  • Hello!

    I've just found, there is CSL example for GPIO interrupts for this chip at pdk_k2g_1_0_11\packages\ti\csl\example\gpio\gpio_interrupt\