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




Loading

TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by luisdanieldorta on May 4, 2014

I am using freeRTOS V8 in code composer studio v5. Cortez-R4TICCS5. And the compiler check this warning:

 #205 function declared implicity

This warning refers to: task.c line 2148 taskSELECTHIGHESTPRIORITY_TASK();

Regards, Luis.


TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by rtel on May 5, 2014

taskSELECTHIGHESTPRIORITY_TASK() is not a function, but a macro, which is defined at the top of tasks.c, which is also the file the macro is called from, so I don't know why the compiler would output such a warning.

What taskSELECTHIGHESTPRIORITYTASK() actually does depends on the value of configUSEPORTOPTIMISEDTASKSELECTION in FreeRTOSConfig.h. Do you define configUSEPORTOPTIMISEDTASK_SELECTION in FreeRTOSConfig.h? If so, what is is set to?

Regards.


TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by luisdanieldorta on May 6, 2014

Thanks,

configUSEPORTOPTIMISEDTASKSELECTION is already define in FreeRTOSConfig.h

With configUSEPORTOPTIMISEDTASKSELECTION set to 1 the warning appears, but set to 0 there is not warning. The compiler version of CCS5 is TI v4.9.5. and the device i am working is a TI RM48l950.


TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by luisdanieldorta on May 6, 2014

Some print screens...

Attachments

image.jpg (553391 bytes)

TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by luisdanieldorta on May 6, 2014

Some print screens...

Attachments

image.jpg (415640 bytes)

TaskSELECT_HIGHEST_PRIORITY_TASK TASK.C LINE2148

Posted by rtel on May 6, 2014

__clz() is a compiler intrinsic - that is - it is provided by the compiler not by FreeRTOS. I'm not sure why it is not finding the definition, maybe it is just related to a compiler version updated? It might be that the name of the intrinsic has changed, try looking it up in the compiler's documentation. Alternatives would be to:

1) Ask TI about it, maybe on an TMS570/RM48 forum, or on a CCS forum. 2) Implement the function yourself. You just need a few lines of assembly code that executes the clz instruction and returns the result. 3) Just set configUSEPORTOPTIMISEDTASKSELECTION to 0.

Regards.


[ 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