Other Parts Discussed in Thread: C2000WARE
Tool/software: TI-RTOS
Hi,
I am trying to get system time (time since application execution started) in milliseconds. I have the next cfg settings:
- CPU clock frequency (Hz) = 2500000.
- Clock Manager Enabled
- Clock Module:
- Internally configure a Timer to periodically call Clock_tick()
- Tick period (us) = 1000
- Timer id = ANY
But then when I call Clock_getTicks() it returns incoherent values. I understand that each tick is 1 millisecond, so if this function returns for example 12345 it means that since execution started 12345 milliseconds have passed. Am I properly interpreting Clock_getTicsk() function? Any idea of what is going on?
I have also tried to accomplish it with timestamp module by calling function TimestampProvider_get64() but results have non sense.
Can anyone explain how to convert from these functions output to milliseconds?
Best regards,
Adria
