CW for 56800/E  Cycle Counter

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

CW for 56800/E  Cycle Counter

2,779 Views
Vilbcam
Contributor I
Hello
Is there anything  that can be done to make the Cycle Counter in simulation or with the target to reflect the true amount? It seens to be very innacurate,  the numbers doesnt match with the MCU speed ( the total amount of cycles on a given loop X output  is greater than the MCU would possibily deliver at the given clock speed.
 
Why it would be so hard for CW to have a "normal" cycle counter?
 
 
Example: for teh 56f80160 running at 30 Mhz  Im getting a cycles count the would go up to 48.534 cycles per second!!!
Labels (1)
Tags (1)
0 Kudos
5 Replies

528 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
I received details from our dev team.
See below their answer.
 

Yes the cycle counter should accurate. 
Be sure to use cycles and not instruction count.  It reports both.  Also, the device mentioned? 56F80160? Compiler?There can be wait states that are added if external memory is used.  Some devices have external memory.
If all sources of wait states are removed, such as inserting nops for debugger, it should match wall times when run for actual performance.
I have used it on device such as 56F8013 with CW 8.1.1.

FYI:
CodeWarrior Development Studio for Freescale 56800/E Digital Signal Controllers Version 8.1.1 has been released
This is a patch for the DSC8.0 (must be installed in first)
You can download this version on our web site via the link:
http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=01272600617882140B


You can have several versions installed on the same PC.
There is only one restriction: install them on separate folder.

Hope this will help you.

Pascal

0 Kudos

528 Views
dlf
Contributor I
Hi. I'm working with a 56f8013 demo board and I have 4 puntual questions.

1. About Display/Cycle/Counter. It display me for example:
Machine cycle simulated: 42294
Machine instructions simulated: 22566
In the 56f8013 (32Mhz-32MPIS). What is the real time of this execution??

2. There are any way to count the clock clycle and executed instructions during the PE debugging? I tried with the EonCE Special Counter but I couldn't.

3. Is possible simulates a PE project? Now I'm using 2 independents projects. One for Simulate my code and another to debug on chip.

4. I need to storage several long table (1KB) of constant datas  in program flash mem. I have created a constant array among the global variables like follows:
const int a_i[x][y] =
{xxxxx....xxx
.
.
.
xxxxx....xxx}
I proved it in the simulator and it works, but in the gloval variable window this array is shows into RAM mem like 0x0000056. I need to storage it in the flash mem to load it in the 56f8013 (16KB prog Flash mem). How can I do it?


Many thanks and I´m sorry for my english.

Best regards.
Message Edited by dlf on 2009-10-23 08:16 AM
0 Kudos

528 Views
trytohelp
NXP Employee
NXP Employee

Hi,

 

We need to investigate the problem and this will take some times. 

The better way will be to log it directly in the Technical support system.
Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request. You will come to a login page.
  - You can submit your request through the web from there.

 

Please provide us more details about the Tool version used.
To do that you must:
* CW:
Start the IDE and click on Help | About Freescale/Metrowerks CodeWarrior.
Click on Installed Products 
Provide us all info displayed.
Or you can save them in a txt file.

 

Regards

Pascal

0 Kudos

528 Views
dlf
Contributor I

Ok. many thanks.

 

See the atachment.

 

Installed Plugins.TXT

Message Edited by t.dowe on 2009-10-26 11:00 AM
0 Kudos

528 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
I will contact the development team.
I will keep you informed.
 
Pascal
0 Kudos