Quality RTOS & Embedded Software

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


Loading

Compile "FreeRTOS_library" w...

Posted by Alejandro Celery on July 20, 2011
Hi, i´d like to compile the project "FreeRTOS_library" into a static library but without the portable layer, i´d like the portable to be part of the project at hand.
I tried it, but couldn´t get the library to build without portmacro.h and port.c. Is there a way around this?
The main benefits would be that i wouldn´t have to touch my project files when there´s a FreeRTOS update and that the same static library would work with different ports without needing it to rebuild.
Thanks!

Regards,
Alex

RE: Compile "FreeRTOS_library" w...

Posted by Richard on July 20, 2011
Please read http://www.freertos.org/FAQ-how-to-use-the-FreeRTOS-support-forum.html then provide more details about what it is you are trying to do. I can only guess otherwise, and as 27 architectures and 17 development tools are supported, it is highly unlikely I will guess right.

Regards.

RE: Compile "FreeRTOS_library" w...

Posted by Richard Damon on July 20, 2011
Your should give a bit of thought to what you are trying to do. The main thing that the portable layer provides are the details of how a given processor works. When you compile a static library, you generally need to define which processor you are targeting (at least to the processor family. which is normally most of what the portable layer needs to know). It is very unlikely that you are going to be able to get a static library that works with many "ports", unless you are in the habit of changing the resources used by the portable layer for what timer resource you use, or change the clock frequency you run the system at, and for that you just need to not bundle port.c into the library, and provide it separately.

The other issue you are going to run into is that the FreeRTOS files need the FreeRTOSConfig.h file to define certain resource limits that are compiled into the library. If you want to pre-compile the library, you are going to need to lock down the values/options specified therein.


[ 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