Hello,
While debugging my board I have some questions, hope you could help me.
1. I wanna call an ISR function for my DSP by detecting rising(or falling) edge from an external FPGA. I was setting GPIO1 as input, the interrupt works when I only print out my flag value after capture an interrupt, but when I increase the flag value in my main(), and put it in an infinite loop, it always got stuck(sometimes it can count for a couple of times but never run infinitely). and also the system becomes extremly unstable. thats just really wierd
here is my code:
interrupt void intIsr()
{
a = 1;
Uint8 data_in;
CSL_GPIO_getInputData (hGpio, pinNum, &data_in);
return ;
}
void main()
{
.......configure INTC
.......configure GPIO
while(a!=1){ }
printf("GPIO interrupt occurs\n");
for(;;)
{
printf("a = %d\n",a);
a++;
}
return 0:
}
is there anyone know whats possibly the problem?
2. and for another question. because I am using EMIF to connect DSP & FPGA, to get the signal I wanna use interrupt. if GPIO interrupt doesnt work, I have to use another way. I saw from the EMIF datasheet, in section 3.10 there's <Interrupt Support>. It said one can generate interrupt from rising edge on the WAIT pin.
Could you please tell me how to configure it if you know it? Or is there example codes for example among those materials that TI offers?
Thank you in advance.