Quality RTOS & Embedded Software

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




Loading

Requirements RTOS

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


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) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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

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

OpenRTOS and SafeRTOS