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

FreeRTOS + tracer problem

Posted by omytea on May 20, 2013
Hi,

I am trying to use tracer software from Percepio. I did some test but it seems like the recorder data did not record any context switch information. My working environment is a xilinx sp605 evaluation board. I am running FreeRTOS on a microblaze core.

The main function is like this:
------------------------------------
int main( void )
{
prvSetupHardware();

vTraceInitTraceData();
if (! uiTraceStart() ){ vTraceConsoleMessage("Could not start recorder!"); }

traceLabel consoleLabel;
consoleLabel = xTraceOpenLabel("Messages");
vTraceUserEvent(xTraceOpenLabel("Demo starting..."));
vTraceUserEvent(xTraceOpenLabel("vTraceUserEvent creates basic User Events."));
vTracePrintF(consoleLabel, "vTracePrintF creates advanced user events, like printf");
vTracePrintF(consoleLabel, "A double: %lf (should be 1.0)", (double)1.0);

xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( unsigned long ) );
vTraceSetQueueName(xQueue, "xQueue");
configASSERT( xQueue );

xTaskCreate( prvQueueReceiveTask, ( signed char * ) "Rx", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_RECEIVE_TASK_PRIORITY, NULL );
xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );

xLEDTimer = xTimerCreate( ( const signed char * ) "LEDTimer", /* A text name, purely to help debugging. */
( 5000 / portTICK_RATE_MS ),/* The timer period, in this case 5000ms (5s). */
pdFALSE,/* This is a one shot timer, so xAutoReload is set to pdFALSE. */
( void * ) 0,/* The ID is not used, so can be set to anything. */
vLEDTimerCallback/* The callback function that switches the LED off. */
);

vTaskStartScheduler();

for( ;; );
}

------------------------------------
And here is my hardware port configuration

#elif (SELECTED_PORT == PORT_XILINX_MICROBLAZE)
#include "xtmrctr_l.h"

#define HWTC_COUNT_DIRECTION DIRECTION_DECREMENTING
#define HWTC_COUNT XTmrCtr_GetTimerCounterReg( XPAR_TMRCTR_0_BASEADDR, 0 )
#define HWTC_PERIOD ( XPAR_MICROBLAZE_CORE_CLOCK_FREQ_HZ / configTICK_RATE_HZ )
#define HWTC_DIVISOR 16

#define IRQ_PRIORITY_ORDER 0 // lower IRQ priority values are more significant

When the tracer software open the memory dump binary file, it only shows user events happening in the main function but did not record anything after two task is created.

Looking forward for any suggestion. Thanks

Best regards,
Yang

RE: FreeRTOS + tracer problem

Posted by Richard on May 20, 2013
I'm not in a position to be able to test this right now, but suggest you get in touch with Percepio support. There is a support email address listed on their website.

Regards.


[ 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