This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM: What is the clock source for MDK-ARM 5 Registers -> Internal -> Sec?

Hi,

I am trying to measure the time between two breakpoints by using Registers -> Internal -> Sec property. But when i change the core speed, these time values do not change. Does this property use core clock for measuring time or another source?

Parents
  • You are running the simulator?

    There is a menu setting where you tell the core speed - this is separately from where your actual code sets up PLL etc to configure core speed.

    But the simulator isn't cycle-perfect - it doesn't know all about wait states, cache misses etc.

    When using the real hardware, you can use a hw timer that you start/stop to measure calendar time between two events.

Reply
  • You are running the simulator?

    There is a menu setting where you tell the core speed - this is separately from where your actual code sets up PLL etc to configure core speed.

    But the simulator isn't cycle-perfect - it doesn't know all about wait states, cache misses etc.

    When using the real hardware, you can use a hw timer that you start/stop to measure calendar time between two events.

Children