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.

ISR not being fired in 6472 with CCS v4

Hello,

I am trying to set an event (event-16) , route it through INT5 and try to handle the interrupt by a small ISR code. In the main program I am setting the value of variable 'j=5'. From the ISR I want to increment it and then I want to check it from the main program. But the ISR is not getting fired. As I set the EVTSET register, the required EVTFLAG bit is also set.I have seen posts in the forum and trying to write the whole thing using C code only by accessing memory mapped registers and the core registers( by calling c6x header file). I am neither using csl libraries nor DSP BIOS, though I was advised to use either of them. But first I am trying to get familiarized with the register level phenomena , then I will go to some higher abstraction level.  Can anyone please tell me where is the problem or whether I'm missing something? Do I need to do something in the build settings? I'm attaching my project folder.

I have another doubt. There are six cores in the processor. In my board the ISTB (interrupt service table base) is having different values for different cores after reset.  The doubt comes because datasheet says the address at which by default the interrupt service table should stay after reset is device specific. So in my main program at the very first I am setting the ISTP to a particular value. Is it a normal phenomenon?

Regards,

AC.

30july.rar
  • AC said:
    I am neither using csl libraries nor DSP BIOS, though I was advised to use either of them. But first I am trying to get familiarized with the register level phenomena , then I will go to some higher abstraction level.  Can anyone please tell me where is the problem or whether I'm missing something?

    We wrote CSL and DSP/BIOS to make your job easier in getting your system to work. And this also makes our job easier by giving you something that already works so that the problems you are having have already been debugged and solved.

    So the problem is that you must start with the higher abstraction level and get the system working. Then you can move to the register level to understand that phenomena more easily.

    When you learn to drive a car, you start with how to use the key and steering wheel rather than studying the engine ignition and drive train. At least I did.

    If you have the EVMC6472, start with the example files that come with it and the examples with the CSL and the examples with DSP/BIOS (if there are any).

  • Thanks Randy P,

     

    Just today the ISR fired when instead of setting the EVTFLAG manually when I routed an actual timer interrupt through that channel. But I will learn to use DSP BIOS or CSL. This time the car started from the engine , next time I'll start it using the keys.

     

    Regards,

    AC