How to see the exicution time of a program or a block of program in code warrior.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to see the exicution time of a program or a block of program in code warrior.

3,892 Views
Ranjicgnr
Contributor I
hai
         I am Ranjith. Am using code warrior hybride controllers 7 updated with 7.3. My target board is 56F8013. In my program the interrupts have very much importance. Am using the dsc for motor controller. Is there any option in code warrior to find out how much time is taking to complete the interrupt rutine. My Dsc is working in 32Mhz clock freequency.  Am using beens for initializing the peripherals. How can i speed up the interrupt rutines. I have attached my interrupt rutine as a text.
Labels (1)
Tags (1)
0 Kudos
9 Replies

707 Views
J2MEJediMaster
Specialist I
Check out the IDE_5.5_UG_Profiler.pdf manual, located in the Help directory of your CodeWarrior installation for information on how to profile your code. Alternately, search for "profile" from the CodeWarrior Help menu  (Help ->Search).

---Tom

0 Kudos

707 Views
Ranjicgnr
Contributor I
I have tryed the profiling. For tat i included the lib file. Tik on the generate code for profiling and  included the profiler.h in the main. But it is giving some error. The error is bool is redefined as unsigned char. It is there in the headder file profiler.h. So i tryied the sample programm given in the code warrior folder. My code warrior is a free version. Its code size is limited. So it is giving the code limit error. How can i see how much is my code warriors code limit. And is that profiled code become thats much more like more than my limit.
0 Kudos

707 Views
J2MEJediMaster
Specialist I
The code size limit is typically 32KB for the Special Edition version of CodeWarrior. I would suggest downloading the Evaluation version of CodeWarrior, which operates without size limits for thirty days.

---Tom

0 Kudos

707 Views
Ranjicgnr
Contributor I
Hai..
              One thing what i find out is there is no library file for 56801x serious and 56802x serious. And another one thing is if you are using the processor expert its type definition file there is a variable named bool is defined as unsigned char. In the profiling headder again there is decleration of bool as char. This is giving me the variable radecleared error. And please let me know which librery file i have to use for the DSC 56F8013VFAE.
 
Waiting for your replay.
Ranjith
0 Kudos

707 Views
J2MEJediMaster
Specialist I
Processor Expert generates its own code to set peripherals up in the processor. It sounds like you may be trying to mix your own code with Processor Expert, which is OK as long as you understand how Processor Expert handles things. I'm not sure the profiler was designed to inter-operate with Processor Expert. You might want to contact the Processor Expert people on this. They do monitor these forums.

---Tom

0 Kudos

707 Views
Ranjicgnr
Contributor I
Yes. I am using the Processor Expert for in my code. But its just for initilizing the pheripherals. So its not much complicated to mix our code with PE expert. And again my one doubt is not clarified. Which library file i have to use for the DSC 56F8013. I cant be able to find out the right file from the profiler directory. Hope the PE Expert team also may look in this doubt.
0 Kudos

707 Views
ProcessorExpert
Senior Contributor III
We think that it is the incompatibility of profiler with code generated by Proceesor Expert. Please ask  the Freescale support  for help with profiler configuration.

(http://www.freescale.com/TechSupport)

best regards
Vojtech Filip
Processor Expert Support Team
UNIS

0 Kudos

707 Views
Ranjicgnr
Contributor I
Hai
 
         I downloaded the evaluation version of the latest code warrior. But still i am getting the error Identifier bool redecleared. It was decleared as unsigned char and now redicleared as char. This is happening in the profiler.h headder file. What i am using the DSC is 56F8013VFAE. The profile library i have included is "profile_56800E_Sim_sdm.lib" Is that correct or not? And how to increase the heap size. I cant be able to locate the linker command file (.lcf). Is that there in the project folder.
 
thanks
Ranjith
0 Kudos

707 Views
jag
Contributor IV
The easier way is to set an output pin (unused) when the routine begins, and unset it when the routine ends. Then run the code and check with an oscilloscope :smileywink:

Bye Jack
0 Kudos