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.

IWR6843ISK: timer build error

Part Number: IWR6843ISK
Other Parts Discussed in Thread: SYSBIOS

Hello, all

I want to use a period timer.

So I referenced https://www.ti.com/lit/ug/spruex3v/spruex3v.pdf - section 8.3

But the following build error occurs.

---------------------------------------------------------------------------------------------------------

undefined first referenced
symbol in file
--------- ----------------
ti_sysbios_hal_Timer_Params__init__S ./CPD/CPD_FSM.obj
ti_sysbios_hal_Timer_create ./CPD/CPD_FSM.obj
ti_sysbios_hal_Timer_getPeriod__E ./CPD/CPD_FSM.obj
ti_sysbios_hal_Timer_stop__E ./CPD/CPD_FSM.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "roa_v1_mss.xer4f" not built

---------------------------------------------------------------------------------------------------------

This is my code.

/* Standard Include Files. */
#include <time.h>

/* BIOS/XDC Include Files. */
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
#include <ti/sysbios/hal/Timer.h>

/* mmWave SDK Include Files: */
//#include <ti/common/sys_common.h>

/* CPD Include Files */
#include "CPD/CPD_FSM.h"

/**************************************************************************
 *************************** Global Definitions ***************************
 **************************************************************************/

Timer_Params	timerParams;
Timer_Handle	reminderTimer;
Timer_Handle	warningTimer;
Error_Block		eb;


static void reminderTimerIsr(UArg arg0);
static void warningTimerIsr(UArg arg0);



void CPD_FSM_Init(void)
{
	Error_init(&eb);

	/* Init timer */
	Timer_Params_init(&timerParams);
	timerParams.period = 100000000;  /* 100s */
	timerParams.periodType = Timer_PeriodType_MICROSECS;
	timerParams.arg = 1;
	reminderTimer = Timer_create(Timer_ANY, reminderTimerIsr, &timerParams, &eb);
	if(reminderTimer == NULL)
	{
	    System_abort("Reminder timer create failed");
	}

	warningTimer = Timer_create(Timer_ANY, warningTimerIsr, &timerParams, &eb);
    if(warningTimer == NULL)
    {
        System_abort("Warning timer create failed");
    }

    Timer_stop(reminderTimer);
    Timer_stop(warningTimer);
}

static void reminderTimerIsr(UArg arg0)
{
    System_printf("Current reminder timer period = %d\n", Timer_getPeriod(reminderTimer));
}

static void warningTimerIsr(UArg arg0)
{
    System_printf("Current warning timer period = %d\n", Timer_getPeriod(warningTimer));
}

Where are the functions used in the guide documentation?

What header files should I include? How to link header files?