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/AM5728: Timer access from DSP or IPU

Part Number: AM5728
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

hi, base on AM5728 and rtos,I want use the dsp or M4 to use dmtimer,is there any demo or datum can be refered, thank you.

  • The RTOS team have been notified. They will respond here.
  • Hi,

    The timer test example is under pdk_am57xx_1_0_x\packages\ti\csl\example\timer, it is bare metal. In RTOS, the timer may be integrated into some driver for functionality, but not separate RTOS examples.

    Attached is a standalone one we used on A15, the timer is setup in the .cfg file:

    var Timer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');

    var IntXbar = xdc.useModule('ti.sysbios.family.shared.vayu.IntXbar');

    var TimerSupport = xdc.useModule('ti.sysbios.family.shared.vayu.TimerSupport');

    TimerSupport.availMask = 0xF0FF;

    var timer0Params = new Timer.Params();

    timer0Params.instance.name = "timerTest";

    timer0Params.period = 100000;

    timer0Params.extFreq.lo = 20000000;

    timer0Params.periodType = xdc.module("ti.sysbios.interfaces.ITimer").PeriodType_MICROSECS;

    Program.global.timerOwn = Timer.create(5, "&TimerFunction", timer0Params); // ok

    You can use the same for DSP or IPU.

    Regards, Eric

    6813.Timer_A15.zip