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.

Sharing 64-bit timer on OMAPL138 for Linux and BIOS clocks

Other Parts Discussed in Thread: OMAPL138, SYSBIOS

Hi:

 

Trying the BIOS forum as I did not get an answer on L138 forum

On OMAPL138, is it possible to configure 64-bit Timer 0 as two 32-bit unchained timers and use them as OS clocks for Linux running on the ARM and BIOS running on the DSP?  Or will BIOS can interfere with the operation of the other timer during the configuration step for example?

And more general questions, can the application running on two separate cores share the 64-bit timer as long as its in 32-bit unchained mode?

Thanks

Pradhyum

Please link this post to the following post on OMAPL1 forum..

http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/96729/337586.aspx#337586

  • Pradhyum,

    The answer to your question is "Yes" you can configure the 64-bit Timer as 2 32-bit unchained timers and use 1 of the 32-bit timers on ARM and the other on DSP with BIOS. The BIOS defaults are "unchained mode for the timer", "lower half of 64-bit timer", and "release the timer from reset".  Since, you want to share a timer with the ARM, you need to determine if the ARM is to release the timer from reset or not. [Typically the ARM would do this].  If the ARM releases the Timer from reset, then you need to make some changes in your BIOS configuration file (*.cfg)

    var Timer = xdc.useModule("ti.sysbios.timers.timer64.Timer") ;
    var id = 0 ;                                                           /* which timer to configure */
    Timer.timerSettings[id].master = false;        /* set this to false, if you don't want to release the timer from reset from DSP */

    To specify the upper or lower half of the 64-bit Timer, you can do through the params structure when you create the Timer.

    Judah