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.

SYSBIOS: TI IWR1642BOOST, Creating timer using hal.Timer module is giving " : Hwi undefined, intnum: 3" error

Part Number: SYSBIOS
Other Parts Discussed in Thread: IWR1642BOOST,

Tool/software:

Hi, 

I want to run a periodic task in the ARM core of IWR1642BOOST. I am using the following code to implement this 

Timer_Params timerParams;
Timer_Params_init(&timerParams);
timerParams.period = 2000000;
timerParams.arg = 1;
timerParams.periodType = Timer_PeriodType_MICROSECS;
timerParams.runMode = Timer_RunMode_CONTINUOUS;
//Dynamically created Timers will start at create() time. This includes timers created before BIOS_start().
timerParams.startMode = Timer_StartMode_AUTO;
//specify a timerId Timer_ANY (in C), which means "use any available timer".
timer = Timer_create(Timer_ANY, tickFxn, &timerParams, NULL);
In the cfg file, I have added 
var Timer = xdc.useModule('ti.sysbios.hal.Timer');
I have 2 issues: 

1 ; When I run the code, I am getting the below error : 

ti.sysbios.family.arm.v7r.vim.Hwi: line 271: E_undefined: Hwi undefined, intnum: 3
xdc.runtime.Error.raise: terminating execution

The error is coming from C:\ti\bios_6_73_01_01\packages\ti\sysbios\timers\rti|\Timer.c (Timer_Instance_init),

I saw similar errors in other posts, I checked the solutions and none of them solves the issue I am seeing. 

Also noticed that the intnum specified is not 3 in most of the cases. 

2. in the function Timer_Instance_init(), the control is going to else condition even though I have specified Timer_RunMode_CONTINOUS

hwiParams.arg = (UArg)obj;
if (obj->runMode == Timer_RunMode_CONTINUOUS) {
obj->hwi = Hwi_create (obj->intNum, Timer_periodicStub,
&hwiParams, eb);
}
else {
 obj->hwi = Hwi_create (obj->intNum, Timer_oneShotStub,
&hwiParams, eb);
}
if (obj->hwi == NULL) {
return (4);
}

This is not the main issue. However I am wondering why is it going to else condition. 

I am doing debugging in CCSStudio. 

Can you please help me debug further 

Also, Can you share the example code that uses timer for IWR1642BOOST?  Currently I referred the code from SYSBIOS Doc. 

Thanks 

Regards 

Gayatri

I saw other posts in