Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
Hi All
I have a problem with the clock module in the sys bios. I'm using sys bios_6_76_00_08 and CCS studio Version: 9.0.0.00018.
I need Timer 0 and 1 in my applikation. That for I configured the clock module in the cfg file like this:
Clock.tickSource = Clock.TickSource_TIMER;
Clock.tickPeriod = 100;
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
Clock.timerId = 2;
Then I configured two instances
var clock0Params = new Clock.Params();
clock0Params.instance.name = "ADC";
clock0Params.period = 4;
clock0Params.startFlag = true;
Program.global.ADC = Clock.create("&vRunInternalAdcAndFilterInputs", 1, clock0Params);
var clock1Params = new Clock.Params();
var clock2Params = new Clock.Params();
clock2Params.instance.name = "MAIN";
clock2Params.period = 50;
clock2Params.startFlag = true;
Program.global.MAIN = Clock.create("&vSoftWatchDogHandler", 1, clock2Params);
I traced the vRunInternalAdcAndFilterInputs on the hardware with a scope.
It seams to work. But always after a certain time (1..3hours) the clock module stops and starts again.
See the atached picture.
I need help. I tryed several things but nothing helps. Does somebody have an idee what is wrong with my configuration?
Thank You very much!
Herbert
