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.

GPIO Interrupt Problem

Hello,

Its been so long, and I have returned with a question :)

I have a GPIO pin configured as GPIO interrupt. It works fine, except the system powers up.

As soon as I enable the interrupt via CSL functions, I receive an interrupt although the pin is certainly not triggered. I am using the code below to enable the interrupt. I tried the GPIO interrupt configuration right before that code chunk and right after it. I doesn't matter though. As soon as CSL_intcHwControl runs, an interrupt is received out of nowhere. Also I couldn't follow the assembly code of CSL_intcHwControl. Does it suppose to write into IER register?

int_cont_hnd = CSL_intcOpen(&int_cont_obj, CSL_INTC_EVENTID_GPBNKINT13, &interrupt_vector_id, NULL);   
CSL_intcHwControl(int_cont_hnd, CSL_INTC_CMD_EVTENABLE, NULL);

Thanks for your help,

Erman

  • Which device are you using, I have not come across a port of the full functional CSL for the DM6437 that would have those functions, did you port one of the CSL packages from C6455?

    In any case, you may want to check the interrupt flag register (IFR) to see if there was an interrupt event pending already for the interrupt you are enabling, it is possible that one was in there inadvertently from board initialization.