STM8S - Why does my Timer4 Overflow Interrupt not work?
working code:

void TIM4_init(void){

TIM4_PSCR = 7;
TIM4_ARR = 250;
TIM4_IER |= TIM4_IER_UIE;
TIM4_CR1 |= TIM4_CR1_CEN;
}
void  TIM4_overflow_interupt()  __interrupt (TIM4_UPD_OVF){
static unsigned nu = 0;
static unsigned pi = 0;
if (nu &gt;= 100){
    nu = 0;
    if (pi){
        pi = 0;
        IND_LED_ON();
    }
    else{
        pi = 1;
        IND_LED_OFF();
    }
}

nu++;
TIM4_SR1 &amp;= ~TIM4_SR1_UIF;
//TIM4_IER |= TIM4_IER_UIE;
}