AnsweredAssumed Answered

SysTick Interrupt suddenly dissapears

Question asked by groma on May 22, 2015
Latest reply on May 22, 2015 by peacock.jack.003
Hi Folks!

I have a Problem with the Systick Timer.
I use it to handle some periodic functions.

The SysTick Timer is configured to 500us.
Everything works fine.

Now I need a delay function. When I start go into my delay function,
it seems that the systick interrupt does not happen anymore.
It is ending in an infinite loop, but the uC is still working because, i generate
an interrupt with rtc (1s) and this one is still appearing

Did anyone faced a Problem like this?

Here is some Code

volatile uint16_t sysTickGlobTime = 0;

void BOARD_DelayMS(volatile uint8_t ms);
 
void SysTick_Handler(void) {
 
    SM_Handler();
 
    if(++time_1ms == 2) { //1ms
        time_1ms = 0;
        sysTickGlobTime--;
      }
}
 
void BOARD_DelayMS(volatile uint8_t ms) {
    sysTickGlobTime = ms;
    while(sysTickGlobTime!=0);
}

I'm using STM32F105RC and standart periph lib

Many thanks for help!

Outcomes