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.

LAUNCHXL-CC26X2R1: adding Seconds_get to simplebleperipheral

Guru 18435 points
Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: SYSBIOS


I used to be able to use the Seconds API by adding the following to the project cfg file.

var Seconds = xdc.useModule('ti.sysbios.hal.Seconds');

I don't see this project cfg file in the simplebleperipheral example in the latest SDK.

So how do I add it? Otherwise when building it says

unresolved symbol Seconds_get()


  • Hey Kazola,

    The reason you are experiencing this issue is because of the migration from BIOS6 to BIOS7 (shown as tirtos7 when importing the project).

    To use the seconds module, you should just be able to add the correct include path. Here is a snippet from the BIOS7 User's Guide:

    #include <time.h>
    #include <ti/sysbios/hal/Seconds.h>
    uint32_t t;
    /* set to today’s date in seconds since Jan 1, 1970 */
    Seconds_set(1412800000); /* Wed, 08 Oct 2014 20:26:40 GMT */
    /* retrieve current time relative to Jan 1, 1970 */
    t = Seconds_get();

    For some additional detail, here's the migration guide document as well.