Hello,
I'm using ARM Development studio 2023.1, for now I'm running the 30 day trial version. After running and debugging Arm FVP - MPS2_Cortex_M7 as target, I now want to profile it. I read about streamline but I cannot find the option for profiling. Can someone please guide me for this?
Thanks,
Shri
HiMy name is Stephen and I work at Arm.For profiling Cortex-M7, there are two options:1) Use Streamline for Bare-metal:developer.arm.com/.../0809For Streamline profiling with an RTOS, seecommunity.arm.com/.../analyzing-rtos-based-systems-performance-using-streamline2) Use the Cortex-M7's built-in cycle-counter DWT_CYCCNT registerSimply read DWT_CYCCNT at the start and at the end of the block of code of interest, and calculating the difference in the two values. This can be done either programmatically within your code (DWT_CYCCNT is a memory-mapped register) or by using the debugger to read DWT_CYCCNT at two breakpoints.Alternatively, the processor can use its SysTick function to measure elapsed cycle counts. See:developer.arm.com/.../In both cases, please note that the FVP is not cycle accurate, and so do not use this for exact results, but could be a useful first order approximation. For accurate results, you must profile on real hardware.Hope this helpsStephen
Thanks for the answer. I would like to use streamline profiling but there is no streamline menu in my IDE
When I search:
When I try launching:
Do you have any suggestions for this?
Thanks.
Hi againAs a starting point, I suggest you try using the Cortex-M7's built-in cycle-counter DWT_CYCCNT register first.This is quick and easy to use and may give you the information you need if you simply want to get cycle counts for functions. Streamline for bare-metal & RTOS is rather more complex to set up.Streamline is a separate Eclipse application, which you can launch from the Windows Start menu:
You can also launch it from the command-line.Stephen
Thank you