cw4.5 with softrace

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

cw4.5 with softrace

2,114 Views
candriver
Contributor I
Hi...
 
I am using CW4.5 with demo9s12xdt512 board.....bt when i used softrace component  in running mode then it gives error like:current connection does not support softrace..........i got full licence version file and i just copy that file into progarm files where there is my code warrior..... if there s any other things means any extra file i have to download so that my softrace componant work?????
 
please  help me wht should i do????
 
 
and one more thing how can i check now my cw4.5 is fully license version because previously i was using cw4.5 which was valid for 32KB code......
 
Thanks
 
 
Labels (1)
Tags (1)
0 Kudos
5 Replies

676 Views
CrasyCat
Specialist III
Hello
 
softrace is working with Full Chip Simulator connection only.
When you are debugging on real hardware, you need to use the Trace component instead to look at program trace.
 
Be careful Trace component works only with MCUs equipped with a DBG module.
It is not availably for MCUs equipped with a BDM module.
HCS12X MCUs have DBG module, so you should be fine.
 
 
CrasyCat
0 Kudos

676 Views
candriver
Contributor I
Hi...
Thanks sir...

Bt sir i want to check execution time taken by each instruction in ns or ms...how can i check by using trace...softrace s having this facility.....is there any facility to see execution time in run time..

Thanks
0 Kudos

676 Views
CrasyCat
Specialist III
Hello
 
DBG module only provides a trace of the last instruction executed.
It does not provide support to collect timing information.
 
If you wish to be able to evaluate execution time, while running on real hardware, you need to use an emulator with a real trace functionality.
 
Another solution would be to toggle an I/O Port and hook a logic analyzer to the board to evaluate timing.
 
CrasyCat

676 Views
candriver
Contributor I
Thanks sir
 
I am  toggeling a particular bit of portb for measurement of execution time taken by each function in can driver and  checking on digital CRO.....but i am getting same time duration by each function.....
 
for eg.
 
for(;:smileywink: {
    
     DDRB.byte=0x00;
 SendCANMsg(&ChannelCAN0, CAN0_BOX3);
   DDRB.byte=0x10;
  }
 
if i am doin any mistak then plzzz help me....
 
and one more thing i have to see my data on CAN_H and CAN_L of cano port.....but i am getting constant voltage level on digital CRO...why is it coming like this.....plzz help me...
0 Kudos

676 Views
CompilerGuru
NXP Employee
NXP Employee
If you really need the exact execution time of every instruction (what for?), then you probably have to buy an emulator as crazycat suggested.
If you just need some timings over some defined period, check the documentation to the TCNT counter. You have to enable the timer in the timer system control register to make it run, and it is 16 bit so you can measure up to 65535. And you have to convert the measured time to real time using your setup.

Daniel