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 monitor stack usage in a PIC24?Posted by renaldtravispaad on March 15, 2010 Hi everyone, I am a newbie to freeRTOS. I did a baseline software development for a project using freeRTOS on a microchip PIC24F. The system seems to be working fine with its current heap and stack values. I know that I just got lucky with my numbers. I would like to do a thorough stack and heap analysis as part of my optimization. First, I want to do a stack requirement analysis. Is there any demo code for the PIC24F processor that clearly tells me how to use pxCurrentTCB for the purpose? Also, How do I find out the amount of heap being used by my code?
I would really appreciate any help
Thanks! Sid
RE: How to monitor stack usage in a PIC24?Posted by Dave on March 15, 2010 “First, I want to do a stack requirement analysis.” See http://www.freertos.org/uxTaskGetStackHighWaterMark.html “ How do I find out the amount of heap being used by my code? ” If you are using heap_1.c or heap_2.c then simply call xPortGetFreeHeapSize().
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|