Quality RTOS & Embedded Software

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


Loading

About Trace

Posted by Ariel Montero on February 12, 2009
I want to use trace macros.
In my FreeRTOSConfig file the maro configUSE_TRACE_FACILITY is = 1.
Then I have the following task:

static void vPeriodicTask( void *pvParameters )
{
vTaskSetApplicationTaskTag(NULL, (void *)1);
for( ;; )
{
vTaskDelay(5);
mPORTAToggleBits(BIT_0);
IFS0bits.CS1IF = 1;
}
}

but when I try to compile it the following error appear:

........................................................
Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "main.c" -o"main.o" -MMD -MF"main.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "tasks.c" -o"tasks.o" -MMD -MF"tasks.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
tasks.c:1837: warning: 'prvListTaskWithinSingleList' defined but not used

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -c -MMD -MF"port_asm.d" -I"D:\Proyectos\Panel\Software\Programa5" "port_asm.S" -o"port_asm.o" -I"D:\Proyectos\Panel\Software\Programa5" -I"." -Wa,--keep-locals,--gdwarf-2

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "heap_2.c" -o"heap_2.o" -MMD -MF"heap_2.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "list.c" -o"list.o" -MMD -MF"list.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "port.c" -o"port.o" -MMD -MF"port.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "croutine.c" -o"croutine.o" -MMD -MF"croutine.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L -x c -c "queue.c" -o"queue.o" -MMD -MF"queue.d" -I"D:\Proyectos\Panel\Software\Programa5" -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer

Executing: "C:\Archivos de programa\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX460F512L "main.o" "tasks.o" "port_asm.o" "heap_2.o" "list.o" "port.o" "croutine.o" "queue.o" -o"Programa5.elf" -Wl,--defsym=__MPLAB_BUILD=1,--defsym=_min_heap_size=0,-Map="Programa5.map"


main.o: In function `vPeriodicTask':

D:\Proyectos\Panel\Software\Programa5/main.c:46: undefined reference to `vTaskSetApplicationTaskTag'

D:\Proyectos\Panel\Software\Programa5/main.c:46: relocation truncated to fit: R_MIPS_26 against `vTaskSetApplicationTaskTag'


Link step failed.

----------------------------------------------------------------------

Release build of project `D:\Proyectos\Panel\Software\Programa5\Programa5.mcp' failed.
Thu Feb 12 18:28:40 2009

----------------------------------------------------------------------

BUILD FAILED

I have the task.c and task.h file in the project.


What is wrong?. Thank you in avanced.

RE: About Trace

Posted by Prithwee on February 13, 2009

Make sure that configUSE_APPLICATION_TASK_TAG =1

Below links may help you.

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

http://www.freertos.org/rtos-trace-macros.html


Regards,
Prithwee.

RE: About Trace

Posted by Dave on February 13, 2009
confgUSE_TRACE_FACILITY is not required to use the trace macros. It is only for the old trace system. Best to set to 0.

RE: About Trace

Posted by Ariel Montero on February 13, 2009
The problem was that the macro ConfigUSE_APPLICATION_TASK_TAG =1
was not in the FreeRTOSConfig file. After add this macro to the file the program compiled without any problem.

Thank you.


[ 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