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 2009 Threads] About TracePosted 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 TracePosted 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 TracePosted 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 TracePosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|