Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Unable to count event in Cortex R4 using PMC - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unable to count event in Cortex R4 using PMC Rate Topic: -----

#1 User is offline   Sandesh 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10-April 11

Posted 22 July 2011 - 03:40 PM

Hi,

I am trying to set the event counter register to count particular event using ARM Cortex R4's performance monitor register.

I followed the steps as in this link..
http://infocenter.ar...aqs/ka4237.html

But it is not counting the events which I set. Only the cycle count is working. I am using RVDS 4.1 prof.

Does RVDS support event counting or is there any configuration error that needs to be corrected?

0

#2 User is offline   ttfn 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 576
  • Joined: 29-September 06

Posted 25 July 2011 - 08:36 AM

What target are you connecting to?

If you are using the models what ship with RVDS, these do not model the PMU counters (except the CCNT - I think).
1

#3 User is offline   Sandesh 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10-April 11

Posted 25 July 2011 - 12:08 PM

Hi,

I am using the ISSM. Yes it just models the cycle count but not the PMU.

Is there any other tools/simulators available that model PMU for any cortex R or any cortex A series processors?

Thank You.

View Postttfn, on 25 July 2011 - 08:36 AM, said:

What target are you connecting to?

If you are using the models what ship with RVDS, these do not model the PMU counters (except the CCNT - I think).

1

#4 User is offline   Sandesh 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10-April 11

Posted 28 July 2011 - 12:00 PM

Hi,

If I use a beagle board as target, will I be able to use the PMC's then?, will the RVDS update the PMC register if I connect to beagle board and program it?

Thank you for your valuable time.

View Postttfn, on 25 July 2011 - 08:36 AM, said:

What target are you connecting to?

If you are using the models what ship with RVDS, these do not model the PMU counters (except the CCNT - I think).

0

#5 User is offline   ttfn 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 576
  • Joined: 29-September 06

Posted 28 July 2011 - 12:59 PM

If you use real hardware (a board), then yes you will have the PMU present. Remember that by default the PMU is only accessible in privileged modes. User mode access must be manually set if you required.
0

#6 User is offline   Sandesh 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 10-April 11

Posted 28 July 2011 - 03:24 PM

Thank you very much.

I actually want to measure the branch prediction related events accurately for my code and I don't want any background application/process to be running when I run my code. So thereby I'll be getting accurate branch related counter info. Is it possible to use beagle board in this configuration and debug target using RVDS?

I have a panda board with dual cortex A9 in it, but it has to be loaded with boot loader and linux OS. Doing so I cant measure PMC's accurately for my program if I run it on OS. Am I right regarding this or is there a way to go about it? Considering this, and the fact that ARM workbench supports beagle board target I am thinking of switching to beagle board.

Any suggestions will be of great help to me. Thank you for your time.

View Postttfn, on 28 July 2011 - 12:59 PM, said:

If you use real hardware (a board), then yes you will have the PMU present. Remember that by default the PMU is only accessible in privileged modes. User mode access must be manually set if you required.

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic