Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Measure execution time with clock cycle counter on STM32

Dear all,

How can I read the clock cycle counter for measuring execution times with OpenSTM32 and ST-Link .The MCU is an STM32L152RE

KR

Al

Hi,

I did not understand the question fully,
But if you want to measure for example a function how long it take to finish
you can steup a timer with a high reslution
and start the timer before the function call and capture the time
and capture the time after the function finish.

mazen


Hi,

I think the question was: How to display the clock cycle counter (CYCCNT) register in the gdb debugger? I am facing the same issue smile

David


Add the contents of the attached System View Description to the svd for the processor you are using. Enable the CYCCNTENA in the CTRL register. Assuming the cycle count register is implemented in the MCU you are using, you are good to go :-)