SPRUJH1 August 2025 F29H850TU
Compiler predefine macros are provided to configure the software. A list of options is shown in Table 2-5. To modify, add, or remove macros:
right click on project → Properties → Build → C2000 Compiler → Predefined Symbols
Defined in src_board/user_mtr1.h and src_board/user_common.h files.
Locate the definition for USER_MOTOR1. Confirm the definition matches the motor being tested. Only the Teknic_M2310PLN04K was tested for this release.
#define USER_MOTOR1 Teknic_M2310PLN04K| Predefine | Description | Required or Optional | Default |
|---|---|---|---|
| MOTOR1_ENC | Incremental encoder | Required | Enabled |
| ADC_EXT_REF | ADC uses the external reference. If this predefine is disabled, the SysCfg file must be modified to use the internal reference. | Recommended | Enabled |
| MOTOR1_FWC | Field weakening control. Usually enabled along with MTPA. | Optional | Disabled |
| MOTOR1_MTPA | Maximum torque per amphere. Usually enabled along with FWC. | Optional | Disabled |
| DATALOG_EN | Data export through datalog buffers | Optional | Disabled |
| DAC128S_ENABLE | Data export through the DAC EVM | Optional | Disabled |
| DAC_ON_CHIP_ENABLE | Data export through the on-chip DAC | Optional | Disabled |