Question
STMStudio maximum sample rate
Posted on January 08, 2013 at 14:42
I have tried a STM Studio, yersteady downloaded. For sample rates less than 100ms are not shown all steps. Is it possible to show steps smaller than 100ms, how and how small they can be? I use an example delivered in a subdierctory 'softTrace' for Keil. I've just add a flag variable. The flag is set in an interrupt, in a main loop it just wait on it an clear it for a next step. After this modification I assume to see all steps. Modifications:
/* in stm32f10x_it.c */
extern volatile uint16_t flag = 0;
void TIM1_CC_IRQHandler(void)
{
// Clear the interrupt
TIM1->SR &= ~TIM_FLAG_CC1;
// Do a snapshot into data trace buffer
DumpTrace();
flag = 1;
}
/* in main.c */
....
extern volatile uint16_t flag;
int main()
{
...
while(flag==0);
flag = 0;
}
...
}