I'm using Runtime Object View (ROV) and I see the following:
Is this a problem or expected behavior? Can you please give more details?
Note: the same is show in ROV Classic.
TI-RTOS supports three modes of instance creation:
Both ROV products (Runtime Object View and ROV Classic) show objects created via #1 and #3 with no issues. A statically created task (#3) will always show up in ROV. A run-time created task will show up in ROV once it is created. It is removed from ROV if the task is deleted.
#2 is where things get a little tricky! Remember, the application is providing the <Mod>_Struct that is passed into the <Mod>_construct call. The decision was made to have ROV show the <Mod>_Struct in ROV before the <Mod>_construct was called on it (debatable decision in hindsight). We felt that it might be helpful information. However, before the construct is called, that Struct is uninitialized, so instead of showing garbage (which we did for a few old releases), we have the "Uninitialized object" message.
So consider the following code:
Task_Struct task0Struct, task1Struct;
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task0Stack;
Task_construct(&task0Struct, (Task_FuncPtr)writerTask, &taskParams, Error_IGNORE);
taskParams.stack = &task1Stack;
Task_construct(&task1Struct, (Task_FuncPtr)readerTask, &taskParams, Error_IGNORE);
If you had ROV open when you were at line 5 in the debugger, it would have the two "Uninitialized Task Object" messages (as shown in the original post). Once you run to over lines 10 and 12, you get this.
So the short answer is this is not a problem. It's the normal and expected (and that we had a hard time finding the best short string to describe it).
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.