Quality RTOS & Embedded Software

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


Loading

eTaskGetState breaks at link stage

Posted by groufosse on February 24, 2014

Hi, Using IAR EWARM 6.7.2, on Cortex M3 processor. Version 7.5.x worked fine, I did not previously use the function eTaskGetState. After installing v8.0.0, I added a call to eTaskGetState. I then updated my FreeRTOSConfig.h file to set:

define INCLUDEeTaskGetState 1

There are no errors/warnings with the compile of everything, but at the linker I get: Error[Li005]: no definition for "eTaskGetState" [referenced from ...RTOS_DevDebugObjRTOShandler.o]

Any suggestions as to why the linker breaks on this?

Thanks.


eTaskGetState breaks at link stage

Posted by rtel on February 24, 2014

The function is prefixed 'task' so is defined in tasks.c. If you search for eTaskGetState in tasks.c you will find it defined around line 935, and also see it is guarded with the INCLUDE_eTaskGetState preprocessor macro (with the underscore), as is also noted in the API documentation. if you are building that file and you have the preprocessor macro defined then the linker should not have a problem.

Regards.


eTaskGetState breaks at link stage

Posted by groufosse on February 24, 2014

aye...found the problem. I was missing the "" in the define. Had "INCLUDEeTaskGetState", not "INCLUDEeTaskGetState"

eyes wide shut.... 8--]

Thanks!


[ 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