Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Very unprecise tick VxWorks Simulator

48 views
Skip to first unread message

daniel...@gmail.com

unread,
Jun 16, 2016, 6:43:46 AM6/16/16
to
Hi, I'm using VxWorks Simulator (in Workbench 3.3, VxWorks 6.9) to develop my downloadable kernel module. I have observed that the system tick is very unprecise, even without loading any custom application on the OS (only custom services, shell, etc).
This is due to the simulator? There is any way to make the system tick more precise? I have extracted from the system viewer the time (in milliseconds) between consecutive TickAnnounce events.
This is the result (15.7081ms, 15.6449ms, 15.4803ms, 15.6732ms, 5.5385ms, 16.5509ms, 15.7812ms, 31.2167ms, 2.1us, 31.1806ms, 1.4278ms, 20.6505ms, 15.6543ms, 15.6855ms, , 15.6987ms, 15.6174ms, 15.4918ms, 22.0923ms, 15.6773ms, 62.596ms, 1.3556ms, 20.7355ms, 15.5821ms, 15.8103ms, 15.4216ms, 15.5977ms, 15.6658ms, 21.614ms, 15.7254ms, 15.6281ms, 15.6535ms, 15.9216ms, 15.229ms, 22.6309ms, 15.6084ms).
Since the system tick frequency set by default in the simulator is 60hz, the correct period should be 16.667 ms.

Can this problem be caused by the simulator? In this case, there is any way to make the simulator more precise? Thanks

eric...@yahoo.fr

unread,
Jun 17, 2016, 4:02:25 AM6/17/16
to
Yes this is caused by simulator. Simulator does not care about precision but care about staying synchronized with host clock: It is expected that it delivers exactly sysClkRate ticks per second. To get a better precision the easiest way is to modify default clock rate to match host tick period (50hz is usually better).
0 new messages