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


FreeRTOS vs 160112_FreeRTOS_Labs

Posted by sting854 on April 25, 2016

I want to use the FreeRTOS-Plus-TCP. Do I use the FreeROS base from FreeRTOSV9.0.0rc2.zip or from the 160112FreeRTOS_Labs at


it looks like the files are a different size.

FreeRTOS vs 160112_FreeRTOS_Labs

Posted by heinbali01 on April 25, 2016

Hi Ray,

160112FreeRTOSLabs was tested and released with the kernel version V8.2.3 That version is included in the ZIP. It should work equally well with V9.0.0 and higher.

FreeRTOS vs 160112_FreeRTOS_Labs

Posted by heinbali01 on April 25, 2016

I forgot to ask: what MCU will you use?

There are official FreeRTOS+TCP ports for:

Atmel SAM4E
Xilinx Zynq and ZC702

Other ports have been developed by users, these include:

NXP (Freescale) Kinetis K63F
NXP LPC43xx (similar to LPC18xx)
Altera Cyclone V SoC
TI's TMS570lc4375
Microchip PIC32xx
Atmel UC3A

I'm not sure about the status of each of these projects but just tell which one you're interested in and I'll find out,


FreeRTOS vs 160112_FreeRTOS_Labs

Posted by raymadigan on April 27, 2016

I am using the Xilinx MicroZed board.

I have another question. I want just plain TCPIP and none of the other protocols, FTP/HTTP/NTP. In my project I create a linked directory to the FreeRTOS-Plus-TCP directory so I can link in the stack and I get all of those other protocols that I also have to provide the headers for.

What is your recommended method of handling this, I don't want to do it in a different way then your intentions.

FreeRTOS vs 160112_FreeRTOS_Labs

Posted by raymadigan on April 27, 2016

Specifically I have to start linking in the FAT libraries because the NTPDemo uses ff-headers.h. My device will not be connected to the internet.

FreeRTOS vs 160112_FreeRTOS_Labs

Posted by rtel on April 27, 2016

Is this an Eclipse question? In that, how to get Eclipse to build just the files you want and not just blindly build every file in the directory (which is once of Eclipses least helpful habits)?

If so, then you either need to use resource filters to include and/or exclude files and folders, as described on the link below, or you need to right click on the file you don't want to build, then in the pop-up menu find the "Exclude from build" check box.


FreeRTOS vs 160112_FreeRTOS_Labs

Posted by heinbali01 on April 27, 2016

And as far as this is not an Eclipse question:

The FTP/HTTP/NTP protocols are just extra's, examples of how to use the FreeRTOS+TCP stack.

This means that you can leave out all files under the protocols directory.

Other protocols are selectable through defines:

~~~~ #define ipconfigUSEDHCP ( 1 ) #define ipconfigUSELLMNR ( 1 ) #define ipconfigUSENBNS ( 1 ) #define ipconfigUSEDNS ( 1 ) #define ipconfigSUPPORTOUTGOINGPINGS ( 1 ) ~~~~

I would recommend to use at least these:

~~~~ #define ipconfigTCPHANGPROTECTION ( 1 ) #define ipconfigTCPKEEPALIVE ( 1 ) #define ipconfigREPLYTOINCOMING_PINGS ( 1 ) ~~~~

The use of UDP can not be excluded from +TCP.

You can deselect TCP:

~~~~ #define ipconfigUSE_TCP ( 0 ) ~~~~

which can be useful for e.g. a UDP-enabled boot-loader.

Specifically I have to start linking in the FAT libraries because the NTPDemo uses ff-headers.h

Sorry about that. The reason is that the FreeRTOS+FAT library has two handy functions to transform time:

~~~~ /* Equivalent of mktime() : calculates * the number of seconds after 1-1-1970. */ timet FreeRTOSmktime( const FFTimeStructt *pxTimeBuf );

/* Equivalent of gmtime_r() : Fills a 'struct tm'. */
FF_TimeStruct_t *FreeRTOS_gmtime_r( const time_t *pxTime,
    FF_TimeStruct_t *pxTimeBuf );


These functions are not always available on all every platform / compiler.


[ 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