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

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