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: Timer Driver is not working with BLE Stack

Part Number: LAUNCHXL-CC26X2R1
Other Parts Discussed in Thread: SYSCONFIG, SIMPLELINK-CC13XX-CC26XX-SDK

Hi,

I'm facing a problem with integrating the timer driver with the BLE stack.

Timer_init();


Timer_Params_init(&params);
params.period = 1000000;
params.periodUnits = Timer_PERIOD_US;
params.timerMode = Timer_CONTINUOUS_CALLBACK;
params.timerCallback = timerCallback;

timer0 = Timer_open(CONFIG_TIMER_0, &params);

if (timer0 == NULL) {
/* Failed to initialized timer */
while (1) {}
}
if (Timer_start(timer0) == Timer_STATUS_ERROR) {
/* Failed to start timer */
while (1) {}
}

when I add this timer code to the BLE Stack main, that timer0 instance is getting NULL and its getting failed to initialize when I try to place it anywhere with BLE STACK.

  • Hi Sanjay,

    I did not encounter any such difficulty after adding the Timer TI Driver instance to SysConfig and adding the initialization code to SimplePeripheral_init inside a SIMPLELINK-CC13XX-CC26XX-SDK project.  Please further explain your example code reference, SDK version, and additional project setup if you are still unable to resolve the issue.

    Regards,
    Ryan