This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538 Interrupt Handler - adding to the vector table?

Hi all,

I'm trying to use the sleepmode timer interrupt to wake the system up from PM2. It goes to sleep fine, but the interrupt doesn't wake the system up. Long story short, I think I need to add an interrupt handler to the interrupt vector table but I don't know how to do that. 

I'm using CCS for my IDE and I've found the interrupt vector table in startup_ccs.c I'm just not sure how to actually add a new handler. I've also looked at the sleepmode_timer.c example in the foundation firmware and I'm basically using their code but it still doesn't work.

  • Paul,

    In IAR sleep mode example, interrupt handler for sleep mode timer interrupt is defined (SleepModeIntHandler ..file sleepmode_timer.c ). It overrides the default interrupt handler which is basically an infinite loop. In startup_ccs.c , define an interrupt handler for sleep mode timer ( basically an empty fn) , change the vector table to specify the new interrupt handler for sleep mode timer and that should do it.

    Saurabh

  • how would you setup the interrupt handler "statically" as appose to "dynamic"