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


Requirements RTOS

Posted by M J on February 11, 2011
What are the Requirements on a CPU to run Free RTOS?

RE: Requirements RTOS

Posted by Dave on February 11, 2011
Your question is way way too vague to be able to answer.

RE: Requirements RTOS

Posted by M J on February 14, 2011
okay, i'm currently designing a processor, what do i need?

* ram size ?
* timer ?
* stack ?

what are the basic requirements for free rtos?

RE: Requirements RTOS

Posted by Richard Damon on February 14, 2011
The most basic answer is you need to be able to provide the equivalent code to what is provided in port.c and portmacro.h in other ports.

A basic list of what this entails is:
1) A timer, with code to set it up, normally on a low/lowest interrupt priority. Strictly speaking, FreeRTOS can somewhat run without a timer, you just lose the ability for a task to delay for a period, abort a wait after a timeout, and automatically round robin tasks of equal priority. Even if you don't have a precise timer interrupt, you can often do "good enough" with any form of interrupt that happens at a reasonable, if not consistent, rate (it just says the accuracy of time periods isn't very good).

2) You need to provide a way to save the state of a task, and to restore that state either in a interrupt or not (or have a way for the software to generate an interrupt used to save the task state). Note also, that "Task State" includes the tasks stack, so a processor with the stack at a fixed location may not work well.

3) It needs enough memory to run. FreeRTOS itself doesn't use much memory, The biggest use of ram are the tasks themselves, each needing there own stack and other ram. Unless your tasks are very simple, the overhead for FreeRTOS is probably minor compared to the tasks themselves. I would try to make it work on a machine with only 256 bytes of ram, 4k is workable if you don't need much ram in the tasks for buffers, and not a large number of tasks.

RE: Requirements RTOS

Posted by M J on February 14, 2011
thank you for this detailed answer!

regards myzinsky

[ 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