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.

Interrupt problem on the DSK6455

Hi,

I'm new to the DSP world and my only training was the system integration workshop. I'm trying to add an interrupt handler for a GPIO pin to an application running a basic TCP/IP socket program using the NDK. When running the application without the network task started my interrupt gets trigerred. (It is using event 61 on HWI 5 via the DSP/BIOS).  As soon as I start the task running the network support, the interrupt stops getting triggered. Does the NDK somehow mask the interrupts? How do I re enable them?

Thanks,

dp63

  • Check out c6455.c.

    In the function HwPktOpen() you can see the following sequence:

    HWI_eventMap( IntVector, 17);

    HWI_dispatchPlug( IntVector, (Fxn)HwInt, -1, 0 );

     

    In this code IntVector=5 which is trampling on your code.  At least that's what I think is happening.  Please confirm.

  • Yes, it seems this is the problem. I had a feeling it might be the case and checked the same code using interrupt 8 which worked. I can't find outc6455.c on my computer. I'm using the NDK evaluation so I assume the source code is missing there.

    Thanks!

    dp63

  • Whoops, that was a typo.  I was trying to say check out "c6455.c".  I'll edit my original post.  You might be right in that I'm not sure if it's provided with the eval version.

    In any case, I'm glad your issue is resolved.  Thanks for letting us know.

    Brad