Dear Sir,
I am using the NMI interrupt 7 on MOD5282 , and i have also written ISR as suggested inside the manual MOD5282 INTERRUPT.pdf. But it Disables all the functions of the UCOS. and only Idle task is running.
It gets into ISR for the When interrupr arrives on NMI, But gets trapped when it executes the last instruction of the ISR ,that is asm("rte");.
and it is compulsary that i have to use all 4 eport interrupts availble on MOD5282.
Kinldy reply me as fast as possible.thank you.
Working with the NMI irq7,facing problem-urgent.
-
- Posts: 19
- Joined: Fri Dec 12, 2008 2:54 am
Re: Working with the NMI irq7,facing problem-urgent.
I'm using code as shown in section 3 of thew MOD5282 Interrupt application note. No assembly language but requires use of INTERRUPT macro.
After initializing:
// Edgeport IRQ7
INTERRUPT(irq7_isr, 0x2700 )
{
// your interrupt code, NO system calls
eport_data = sim.eport.eppdr;
sim.eport.epfr = EPORT_IRQ7; // re-enble interrupt
}
After initializing:
// Edgeport IRQ7
INTERRUPT(irq7_isr, 0x2700 )
{
// your interrupt code, NO system calls
eport_data = sim.eport.eppdr;
sim.eport.epfr = EPORT_IRQ7; // re-enble interrupt
}