AnsweredAssumed Answered

FRDM KL25 Delay_mS() in interrupt

Question asked by Norbert Gal on Dec 1, 2015
Latest reply on Dec 3, 2015 by Mark Butcher

Hello,

 

when I call Delay_mS() function in main(), its going fine:

void maind(){
     Delay_mS(100);
     i++
}

 

But when I doing this same in interupt, the Delay_mS() function doesnt comes back it takes infinity time

 

void maind(){
     enable_irq(INT_TPM0 - 16);
     while(1) {}
}

void handle_interrupt(){
     Delay_mS(100);          //This function takes infinity time
     i++
}

 

Can anybody help me?

 

This is on FRDM-KL25Z board.

Outcomes