Other Parts Discussed in Thread: TMS320F28335, SYSBIOS
I’m having a bit of trouble using the hardware timers with the Sys/Bios API calls. I’m running Sys/Bios Version 6.33.4.39 on a TMS320F28335. I’m using hardware timer 0 and 2 (Sys/Bios is using timer 1). I’ve configured the timers in the app.cfg file. Both the timers are setup exactly the same way and get use the same way (see below). For the most part everything works great, except that on occasion, timer 2 will not work the first time I set it. This happens about once every 10 times when I reset the system. This only happens the first time I set the timer and only to timer 2. After the first failure I can set it thousands of times without issue.
Does anyone have any ideas as to what the issue could be?
Ed
key = Hwi_disable();
Timer_setPeriodMicroSecs(timerGroup1,uSec);
Timer_start(timerGroup1);
Hwi_restore(key);