Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
Hello,
I have a question about SYS/BIOS timers.
I am using TMS320F28075 and SYS/BIOS 6.73.
I know that TMS320F28075 has 3 cpu timers(0~2). And SYS/BIOS uses cpu timer 0 basically.
I want to use cpu timer 0 for another function.
So I changed SYS/BIOS timer from 0 to 2 as below.
============================================
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
Clock.timerId = 2;
============================================
And I defined timer 0 as below.
========================================================================================
var ti_sysbios_hal_Timer0Params = new ti_sysbios_hal_Timer.Params();
ti_sysbios_hal_Timer0Params.instance.name = "ti_sysbios_hal_Timer0";
ti_sysbios_hal_Timer0Params.period = 260;
Program.global.ti_sysbios_hal_Timer0 = ti_sysbios_hal_Timer.create(null, "&cpu_timer0_isr", ti_sysbios_hal_Timer0Params);
========================================================================================
But SYS/BIOS doesn't works well.
Task and timer are not executed. And I think hwiStack is overflowed.
I checked hwiStackpeak via RTOS Object View(ROV). hwiStackpeak and hwiStackSize are same
I increased the stack size. But It's same.
This is summary for my question.
1. How do i use cpu timer 0 for another function?? How do i change SYS/BIOS timer?
2. I defined cpu timer handler(cpu_timer0_isr). How do i use this handler? Do i have to define this handler on my .c file??
Please advice.
Thank you for your support.