This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Log_print and Timer_getCount on 6678

I am attempting to benchmark some code on the 6678 evm, using Timer_getCount before and after the routines, and Log_print to display the time stamps and the differences. My issue is that I am seeing some odd wrapping of numbers in the prints. To my knowledge, Timer_getCount returns a 32bit value. If on the 6678 EVM, the timer is running 1GHz / 6, with 32bits I should have ~25 seconds before a wrap. When I resume debugging and then pause, I press the buttons with less than 25 seconds in between, and get numberous prints of runs, so I do not believe that I am wrapping the counter. But the timestamps in the prints seem to wrap somewhere just above 160000?!? There must be some key bit of info I am missing to make sense of this.

Thanks

  • I discovered my problem. The timer counter value is reset based on the BIOS Clock.tickPeriod setting. WIth a SYSCLK of 1GHz, and the timer clock running at 1/6 (166.67MHz) that was giving me my wrapping at ~160000. I increased my tick period setting, and my numbers look much more reasonable.