Quality RTOS & Embedded Software

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


Loading

error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by sachingole on April 26, 2017

Dear all,

I am porting FreeRTOS+TCP for my custome hardware, I have take source from FreeRTOS+TCP. Currently working on NetworkInterface. Its about to finish.

After that when my compilation continues it have error. error: 'pdFREERTOSERRNOEINTR' undeclared (first use in this function)

FreeRTOS version 8.2.3 and FreeRTOS-Plus-TCP as lab download.

Please let me know any info about fixing this error.


error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by heinbali01 on April 26, 2017

Hello Sachin,

After that when my compilation continues it have error. error: 'pdFREERTOSERRNOEINTR' undeclared (first use in this function)

The FreeRTOS ERRNO numbers are defined in two places:

● source/include/projdefs.h ● FreeRTOS-Plus-TCP/include/FreeRTOSerrnoTCP.h

Eventually the FreeRTOS ERRNO defines should be placed in projdefs.h only. But in order to avoid missing declarations, a copy is also placed in FreeRTOS_errno_TCP.h.

ERRNO_EINTR was one of the latest ERRNO's to be added, and it might be that it is not found in the projdefs.h of 8.2.3. and earlier.

You can simply add it:

~~~ #define pdFREERTOSERRNONONE 0 /* No errors / #define pdFREERTOSERRNOENOENT 2 / No such file or directory / +#define pdFREERTOSERRNOEINTR 4 / Interrupted system call / #define pdFREERTOSERRNOEIO 5 / I/O error */ ~~~

ERRNO_EINTR was introduced to support the interruption of blocking API's recvfrom(), recv(), and select().

~~~

if( ipconfigSUPPORT_SIGNALS != 0 )
/* Send a signal to the task which reads from this socket. */
BaseType_t FreeRTOS_SignalSocket( Socket_t xSocket )
{
}
endif /* ipconfigSUPPORT_SIGNALS */

~~~

In case an API was interrupted from outside, it will return -pdFREERTOS_ERRNO_EINTR.


error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by sachingole on April 26, 2017

Thanks for information. Compilation continued, This error got fixed.


[ 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