AnsweredAssumed Answered

SysTick interrupt problem

Question asked by armoun.mohamad on Sep 5, 2014
Latest reply on Sep 12, 2014 by Clive One
hi every body . 
i have systick in 25hz(each 0.04 sec) send my sensors data through usart.

but the it just execute my main "while(1)" just once , and after that just my 
void SysTick_Handler(void) executes send repetitive value . why may main loop doesn't execute ?? 
here is code :
char Result[7] ;
void main()
{
    while(1)
    {
         result[0]  = getSensor1();
         result[1]  = getSensor2();
         result[2]  = getSensor3();
         result[3]  = getSensor4();
         result[4]  = getSensor5();
         result[5]  = getSensor6();
         result[6]  = getSensor7();
    }
}
 
 
//and void SysTick_Handler(void)                      in stm32f4xx_it.c
 
 extern  char Result[7];
void SysTick_Handler(void)
{
  for(int i = 0 ; i <44 ; i++)
  {
    while(USART_GetFlagStatus(USART2, USART_FLAG_TXE) == RESET);
    USART_SendData(USART2,Result[i]);
  }   
}
is it something related to interrupt priority ??

Outcomes