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

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