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 2009 Threads] Graphics LibraryPosted by Ariel Montero on March 5, 2009 Hello I want to use Microchip Graphics Library with FreeRTOS. Each objet created with the library need a heap and a fixe RAM memory. What must I do with the RAM memory needed by the library. Must I add the total memory (fixed and heap) to configuration Heap memory of the FreeRTOS ?. What about the memory of the task where I call the graphic function to redraw the objet created by the library?.
Thank in avanced.
RE: Graphics LibraryPosted by Richard on March 6, 2009 The easiest thing to do might be to use heap_3.c with FreeRTOS - that way both FreeRTOS and the graphics library will be mallocing RAM from the same heap segment.
Regards.
RE: Graphics LibraryPosted by Ariel Montero on March 6, 2009 Thanks you Richard one more question
if I use heap_3.c Where must I define the Heap for the whole program: in build option (linker parameter) or in the configTOTAL_HEAP_SIZE parameter of FreeRTOS?
RE: Graphics LibraryPosted by Ariel Montero on March 6, 2009 Hi In the help I found that for use heap_3.c its size must be define in the linker option but What about Stack Size of the microcontroller?. Must it be defined in the linker option?. How FreeRTOS works with this stack?.
Thank in avanced
RE: Graphics LibraryPosted by MEdwards on March 6, 2009 You are correct that configTOTAL_HEAP_SIZE has no effect when heap_3 is used so it is setup by the linker options. You must also define a stack that is used by main(). Once the scheduler is started only the tasks stacks are used. The task stacks are dynamically allocated when the task is created.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|