This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HALCoGen 04.05.02 and RM46 - possible issue in epwmXGetConfigValue

Other Parts Discussed in Thread: HALCOGEN

The code generated for the following two functions seems to use the wrong register in file etpwm.c:

void etpwm2GetConfigValue(etpwm_config_reg_t *config_reg, config_value_type_t type)

config_reg->CONFIG_TBCTL = etpwmREG1->TBCTL;
config_reg->CONFIG_TBPHS = etpwmREG2->TBPHS;

void etpwm5GetConfigValue(etpwm_config_reg_t *config_reg, config_value_type_t type)

config_reg->CONFIG_TBCTL = etpwmREG1->TBCTL;
config_reg->CONFIG_TBPHS = etpwmREG5->TBPHS;

The functions for PWM modules 1, 3, 4 6 and 7 don't have this.