TI中文支持网
TI专业的中文技术问题搜集分享网站

F280049 高精度PWM给CMPA赋值时警告。

EPwm4Regs.CMPA.all           = (Uint32)(tIlBuckLPFVar1.LpfOutPut*256+0.5);

#3195-D (Performance) EABI double precision is 64-bits as opposed to 32-bits for COFF. Consider changing doubles to floats for improved performance in FPU32-mode.

这句有啥问题。

Susan Yang:

这应该和编译器的版本有关。有两种解决方法

一种是使用构建选项–advice:performance=none禁用所有性能说明

另一种方法是使用构建选项–diag_suppress=3195禁用此特定的性能说明 。

这将会在下一版编译器中进行修正

赞(0)
未经允许不得转载:TI中文支持网 » F280049 高精度PWM给CMPA赋值时警告。
分享到: 更多 (0)