2018-01-11 05:55 AM
Hi I want to asses the resources used by my program while run time. As My project requirement is to asses the resources used by the my application.
Can any one help me How do I can find these resources usage run time .
#stm32f779i #ram-usage2018-01-11 06:04 AM
Try to ******.
Or a static analysis of your compiler, and/or runtime analysis via debugger.
2018-01-11 07:15 AM
CPU utilization is the time you don't spend in the idle loop. Use a free running TIM to see how much time you spend there.
For memory, walk the heap to see how much of the memory arena you are using, and check the maximal depth of the stack.
2018-01-11 07:20 AM
Good debuggers support an easy read-out of cycle count registers.
Whatever that might be useful for.
And there is the old-fashioned way for load measurement.
Set a GPIO high whenever your application is actually busy, and watch with a scope.
Works well with a cyclical approach.
Some RTOSes already do this for you.
2018-01-11 08:14 AM
What about without debugger ? I want to display both the resources usage by my application
2018-01-11 10:34 AM
Hi , I am using FreeRTOS , How can I measure the RAM utillization and CPU utilization with by my appllication with FreeRTOS support.
Is there any API to find it.
2018-01-13 04:07 AM
As I remember, the documentation of FreeRTOS is 'un-free' (as in 'free beer'), i.e. one has to pay for.
Perhaps you find appropriate examples.
2018-01-15 06:03 AM
Yes, FreeRTOS books and manuals can be purchased; but, the information is also available
.2018-01-15 06:12 AM
FreeRTOS does have RAM utilization functions, if you are using one of FreeRTOS's heap allocate
https://www.freertos.org/a00111.html
and your port supports xPortGetFreeHeapSize().FreeRTOS also has API for
, see vTaskList().