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.

Compiler/CC2650STK: Creating Task with XGCONF

Part Number: CC2650STK

Tool/software: TI C/C++ Compiler

Hi everyone

I create a task using the XGCONF GUI. The settings are shown in the screenshot below:

My main.cpp file:

void uart(UArg arg0, UArg arg1)
{
    // coding here
}

int main(void)
{
    Board_initGeneral();

    BIOS_start();

    return (0);
}


An error occurs during compilation:
unresolved symbol uart, first referenced in C:\Users\rushestm\workspace_v8\uartecho_CC2650STK_TI_CC2650F128\Debug\configPkg\package\cfg\uartecho_pem3.oem3

If I create the task without gui, it's works properly.

What could be my mistake?

Thank you in advance

  • Hi Egor,

    Since the function is in a C++ file, it is getting name-mangled. Try adding an extern  "C' around the uart function.

    #ifdef __cplusplus
    extern "C"
    {
    #endif
    
    //uart function goes here
    
    #ifdef __cplusplus
    } // extern "C"
    #endif