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: CC2650 LanhcuPad with Project Zero example , problem with Timer

Other Parts Discussed in Thread: CC2650

Tool/software: TI-RTOS

I want use CC2650  Timer in Project Zero

I add code in /ProjectZeroApp_CC2650LAUNCHXL/StartUp/main.c:

#include <ti/sysbios/family/arm/cc26xx/Timer.h>

static Timer_Handle timerHandle;
void timerHwiFxn(UArg arg)
{
	Log_info0("Test");
}
int main()
{
  PIN_init(BoardGpioInitTable);

  Error_Block eb;
  Error_init(&eb);

  Timer_Params timerParams;
  timerParams.period = 1000;
  timerParams.periodType = Timer_PeriodType_MICROSECS;
  timerParams.startMode = Timer_StartMode_AUTO;
  timerParams.runMode = Timer_RunMode_ONESHOT;
  timerHandle = Timer_create(Timer_ANY, timerHwiFxn, &timerParams, &eb);

  .....
}


and I add 

var Timer = xdc.useModule('ti.sysbios.family.arm.cc26xx.Timer');

in /ProjectZeroApp_CC2650LAUNCHXL/TOOLS/appBLE_UartLog.cfg


But when program run at this line:

timerHandle = Timer_create(Timer_ANY, timerHwiFxn, &timerParams, &eb);

program will stuck in

void exceptionHandler()
{
  volatile uint8_t i = 1;
  while(i){}
}

Any ideal?

Thanks