Quality RTOS & Embedded Software

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


Loading

Retrieving the trace buffer

Posted by Richard on March 1, 2008
[moved from private email - please use the forum or Skype option for support unless you have a support contract]

ulTaskEndTrace();

………..

Now I want this buffer tRace in some file, when I use normal method of File datatype in C

It generates error like .

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-fopen.o): In function `_fopen_r':

fopen.c:(.text+0x58): undefined reference to `_open_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-freer.o): In function `_malloc_trim_r':

mallocr.c:(.text+0x48): undefined reference to `_sbrk_r'

mallocr.c:(.text+0x70): undefined reference to `_sbrk_r'

mallocr.c:(.text+0xb4): undefined reference to `_sbrk_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-fseek.o): In function `_fseek_r':

fseek.c:(.text+0xf4): undefined reference to `_fstat_r'

fseek.c:(.text+0x35c): undefined reference to `_fstat_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-makebuf.o): In function `__smakebuf_r':

makebuf.c:(.text+0x40): undefined reference to `_fstat_r'

makebuf.c:(.text+0x104): undefined reference to `isatty'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-mallocr.o): In function `_malloc_r':

mallocr.c:(.text+0x428): undefined reference to `_sbrk_r'

mallocr.c:(.text+0x5c0): undefined reference to `_sbrk_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-stdio.o): In function `__sclose':

stdio.c:(.text+0xc): undefined reference to `_close_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-stdio.o): In function `__sseek':

stdio.c:(.text+0x30): undefined reference to `_lseek_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-stdio.o): In function `__swrite':

stdio.c:(.text+0x90): undefined reference to `_lseek_r'

stdio.c:(.text+0xb4): undefined reference to `_write_r'

c:/winarm/bin/../lib/gcc/arm-elf/4.1.2/../../../../arm-elf/lib\libg.a(lib_a-stdio.o): In function `__sread':

stdio.c:(.text+0xd8): undefined reference to `_read_r'

collect2: ld returned 1 exit status

make: *** [LPC2210.elf] Error 1

Plz guide me ……………..


RE: Retrieving the trace buffer

Posted by Richard on March 1, 2008
You have no method of accessing files linked into your application - probably because you don't have a file system to which the data can be written.

Depending on your debug interface, it is normal to retrieve the raw data file through the debugger and save it to a file on your host computer.

Regards.


[ 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