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.

[参考译文] TMS320F28027:未解析的符号仍然存在

Guru**** 2794665 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1060817/tms320f28027-unresolved-symbols-remain

器件型号:TMS320F28027

大家好、

我想问您在使用 SFO ()函数时的编译错误。

这是源代码。

#include    "SFO_V6.h"

#define     GLOBAL_Q 22 // range = +-512
#include    "C:\ti\c2000\C2000Ware_3_04_00_00\libraries\math\IQmath\c28\include\IQmathLib.h"

int         MEP_ScaleFactor;
volatile struct EPWM_REGS *ePWM[PWM_CH] =
{ &EPwm1Regs, &EPwm1Regs, &EPwm2Regs, &EPwm3Regs, &EPwm4Regs};

Void main()
{
     status = SFO();  // Do the function once whole the codes.
                      
}

我向链接器添加了2个库、 SFO_TI_build_V6b.lib 和 IQmath.lib。

最后、我遇到了这样的错误。

undefined first referenced
  symbol       in file     
 --------- ----------------
SFO()     ./src/main.obj  
 
error #10234-D: unresolved symbols remain

可以建议我避免此错误吗?

谢谢、此致、
Junpei Kishi

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    这意味着您的 SFO 库未链接。 查看为此器件提供的 SFO 示例的项目属性。