This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Compiler: Probably an "#include" issue.

Tool/software: TI C/C++ Compiler

Hi all,

In order to verify the stack size we defined in our project, I want to use the function TSK_stat:

Void TSK_stat(TSK_Handle task, TSK_Stat *statbuf);

After adding the "#include <ti/bios/include/tsk.h>", I get the below compiler error:

identifier "Arg" is undefined.

Inside the tsk.h indeed I see the usage of "Arg":

typedef struct TSK_Glue {
Fxn fxn; /* TSK task function */
Arg args[TSK_MAXARGS];
Int errno;
} TSK_Glue;

What include did I miss?

Thanks,

Alex.

  • Hi Alex,

    You need to add the following before including tsk.h

    #include <std.h>

    Todd
  • In reply to ToddMullanix:

    Hi Todd,

    I tried the below but it didn't help:

    #include <xdc/std.h>

    is it the same? If not, where can I find the <std.h> you are talking about?

  • In reply to Alex Lifshitz:

    Solved!
    Using #include <ti/bios/include/tsk.h> was not right.
    What I need is:
    #include <ti/sysbios/knl/Task.h>
    With that include it looks good.
  • In reply to Alex Lifshitz:

    Sorry. I thought you were using the older RTOS called DSP/BIOS and not the legacy support for it in SYS/BIOS.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.