FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [July 2011 Threads] Memory use reportPosted by Dave Nadler on July 11, 2011 Apologies, I know this must exist somewhere but I can't find it. I need a simple memory report that shows available memory for all tasks (including IDLE), in conjunction with the stack-check setting 2 to provide a good check for adequate provisioning.... Thanks in advance, Best Regards, Dave
RE: Memory use reportPosted by Dave Nadler on July 11, 2011 Sorry if I wasn't clear, I need to report STACK memory use...
RE: Memory use reportPosted by Richard on July 11, 2011 I'm not sure I fully understand what you are looking for but, see:
http://www.freertos.org/uxTaskGetStackHighWaterMark.html
xPortGetFreeHeapSize() found in heap_1.c and heap_2.c
and of course
http://www.freertos.org/a00111.html
Regards.
RE: Memory use reportPosted by Dave Nadler on July 11, 2011 Apologies Richard for not being clear. I did study the material you noted. I need to print a report that lists, for each task including IDLE, how much stack space has not been used. uxTaskGetStackHighWaterMark presumes all the task handles are available; but they aren't handy and I don't know where to find the IDLE task handle. Thanks again ! Best Regards, Dave
RE: Memory use reportPosted by Richard on July 11, 2011 In which case this is what you want: http://www.freertos.org/a00021.html#vTaskList The documentation on the web site is not great for that function (I think the reference manual has more), but if you grep in the FreeRTOS/Demo directory you will find lots of examples. It produces something like this: where the "stack" column is the high water mark - so the closer it is to zero the closer the task has come to overflowing its stack. Regards.
RE: Memory use reportPosted by Richard on July 11, 2011 ...addition
If you are using IAR or Eclipse, you can also use the plug-in for those IDEs to show you the start of stack, end of stack, and high water mark for each task.
Regards.
RE: Memory use reportPosted by Dave Nadler on July 11, 2011 Apologies for missing vTaskList in the manual; I looked in the "memory" section. Anyway, thanks, does the trick.
Separately, the Eclipse plugin with CodeRed: - displays "Off" in the "min stack available" column IIRC It didn't even display the column prior I enabled configUSE_TRACE_FACILITY.
Thanks for the help ! Best Regards, Dave
RE: Memory use reportPosted by Richard on July 11, 2011 There is a menu item to turn the stack checking on in the IDE. I think you might even be able to right click on the column in the plug-in window to turn it on. It is off by default because of the time it takes to determine the data.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|