Retrieving the trace buffer
[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/liblibg.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/liblibg.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/liblibg.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/liblibg.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/liblibg.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/liblibg.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/liblibg.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/liblibg.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/liblibg.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 ……………..
Retrieving the trace buffer
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.