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/AM3358: DMTIMER of PROCESSOR-SDK-RTOS-AM335X

Guru 10235 points
Part Number: AM3358
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello, TI Experts,

 

Our customer sent us questions about DMTIMER of PROCESSOR-SDK-RTOS-AM335X.

They try to use DMTIMER like below.

But they cannot use DMTIMER.

 

HW:AM3358 SK
SW:bios_6_73_00_12

xxx.cfg: add descriptions like below;

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

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

 

xx.c :

  Timer_Params_init( &aTimerParams );

  aTimerParams.arg = 0; // DMTIMER2 ID=0

  aTimerParams.extFreq.lo = 20000000;//(20MHz)

  aTimerParams.period = 0xFFFFFFFF;

  aTimerParams.periodType = ITimer_PeriodType_COUNTS;

  aTimerParams.runMode = ITimer_RunMode_CONTINUOUS;

  aTimerParams.startMode = ITimer_StartMode_USER;

  aTimerParams.intNum = -1;

  aTimerHandle = Timer_create(0, NULL、&timerParams, &aErrBlk)

 

Question:

1: It seems fail because they found the above Timer_create() return NULL.

     Could you tell us how to create/modify the related files such as xx.c and xx.cfg to use DMTIMER2?

2: They try to change ID=0 to 1 to use DMTIMER3.

     But after that, they found exception.

     Could you tell us how to create/modify the related files such as xx.c and xx.cfg to use DMTIMER3?

 

They also checked the related below link.

But they don't find any answer to use DMTIMER of AM335x.

https://e2e.ti.com/support/legacy_forums/embedded/tirtos/f/355/t/303860

 http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/sysbios/6_46_04_53/exports/bios_6_46_04_53/docs/cdoc/ti/sysbios/family/shared/vayu/TimerSupport.html#avail.Mask

https://e2e.ti.com/support/arm/sitara_arm/f/791/t/720202

 

We would also appreciate if you tell us AM335x-DMTIMER sample code of TI-RTOS.

 

Best regards,