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.

RTOS/CC1310: TI-RTOS, CC1310 Timer linker errors

Part Number: CC1310
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I am trying to get a periodic timer working where it calls an ISR every 200ms. This is my code (largely copied from ti_rtos_spruex3q.pdf):

/* XDCtools Header files */
#include <xdc/runtime/Assert.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
#include <xdc/std.h>

/* BIOS Header files */
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/knl/Swi.h>
#include <ti/sysbios/timers/dmtimer/Timer.h>
//#include <ti/sysbios/hal/Timer.h>

/* Board Header Files */
#include "Board.h"

/* Global memory storage for a PIN_Config table */
static PIN_State ledPinState;

extern PIN_Config ledPinTable[];

/* Prototypes */
void timerIsr(xdc_UArg);


void timerTest(void)
{
    Timer_Params timerParams;
    Timer_Handle myTimer;
    Error_Block eb;

    Error_init(&eb);

    Timer_Params_init(&timerParams);
    timerParams.period = 200000;
    timerParams.periodType = Timer_PeriodType_MICROSECS;
    timerParams.arg = 1;
    myTimer = Timer_create(Timer_ANY, timerIsr, &timerParams, &eb);
    if (myTimer == NULL) {
        System_abort("Timer create failed");
    }
}


void timerIsr(xdc_UArg uarg)
{
	;   // Toggle led or something like that here
}

but I can't get it to build as there are these linker errors:

Error[Li005]: no definition for "ti_sysbios_timers_dmtimer_Timer_create" [referenced from C:\Users\dw\Documents\TestProj\Debug\Obj\timer_test.o]
Error[Li005]: no definition for "ti_sysbios_timers_dmtimer_Timer_Params__init__S" [referenced from C:\Users\dw\Documents\TestProj\Debug\Obj\timer_test.o]
Error while running Linker

I suspect I'm missing something like a project setting. Any help would be much appreciated please?