I am having a hard time initializing my fault handling on the TM4 processor. I have 8 outputs that have a fault pin (active low) when the circuit goes into over current conditions. These 8 fault pins are located in M0FAULT0-3 and M1FAULT0-3. I would like for the fault pins to register a fault and latch the pwm channel low. I am currently trying to get it working just on one channel and when I run the code, the Fault Configure function seems to be latching my output low immediately disabling the output completely before I ever turn it on. I am using the following configuration commands in my initialization scheme.
ROM_PWMGenConfigure (PWM0_BASE, PWM_GEN_0, PWM_GEN_MODE_UP_DOWN | PWM_GEN_MODE_NO_SYNC | PWM_GEN_MODE_DBG_STOP | PWM_GEN_MODE_FAULT_LATCHED | PWM_GEN_MODE_FAULT_NO_MINPER);
ROM_PWMGenFaultConfigure (PWM0_BASE, PWM_GEN_0, 0, PWM_FAULT0_SENSE_LOW);
ROM_PWMGenFaultTriggerSet (PWM0_BASE, PWM_GEN_0, PWM_FAULT_GROUP_0, PWM_FAULT_FAULT0);
ROM_PWMOutputFaultLevel (PWM0_BASE, PWM_OUT_0_BIT, FALSE);
ROM_PWMOutputFault (PWM0_BASE, PWM_OUT_0_BIT, TRUE);