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.

CCS/CC2640R2F: Any documentation or examples for using the Timer/GPTimer drivers with BLE STACK 1.50?

Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2650, SYSBIOS

Tool/software: Code Composer Studio

Hey guys,

I'm attempting to "port" an existing/working CC2650 application from a custom board, to the newere CC2640R2 since it seems that the CC2650 is going EOL or at least hard to obtain. A part of my old application was based on the much older BLE STACK 2.21 with the beta GPTimer drivers. I was able to struggle through it in the past, but expected the documentation on newer revs of the SDK to be a bit better. However, I can't find any concrete examples of how to use the Timers/GPtimers at all. All I see is the .h/.c files, and can't find anything in the TI Resource Explorer.


Has anyone had any success using the CC2640R2 with a newer build of the BLE STACK to get the GPTimer drivers working? If so, could you point me to an example or a resource I can use to get off the ground?

There are no existing places where I can find a usage of Timer_config.

Thanks guys!

-Ben

  • You can try to refer to file at C:/ti/simplelink_cc13x0_sdk_1_50_00_08/docs/tidrivers/doxygen/html/_g_p_timer_c_c26_x_x_8h.html
  • Hi Ben,

    As Yikai says, you can take a look at the documentation. There are some code snippets to help you there. You can also take a look at the sysbios example projects.
  • Thanks for responding so quickly Yikai and Marie,

    I had actually found that documentation before, and should have probably stated this in my first post (but I couldn't seem to find this other thread at the time.) Does the "problem" in this thread still apply?

    e2e.ti.com/.../632884

    I shouldn't use the generic Timer.h interface, and instead should reach into the lower level GPTimerCC26XX.h file instead? Because including Timer.h complains of an undefined Timer_config struct (which is understandable) but there are no examples of using the Timer system this way.

    I can absolutely bypass Timer.h by reaching into GPTimerCC26XX.h, but again, I just couldn't find any examples. I should have just been more explicit in saying examples only instead of documentation in my first post.

    Thanks again for being patient,
    -Ben
  • This does still apply, you should use the GPTimerCC26XX.h. There is no actual examples that I'm aware of other than the simple example in the header file (and doxygen) itself. 

  • Thanks M-W.

    Judging on my past experience with this BLE STACK SDK, I'm not surprised. Not to be negative, but I've just had sooo many problems with bugs, documentation errors, and weird quirks that I tend to get frustrated when I run into this stuff. The Resource Explorer gave me hope that the documentation had improved...but apparently it still has a ways to go.

    I was able to get it working last night with your recommendation. 

    Thanks again,

    -Ben