This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC1788 M3 cortex ARM 7 interrupt routine

hi all
iam using LPC1788 M3 cortex ARM 7 controller
iam trying to execute the timer and serial interrupt program.
in both the cases iam unable to return from the interrupt handler routine.

iam also working on LPC2378 ARM 7 controller where i have executed both the programs mentioned above. there iam using VICVECTADDR=0 to return from interrupt to main.
what is the case in LPC1788?
please help.
Thanks in advance

Parents
  • InThe Name Of Allah

    Hi

    I was Downloaded LPC1788 CMSIS and use GPIO Interrupt Project and run keil Debugger.

    Problem is that GPIO Handler Never Call.

    NVIC_SetPriority(GPIO_IRQn, 1);
    NVIC_EnableIRQ(GPIO_IRQn);
    GPIO_IntCmd(2, 1<<9, 1);

    but with Software Trriger, GPIO Handler called :

    NVIC->STIR = GPIO_IRQn;

Reply
  • InThe Name Of Allah

    Hi

    I was Downloaded LPC1788 CMSIS and use GPIO Interrupt Project and run keil Debugger.

    Problem is that GPIO Handler Never Call.

    NVIC_SetPriority(GPIO_IRQn, 1);
    NVIC_EnableIRQ(GPIO_IRQn);
    GPIO_IntCmd(2, 1<<9, 1);

    but with Software Trriger, GPIO Handler called :

    NVIC->STIR = GPIO_IRQn;

Children
  • Which port pin are you using as interrupt?
    Are you configuring the interrupt enable registers? (ENR/ENF)
    Have you enable the interrupt in NVIC?
    NVIC_EnableIRQ(GPIO_IRQn);

    In case if you have the firmware library, there is an example code. refer to it.