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] [March 2010 Threads] How to measure memory in run timePosted by Bill Yang on March 17, 2010 Hi,
Re: FreeRTOS v5.03 + uIP + Web Server
I have a question regarding the heap2 memory measurement in run time. I am suspecting my project has memory issue. The project has implemented a web server with uIP TCP stack that sometimes ran quickly to respond the request from web browse, but sometimes it stuck took longer to responding or timeout. Then I have to recycle the system power to restart.
I know the xPortGetFreeHeapSize() function call can measure memory size, but I wonder when and where it should be called in run time to measure the heap over size or not. Does it need to create a task for measuring? Any suggestion will be welcome.
By the way, I used heap2 with MAX size 24000 in definition.
Thanks, Bill
RE: How to measure memory in run timePosted by Dave on March 18, 2010 You can call it from anywhere that is not inside an interrupt. It will show you the total free heap available but doesn't give you information on how the heap is fragmented.
RE: How to measure memory in run timePosted by Bill Yang on March 18, 2010 Thanks Dave. If I need to learn how the heap fragmentation was, do you have ideal what function to be called?
Bill
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|