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

How to benchmark code on FVP_MPS2_Cortex-M4 simulator?

I need to benchmark some C++ code on the FVP_MPS2_Cortex-M4 simulator.

I considered using CMSIS function osKernelGetTickCount() to provide timestamps but the resolution of the tick timer seems to be 1ms, which is too coarse.

What would be a suitable clock counter to use for the timings?  

Would ARM_CM_DWT_CYCCNT be suitable and, if so, how would I access it?

Best regards

David

Parents
  • Hi Toshi and Ronan

    Thanks for your replies. It's pretty clear that FVP and fast models aren't suitable for my purposes. Does ARM offer a cycle accurate simulator for Cortex-M4? I realise it may be slow but we could tolerate that. If so, could you please tell me where I can obtain it?

    Best regards

    David

Reply
  • Hi Toshi and Ronan

    Thanks for your replies. It's pretty clear that FVP and fast models aren't suitable for my purposes. Does ARM offer a cycle accurate simulator for Cortex-M4? I realise it may be slow but we could tolerate that. If so, could you please tell me where I can obtain it?

    Best regards

    David

Children