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.

MSPM0G3507: M0 SDK sysconfig generates output that does not compile

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

When using timer capture mode with two pins, it generates non-compiling code in syscfg/ti_msp_dl_config.c:

DL_TimerG_setCaptureCompareCtl(FAN_3_4_TACH_INST,
(DL_TIMER_CC_MODE_CAPTURE | DL_TIMER_CC_ZCOND_TRIG_RISE | DL_TIMER_CC_ACOND_TIMCLK | DL_TIMER_CC_CCOND_TRIG_RISE),
DL_TIMER_CC_1_INDEX);

The DL_TimerG_setCaptureCompareCtl function is defined as:

#define DL_TimerG_setCaptureCompareCtl             DL_Timer_setCaptureCompareCtl

which refers to:

void DL_Timer_setCaptureCompareCtl(GPTIMER_Regs *gptimer, uint32_t ccMode,
uint32_t ccCondMask, DL_TIMER_CC_INDEX ccIndex);

This function has 4 arguments, but sysconfig tool generates a function call with 3 arguments only (merging ccMode and ccCondMask)

This is very annoying as in CCS studio the code gets auto generated everytime and therefor it never compiles rendering the whole CCS Studio unusable.

  • Hi,

    Sorry for the inconvenience.

    We have noticed this issue. Please wait for the syscfg update to resolve this issue.

    At the same time, you can add this configuration in your user code region.

    Thank you for your submission.

    Helic