Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Graphics Library

Posted 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 Library

Posted 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 Library

Posted 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 Library

Posted 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 Library

Posted 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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists