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

Time to powerup

Posted by yariv gal on July 8, 2009
Hi,
Does any one knows or have any estimation on how many clock cycles until powerup in freertos ?

Thanks

RE: Time to powerup

Posted by Richard on July 8, 2009
What are you expecting the answer to this to be? You give absolutely no information on the processor being used, the compiler being used, what your start up code is doing, how much RAM you have to be cleared, how many tasks are being created, etc. etc.

In any case, FreeRTOS adds practically no start up overhead to a standard (non RTOS) application.

Regards.

RE: Time to powerup

Posted by John W. on July 8, 2009
Yariv,

There is definitely a distinction between power-up and when an OS is 'operational' - and operational can be defined in a variety of ways.

In addition to Richard's reply - I am assuming you mean when the kernel is operational - you have to look at what you need to do for initialization, installation of interrupt vectors, look at your assembly (and count cycles) for perhaps when one task is created, the kernel is 'started', and the first tick interrupt occurs. It may be somewhat difficult to calculate this depending on your target.

May I make a suggestion?

Put a scope probe on an I/O line - such as maybe going to an LED. Toggle the LED in the timer IRQ and/or make a timer hook to do it. With another scope probe - put that on the reset line - and use that to start the trace - by making the first probe either level or edge triggered by when the reset line goes inactive after power-on. When the first scope probe toggles that is an estimation of when the first timer IRQ is able to respond - and thus gives an indication of the kernel being up. You can also toggle the I/O in tasks, etc. to determine how long it takes for the 1st task completion, etc.

Of course, you will need a decent scope and access to some I/O lines to make this work - but it will give you a 'real' answer vs. having to do a detailed analysis with instructions and cycle-times which can be quite an exercise.

HTH,
John

RE: Time to powerup

Posted by yariv gal on July 8, 2009
Thanks John for the answer.
I would applly your suggestion but I am currently have no HW, I am on process of choosing RTOS and try to do some comparisons between some RTOS (mainly the AT32UC3 compatible )
My question was to get some estimation on FreeRTOS in meaning of start up process as a pure RT operation system. Is there any OS process running before initial any tasks etc' ....

Thanks
Yariv


[ 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