RAM and CPU Usage on STM32F779I at Runtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-11 5: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-usage- Labels:
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-11 6:04 AM
Try to ******.
Or a static analysis of your compiler, and/or runtime analysis via debugger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-11 7: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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-11 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-11 8:14 AM
What about without debugger ? I want to display both the resources usage by my application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-13 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-15 6:03 AM
Yes, FreeRTOS books and manuals can be purchased; but, the information is also available
.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-01-15 6: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().