Problem with Ecc2

Forum related to the FLEX boards

Moderator: paolo.gai

Locked
Mordor
Newbie
Posts: 2
Joined: Wed Apr 01, 2009 9:29 am

Problem with Ecc2

Post by Mordor » Wed Apr 01, 2009 9:37 am

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

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Problem with Ecc2

Post by paolo.gai » Wed Apr 01, 2009 9:48 am

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

Mordor
Newbie
Posts: 2
Joined: Wed Apr 01, 2009 9:29 am

Re:Problem with Ecc2

Post by Mordor » Wed Apr 01, 2009 10:01 am

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.

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re:Problem with Ecc2

Post by paolo.gai » Wed Apr 01, 2009 10:16 am

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

Locked