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

vTaskStartTrace() on AVR

Posted by Nobody/Anonymous on January 29, 2007
Hallo,

i'm doing some tests with FreeRTOS on ATMEL AVR (ATmega32) and i have a problem with the vTaskStartTrace() function.

In my main.c i have defined a buffer:
#define BUFFER_SIZE( ( unsigned portSHORT ) 512 )
static portCHAR pcWriteBuffer[BUFFER_SIZE];

I call vTaskStartTrace(pcWriteBuffer, BUFFER_SIZE) in a suicid-task. I think after calling vTaskStartTrace() there shoult be a list in memory on adress pcWriteBuffer. I copied the data on this adress into i file (then hex2bin and tracecon). But the result can't be correct:

1950631244.00000029537
1145392128.00000029537
1145392128.00000024948
1224867890.00000024948
1224867890.00000019524
151614245.00000019524
151614245.00000025381
1965361525.00000025381
1965361525.0000009481
168624138.0000009481
168624138.0000000
43264.0000000
43264.0000000
66304.0000000
66304.0000003
0.0000003
0.0000000
0.0000000
0.0000000
0.0000000

What have i done wrong? I'm new in freertos and also in c, so sorry, if it is my mistake!

Kristian

RE: vTaskStartTrace() on AVR

Posted by Nobody/Anonymous on January 29, 2007
Could it be the endian of the data. I think there is a trace con for big and little endian.

RE: vTaskStartTrace() on AVR

Posted by Nobody/Anonymous on January 30, 2007
I fixed it, but i do not know how. I set the priority of the vTaskStartTrace() calling task to the highest priority. But i think my that this was not my problem ...
Now it looks like this:

13.0000002
25.0000002
25.0000000
26.0000000
26.0000001
27.0000001
27.0000000
28.0000000
28.0000001
29.0000001
29.0000000
30.0000000
30.0000001
31.0000001
31.0000000
32.0000000

Kristian


[ 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