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

FreeRTOSV 8.2.3 debugging with Visual Studio issues.

Posted by devrules616 on March 25, 2017

Hello guys, So I am new to RTOS . I tried to start with using the Visual studio IDE to build the project. I created two tasks with following params.

Task1 name="Task1"Task2 name="Task2" Task1 stack size = 1000 Task2 stack size = 100 Task1 priority = 3 Task2 priority = 1 started the scheduler.

Now i put two printf statements in each tasks .to check in console. but none of them show up. Please chek the code below .

//1st task that we have void vTaskCode1(void * param) { while(1) { printf("This is task 1...%dn",i+1); vTaskDelay(100); } }

// Create func. for the first task void vTaskCreate1(void) { BaseTypet xReturned; TaskHandlet xHandle = NULL; /* Create the task, storing the handle. / printf("about to create task 1...n"); xReturned = xTaskCreate( vTaskCode1, / Function that implements the task. / "Task1", / Text name for the task. / 1000, / Stack size in words, not bytes. / (int *)1, / Parameter passed into the task. / 3, / Priority at which the task is created. / &xHandle); / Used to pass out the created task's handle. */

if (xReturned == pdPASS)
{
	/* The task was created.  Use the task's handle to delete the task. */
	vTaskDelete(xHandle);
}

}

void main() { prvInitialiseHeap(); vTraceInitTraceData(); xTickTraceUserEvent = xTraceOpenLabel("tick");

vTaskCreate1(); vTaskCreate2();

vTaskStartScheduler(); }

Any help or suggestion is really welcome. Thank You


FreeRTOSV 8.2.3 debugging with Visual Studio issues.

Posted by heinbali01 on March 25, 2017

Without having read the entire code....:

within a Windows FreeRTOS project, you can not make a call to printf() or any other system API. If you want to send out logging, please refer to the module demo_logging.c and its function vLoggingPrintf().


[ 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