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.

MCU-PLUS-SDK-AM263X: MCU-SDK-AM2634

Part Number: MCU-PLUS-SDK-AM263X

Hello,

I am learning FreeRTOS to run periodic task. 

I have added  #define INCLUDE_vTaskDelayUntil         (1)       into FreeRTOSConfig.h to be able to call vTaskDelayUntil

The build is failed due to :

undefined first referenced
symbol in file
--------- ----------------
xTaskDelayUntil ./main.o

However other API such as vTaskDelete(), xTaskGetTickCount and so on are compiled.
someone have already encountered this error and resolved it, but he haven't mentioned what he did to resolve this error.
pls help.

  • Hi Vishnu Verma, 

    someone have already encountered this error and resolved it, but he haven't mentioned what he did to resolve this error.
    pls help.

    The issue there seemed to be in the build system. They did not re-build the library after making the changes. Whenever you make some changes in library like here you did in FreeRTOS, you have to re-build the FreeRTOS library and then your application.

    I'll share the steps below to enable and use the same:

    1. In  FreeRTOSConfig.h, add the include define statement (i see you have already done this step)

    2. Re-compile the FreeRTOS library using the command: (Run the command from the mcu_plus_sdk path)

    gmake -sj -f makefile.am263x freertos_r5f.ti-arm-clang

    3. Add the function call in your application as shown below: (Im using a sample hello world application from the SDK):

    void freertos_main(void *args)
    {
        hello_world_main(NULL);
        TickType_t xCurrentTicks = xTaskGetTickCount();
        vTaskDelayUntil(&xCurrentTicks, 1);
        vTaskDelete(NULL);
    }

    You can replace the function parameters as per your needs.

    4. Rebuild the application

    Now the application should compile without any errors.

    You can read more about vTaskDelayUntil here: www.freertos.org/vtaskdelayuntil.html

    Regards,

    Shaunak