Other Parts Discussed in Thread: TMS320F28377S,
My customer asks the following question..
"I am working on porting some working application code from the TMS320F28377S to the TMS320F28377D. I am now getting an error returned from the SFO() routine to calibrate the HRPWM. As some of the EPWM modules are being used by CPU2, I suspect the SFO function cannot access them.
The HRPWM section of the reference manual contains the following variables used the SFO() routine.
int MEP_ScaleFactor = 0; //scale factor value
volatile struct EPWM_REGS *ePWM[] = {0, &EPwm1Regs, &EPwm2Regs, &EPwm3Regs, &EPwm4Regs};
It looks like the ePWM array might tell the routine which EPWM modules to use, but I cannot find any documentation on how to configure for a specific application. In our case, we are using EPWM1, 2, 4, 5, 7, and 8 on CPU2 and EPWM3 on CPU1. Could this be the cause of the SFO() error, or is it likely another issue? "
Thanks, Merril