Page 1 of 1

Problem with Ecc2

Posted: Wed Apr 01, 2009 9:37 am
by Mordor
Hi,
I have a problem with interrupt under the ECC2 Kernel Mode.

I write a program with EDF Kernel Mode, than I want to use this with ECC2 Kernel Mode.
I have modified the OIL file e recompile the project with no Error but the interrupt of the Timer1 and Timer4 don\'t work any more....

I must include same specific file or modify the code for run interrupt under ECC2?

The code of interrupt is:

Code: Select all


ISR2(_T1Interrupt)
{
  /* clear the interrupt source */
  T1_clear();
  /* count the interrupts, waking up expired alarms */
  CounterTick(myCounter);
}
with a SetRelAlarm(AlarmSend, 10, 1000).

with the myCounter:

Code: Select all


COUNTER myCounter {
  MINCYCLE = 2;
  MAXALLOWEDVALUE = 0xFFFF ;
  TICKSPERBASE = 1;
};

ALARM AlarmSend {
  COUNTER = \"myCounter\";
  ACTION = ACTIVATETASK { TASK = \"TaskSend\"; };
};
Thank\'s

Re:Problem with Ecc2

Posted: Wed Apr 01, 2009 9:48 am
by paolo.gai
There is nothing wrong there as long as I can see... The IRQ handling does not change between EDF and FP (apart for the free running timer which is not handled).

Does the \"Event\" demo shipped with EE works for you? That should be a good start.

Ciao,

PJ

Re:Problem with Ecc2

Posted: Wed Apr 01, 2009 10:01 am
by Mordor
I have seen that the problem appares when I active the MULTISTACK option in the OIL file for use ECC2 because if I use for example BCC1 the interrupt works fine.

Code: Select all


MULTI_STACK = TRUE {
  IRQ_STACK = TRUE {
    SYS_SIZE = 512;
  };
};
Now I will try the Event demo.

--- EDIT ---
I have seen that also with the Event demo the Timer Interrupt doesn\'t work.
------------

Thank\'s.

Re:Problem with Ecc2

Posted: Wed Apr 01, 2009 10:16 am
by paolo.gai
This seems strange... the event demo uses the timer and I used it in the ERIKA courses done here in march.

We\'ll try it again (but I cannot try it for a few days due to some travels I\'ll need to do in the following days).

PJ