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
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,