FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [February 2014 Threads]
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.
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.
aye...found the problem. I was missing the "" in the define. Had "INCLUDEeTaskGetState",
not "INCLUDEeTaskGetState"
eyes wide shut.... 8--]
Thanks!
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.