Quality RTOS & Embedded Software

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


Loading

How can i get state of task in freeRTOS?

Posted by jayeshbhoi on October 8, 2014

I want to know current state of task and i found somthing in below link

http://www.freertos.org/a00021.html

But in my freertos source there is no function named eTaskGetState but there is one function named eTaskStateGet in task.h file and also this function not defined. it is declared as follows

eTaskState eTaskStateGet( xTaskHandle pxTask ) PRIVILEGED_FUNCTION;

so how can i get state of task?


How can i get state of task in freeRTOS?

Posted by rtel on October 8, 2014

I presume you are using an old version of FreeRTOS - but the function you found should still work (even though it was renamed some time ago) and you may even find there is a

#define
that maps the old name to the new name.

As you are posting this I assume you tried calling the function but it didn't work? If so please let us know what the issue was.

Regards.


How can i get state of task in freeRTOS?

Posted by jayeshbhoi on October 8, 2014

i am using freeRTOS version 7.3.0 and yes, i tried to calling function eTaskStateGet but it give error like

undefined reference to eTaskStateGet.

where i can found defination of that function?


How can i get state of task in freeRTOS?

Posted by rtel on October 8, 2014

...did you set INCLUDEeTaskGetState (or INCLUDEeTaskStateGet) to 1 in FreeRTOSConfig.h? Have a look at the function in the source code.

Regards.


How can i get state of task in freeRTOS?

Posted by jayeshbhoi on October 8, 2014

Ok got it and now error is gone. Thanks for your support.


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

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