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

IRDA stack vs FreeRtos

Posted by Nobody/Anonymous on January 18, 2006
I have to evaluate approximatively how much RAM space would be necessary (in heap memory) to add an IRDA stack in lwIP_Demo_Rowley_ARM7 (The IRDA stack consume approximatively 10KB of flash and 500 Bytes of RAM)?

Is it possible to make this evaluatation only with this information ?

In fact, I have to ensure that 64KB of Ram is enough to include lwIP, USB CDC, IRDA stack and enough space to include my own application.

regards.

RE: IRDA stack vs FreeRtos

Posted by Nobody/Anonymous on January 18, 2006
I would have thought 64 was enough, but to be sure you can look at the ROM/RAM usage in the CrossStudio IDE. If you build your code then look in the project window you will see the rom and ram usage of each component. You can lower the stack size used by the kernel if you remove the demo tasks.

RE: IRDA stack vs FreeRtos

Posted by Nobody/Anonymous on January 19, 2006
I agreee, but to do that I have to merge the IRDA stack in FreeRtos and this will take a while. I only want to make a prediction.

Does it exist a way to calculate the Heap memory needed when we add a task. For example, IRDA stack takes 10K of Flash and less than 1K of RAM, but how many heap memory must I reserve to include it in the kernel. May be its impossible to evaluate like that ?

regards

RE: IRDA stack vs FreeRtos

Posted by Nobody/Anonymous on January 19, 2006
Assuming ARM7,

Tasks take:
sizeof( tskTCB ) + ( requested stack * 4 ) bytes of heap.

Queues task:
sizeof( xQUEUE ) + ( sizeof( Item_being_stored ) * queue_length ) bytes of heap.

RE: IRDA stack vs FreeRtos

Posted by Nobody/Anonymous on January 19, 2006
The heap is only used when the kernel calls pvPortMalloc. You can choose to use pvPortMalloc for your irda stack also if you wish, but would suggest that you just allocate the necessary RAM statically.


[ 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