Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner