I have successfully set up PWM on timer A0, and run it as a stand alone piece of code. However, when I set up A0 for PWM, timer A1 as a periodic timer with interrupt, and make the call to BIOS_start(), the A0 PWM gets changed. The timer 1 periodic timer continues to function correctly. I also notice the interrupt vector for timer A0 (53) is populated with a periodic function, but I have nothing like this defined in the configuration.
BIOS grabs A0 for the Clock tick timer.
You can get around this by explicitly configuring BIOS to use a different timer:
var Clock = xdc.useModule('ti.sysbios.knl.Clock');
Clock.timerId = 2; /* stay away from A0 and A1 */
Alan
I'm still getting code placed at interrupt 53. This is a timer A0 interrupt. The interrupt is not executed, but it leaves me suspicious that something is messing with timer A0. Again, if I don't call BIOSstart() the PWM on timer A03 works just fine.
I had left Enable Clock Management unchecked when I tried the code. It's now working. Thank you.