Hello
You should be able to write a command file implementing the whole unit test.
I would recommend you to look at TN24, available from following URL
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MICROCONTROLLERS&fpsp=1&tab=Docume...
Just download TENANTS and install it. I have attached TN24 to this thread for your reference.
The Technical note explains how to set up a command file performing unit tests for an application.
It does not explicitly show how to gather cycle counts information, but all HI-WAVE commands can be used in such a command file.
I hope this helps.
CrasyCat
Message Edited by CrasyCat on 2009-08-21 02:06 PM