Forums

configUnhandledInterruptISR

Started by amacedosilva October 7, 2003
hi:

Im using e DSP56F803EVM and CodeWarrior to develop one aplication,
and I need to implement some interruptions but I have some problems
with them, please look:

in appconf.h I put:

#define INCLUDE_BSP
#define INCLUDE_IO
...
-declare the ISR

extern void IrqB_ISR(void);

-enable the Interruption

#define GPR_INT_PRIORITY_9 2

-Atribute the ISR to Interrupt vector (in case of statical Interrupt)

#define NORMAL_ISR_9 IrqB_ISR //////////////////

in main.C

#include "io.h"
#include "fcntl.h"
#include "bsp.h"
#include "stdio.h"
#include "gpio.h"
#include "led.h"
#include "arch.h"

-define the ISR
extern void IrqB_ISR(void)
{
printf ("intrrupt...BUTTON BBB\n");
} void main(void)
{
..
archInstallISR(&(pArchInterrupts->IrqB), IrqB_ISR);
//if dynamically interruption..

while(1);

}

With this code I get a "configUnhandledInterruptISR" whem I make de
Debug
BUT, when I use SCI or GPIO interrupts, is like as Interruptions are
DISable... but I use the same methode to implement them!

In this case Can I miss the Interrupt Vector (I use te information in
table 4-1 page 4-8 DSP56F80x Users Manual) Where is my Fail?

I hope for your answer
Antonio Silva



In your code I can see you double defined Irq_B
interrupt, one uses static and another is dynamic. It
MAY cause problem. I suggest you keep one.

C.W
--- amacedosilva <> wrote:
> hi:
>
> Im using e DSP56F803EVM and CodeWarrior to develop
> one aplication,
> and I need to implement some interruptions but I
> have some problems
> with them, please look:
>
> in appconf.h I put:
>
> #define INCLUDE_BSP
> #define INCLUDE_IO
> ...
> -declare the ISR
>
> extern void IrqB_ISR(void);
>
> -enable the Interruption
>
> #define GPR_INT_PRIORITY_9 2
>
> -Atribute the ISR to Interrupt vector (in case of
> statical Interrupt)
>
> #define NORMAL_ISR_9 IrqB_ISR > //////////////////
>
> in main.C
>
> #include "io.h"
> #include "fcntl.h"
> #include "bsp.h"
> #include "stdio.h"
> #include "gpio.h"
> #include "led.h"
> #include "arch.h"
>
> -define the ISR
> extern void IrqB_ISR(void)
> {
> printf ("intrrupt...BUTTON BBB\n");
> } > void main(void)
> {
> ..
> archInstallISR(&(pArchInterrupts->IrqB), IrqB_ISR);
> //if dynamically interruption..
>
> while(1);
>
> }
>
> With this code I get a "configUnhandledInterruptISR"
> whem I make de
> Debug >
> BUT, when I use SCI or GPIO interrupts, is like as
> Interruptions are
> DISable... but I use the same methode to implement
> them!
>
> In this case Can I miss the Interrupt Vector (I use
> te information in
> table 4-1 page 4-8 DSP56F80x Users Manual) > Where is my Fail?
>
> I hope for your answer
> Antonio Silva


__________________________________


--- In , "amacedosilva" <a18204@a...>
wrote:
> hi:
>
> Im using e DSP56F803EVM and CodeWarrior to develop one aplication,
> and I need to implement some interruptions but I have some problems
> with them, please look:
>
> in appconf.h I put:
>
> #define INCLUDE_BSP
> #define INCLUDE_IO
> ...
> -declare the ISR
>
> extern void IrqB_ISR(void);
>
> -enable the Interruption
>
> #define GPR_INT_PRIORITY_9 2
>
> -Atribute the ISR to Interrupt vector (in case of statical
Interrupt)
>
> #define NORMAL_ISR_9 IrqB_ISR > //////////////////
>
> in main.C
>
> #include "io.h"
> #include "fcntl.h"
> #include "bsp.h"
> #include "stdio.h"
> #include "gpio.h"
> #include "led.h"
> #include "arch.h"
>
> -define the ISR
> extern void IrqB_ISR(void)
> {
> printf ("intrrupt...BUTTON BBB\n");
> } > void main(void)
> {
> ..
> archInstallISR(&(pArchInterrupts->IrqB), IrqB_ISR);
> //if dynamically interruption..
>
> while(1);
>
> }
>
> With this code I get a "configUnhandledInterruptISR" whem I make de
> Debug >
> BUT, when I use SCI or GPIO interrupts, is like as Interruptions
are
> DISable... but I use the same methode to implement them!
>
> In this case Can I miss the Interrupt Vector (I use te information
in
> table 4-1 page 4-8 DSP56F80x Users Manual) > Where is my Fail?
>
> I hope for your answer
> Antonio Silva

You can learn more about debugging interrupts using an additional
lesson from the Motorola Training Site: http://e-
www.motorola.com/files/archives/doc/train_ref_material/56800_EXERCISE_
3C.zip