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.

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.

这句有啥问题。

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

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

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

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