Hi, I am having trouble configuring the PWM with a DSPLink application on the OMAP-L137. My configuration works as expected when it is part of a program that I load directly onto the DSP through Code Composer, however when it is part of a DSPLink application it fails.
When I step through the application in the debugger, writes to the eHRPWM configuration registers do not work - the values of the registers are zero both before and after the writes. Eg with the code:
#define EHRPWM0_TBCTL (*((volatile Uint16*)0x01F00000u))
....
EHRPWM0_TBCTL = 0x1FB2;
The value at memory address 0x01F00000 does not change, it is zero before and after the write. Attempts to set the value directly through Code Composer also fail.
Things I have tried/checked:
- The eHRPWM module is powered up (using the PSP drivers; Psc_ModuleClkCtrl(Psc_DevId_1, CSL_PSC_EHRPWM0_1_2, TRUE); ).
- Kick registers are unlocked - there is no problem writing the the CFGCHIP1 register.
- I have looked at the address ranges covered by the Memory Protection Unit - the eHRPWM configuration is not covered.
Any ideas what might be causing this issue?