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.

代码自动生成最后生成.out文件的时候在link时出现了 undefined preprocessor symbol 'BOOT_FROM_FLASH'



<Linking>

"C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",

line 16: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH' "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",

line 24: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH' "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",

line 32: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH'

undefined first referenced symbol

in file --------- ---------------- _

main C:/ProgramData/MATLAB/SupportPackages/R2021a/3P.instrset/tic2000codegentools.instrset/ti-cgt-c2000_20.2.5.LTS/lib/rts2800_fpu32.lib<args_main.c.obj> _rt_OneStep c2833xSchedulerTimer0.obj error:

unresolved symbols remain error: errors encountered during linking;

"../LED.out" not built

simulink出现了 无法识别的字段名称 "executionProfile"。
> 位置:Simulink/SimulationOutput/get
位置: Simulink/SimulationOutput/subsref
位置: simulinkcoder.internal.Report.getCodeData
位置: simulinkcoder.internal.CodeView/sendData
位置: simulinkcoder.internal.CodeView/callback
位置: simulinkcoder.internal.CodeView/init>@(varargin)obj.callback(varargin{:})
位置: simulinkcoder.internal.Report.actionDispatcher>loc_start
位置: simulinkcoder.internal.Report/actionDispatcher
位置: simulinkcoder.internal.Report.init>@(msg)obj.actionDispatcher(msg)
位置: message.internal.executeCallback 

  • 能否请您详细说明下问题?您现在使用的是matlab以及TI例程?

  • matlab是2021a的  ccs是10.3的  模块是自己的

    C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/shared/supportpackages/tic2000/rtlib/IQmath_fpu32.lib C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c2833xPeripherals.cmd C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd
    <Linking>
    "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",
    line 16: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH' "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",
    line 24: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH' "C:/ProgramData/MATLAB/SupportPackages/R2021a/toolbox/target/supportpackages/tic2000/src/c28335.cmd",
    line 32: warning: undefined preprocessor symbol 'BOOT_FROM_FLASH'
    undefined first referenced symbol
    in file --------- ----------------
    _main D:/ti-cgt-c2000_20.2.1.LTS/lib/rts2800_fpu32.lib<args_main.c.obj> _rt_OneStep c2833xSchedulerTimer0.obj error: unresolved symbols remain error: errors encountered during
    linking;
    "../LED.out" not built >> Compilation failure gmake: *** [../LED.out] Error 1
    C:\Users\dell\Desktop\dsptest\LED_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
    C:\Users\dell\Desktop\dsptest\LED_ert_rtw>exit /B 1
    ### Creating HTML report file LED_codegen_rpt.htm
    l ### Build procedure for LED aborted due to an error.
  • D:/ti-cgt-c2000_20.12.0.STS/lib/rts2800_fpu32.lib<args_main.c.obj> _rt_OneStep c2833xSchedulerTimer0.obj error: unresolved symbols remain error: errors encountered during linking; "../LED.out" not built

    是这个的问题吗 

  • 看起来像是没有预定义BOOT_FROM_FLASH

  • 我感觉是这个问题ti-cgt-c2000_20.12.0.STS  但是我换了好几个还是提示BOOT_FROM_FLASH'

  • 抱歉,对matlab不太熟悉,但是根据错误提示的话,是您没有预定义BOOT_FROM_FLASH