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.

MSP432E401Y: 使用TI drivers,在debug时程序出现了一个非常离谱的错误!

Part Number: MSP432E401Y


在我使用PWM生成器部分时,在启用第三个PWM_OUT引脚时,出现了这样惊人的一幕:

*pwmGenPeriodPtr的值为0,然而,在if(*pwmGenPeriodPtr)的语句中,程序居然毫不犹豫地进去了这部分!

此处的是TI drivers的PWMMSP432E4.c的initHw()函数