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: How to use the TImer15 in TI RTOS



Tool/software: TI-RTOS

We have configured the pin B26 (xref_clk2)  as timer15(mode 10) to use in Cortex M4 running TI RTOS. Which we need to use as input timer to calculate the frequency. 

But when I add a timer from SYS/BIOS in CCS, there is no option to register timer ISR callback for Timer id 15. In CCS it list only Timer Id ANY or Timer Id 0 to 8.

Please let me know whether it is possible to use TImer15 in Cortex M4 running TI RTOS? And How to configure to use the same?

  • Vinay,

    What version of TI-RTOS are you using, and for which device?

    Typically if there is a Timer ID that is not shown as an option it is because that timer is allocated to another processor core on a multicore device.

    Regards,
    Scott

  • Hi Scott,

    I am using ti-processor-sdk-rtos-am57xx-evm-03.01.00.06 with SYS/BIOS 6.45.01.29 GA Release for evm AM572x device and CCS v6.2.

    we are running Linux on Cortex A15 and TI RTOS in Cortex m4 and this pin B26 (xref_clk2)  is not used in Linux.

    I need to use this pin as gpio6_19/timer15 on CortexM4 running TI RTOS.

    Please let me know whether it is possible to use TImer15 in Cortex M4 running TI RTOS?

    Thank you.

    vinay.

  • Hi Vinay,

    OK, thanks. 

    I’ve asked about this, and there is indeed support for using Timer ID 15 on AM572x (either from the A15, or M4).  But the graphical configuration tool is limited to selection of only the first 8 timer IDs.  (There is an outstanding bug report for adding this to the graphical tool.)  But with a text editor you can get around this, and explicitly select timer ID 15, or change the selection made previously in the graphical tool.

    Several of the timers (including ID 15) do not have an interrupt configured by default, and this needs to be configured via the interrupt crossbar (either in the .cfg file, or dynamically at runtime).

    There is some description and example snippets (including Timer ID 15) here: downloads.ti.com/.../TimerSupport.html  Note that the AM572x timer support is the same as “Vayu or DRA7XX”.

    Regards,
    Scott

  • There was a suggested answer and since there has been no active on this thread for more than a week, the suggested answer was marked as verify. Please feel free to select the "Reject Answer" button and reply with more details.