FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2007 Threads] vPrintTaskList bug?Posted by Hendrik Lachmann on August 20, 2007 Hello!!
I want to print all current tasks with vPrintTaskList(). Everything runs fine with one exception: The taskname of the task starting before the scheduler has started, is not shown correctly.
Following scenario: 1) created task before scheduler (task name "VS", task number 0) 2) started scheduler, IDLE task is created (task number 1) 3) created new task (task name "TWI", task number 2) with task 0 4) executed vPrintTaskList in task0 -> all task names are shown correctly except the task name "VS". Instead "VS" "2" is printed. Is this phenomenon known and does anybody know a solution?
I use an AVR ATMega32 with GCC4.2.1
Thanks, Hendrik
RE: vPrintTaskList bug?Posted by Richard on August 20, 2007 This is most likely a stack overflow problem - I have seen something very similar before. vPrintTaskList uses sprintf() which can use an awful lot of stack, especially when using GCC. On the AVR you are not going to have much RAM available in order to increase the stack sizes too much so I would suggest providing your own cut down version of sprintf() (or whatever other library functions it uses).
Take a look at the LM3S6965 GCC demo which uses a small snprintf() implementation to get around the same problem.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|