查看: 274|回复: 0|关注: 0

[未答复] Simulink仿真C2000 F28069M官网样例代码报错

[复制链接]

新手

8 麦片

财富积分


050


9

主题

50

帖子

0

最佳答案
发表于 2020-11-19 23:05:31 | 显示全部楼层 |阅读模式
Dear all
          刚测试下LaunchPad f28069M所用模型是官网的c28069pmsmfocdual.slx,出现貌似重定义的错误,请大家帮忙分析分析。
          因为字数受限,贴部分错误信息。
******i"C:/ProgramData/MATLAB/SUPPOR~1/R2019b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/include" --define="EXTMODE_DISABLEPRINTF"  -v28 -ml --float_support=fpu32 -DF28069M -DBOOT_FROM_FLASH=1 -DMODEL=c28069pmsmfocdual_ert_2th -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=1 -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DMW_PIL_SCIFIFOLEN=4 -DSTACK_SIZE=1024 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DF28069M -DBOOT_FROM_FLASH=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=1  -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=0 -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DMW_PIL_SCIFIFOLEN=4 -DSTACK_SIZE=1024 -DRT -DF28069M -DBOOT_FROM_FLASH=1 -DMODEL=c28069pmsmfocdual_ert_2th -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IE:/MATLAB~1/MATLAB~1/MICROC~1/Ipm_HFI/TI/WEB_EX~1/C28069~2 -IE:/MATLAB~1/MATLAB~1/MICROC~1/Ipm_HFI/TI/WEB_EX~1/C28069~2/c28069pmsmfocdual_ert_2th_ert_rtw -IE:/MATLAB~1/MATLAB~2/extern/include -IE:/MATLAB~1/MATLAB~2/simulink/include -IE:/MATLAB~1/MATLAB~2/rtw/c/src -IE:/MATLAB~1/MATLAB~2/rtw/c/src/ext_mode/common -IE:/MATLAB~1/MATLAB~2/rtw/c/ert -IE:/MATLAB~1/MATLAB~2/toolbox/coder/rtiostream/src -IE:/MATLAB~1/MATLAB~2/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/tic2000/src -IC:/ProgramData/MATLAB/SUPPOR~1/R2019b/toolbox/target/SUPPOR~1/tic2000/inc -IE:/MATLAB~1/MATLAB~2/toolbox/rtw/targets/common/can/blocks/tlc_c -IF:/TI_SOF~1/CONTRO~1/Soft/DEVICE~1/f2806x/v151/F2806X~1/include -IF:/TI_SOF~1/CONTRO~1/Soft/DEVICE~1/f2806x/v151/F2806X~4/include -IE:/MATLAB~1/MATLAB~2/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SUPPOR~1/R2019b/toolbox/target/shared/EXTERN~1/include --output_file="ert_main.obj" "E:/MATLAB~1/MATLAB~1/MICROC~1/Ipm_HFI/TI/WEB_EX~1/C28069~2/c28069pmsmfocdual_ert_2th_ert_rtw/ert_main.c"
"E:/MATLAB_2019b/MatLab PDF/Microchip_Example/Ipm_HFI/TI/Web_Example/c28069pmsmfocdual_2th/c28069pmsmfocdual_ert_2th_ert_rtw/ert_main.c", line 95: warning: variable "modelBaseRate" was declared but never referenced
"E:/MATLAB_2019b/MatLab PDF/Microchip_Example/Ipm_HFI/TI/Web_Example/c28069pmsmfocdual_2th/c28069pmsmfocdual_ert_2th_ert_rtw/ert_main.c", line 96: warning: variable "systemClock" was declared but never referenced
"### Creating standalone executable "../c28069pmsmfocdual_ert_2th.out" ..."
"C:/ProgramData/MATLAB/SUPPOR~1/R2019b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/cl2000" -z -IC:/ProgramData/MATLAB/SUPPOR~1/R2019b/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/lib --stack_size=1024 --warn_sections --heap_size=4096 --reread_libs --rom_model --priority -m"c28069pmsmfocdual_ert_2th.map" --define F28069M --define BOOT_FROM_FLASH=1 --define BOOT_USING_BL=0 --output_file=../c28069pmsmfocdual_ert_2th.out MW_c28xx_board.obj DSP28xx_SciUtil.obj MW_c28xx_adc.obj MW_c28xx_csl.obj MW_c28xx_pwm.obj c28069pmsmfocdual_ert_2th.obj c28069pmsmfocdual_ert_2th_data.obj c2806xBoard_Realtime_Support.obj F2806x_CpuTimers.obj F2806x_DefaultIsr.obj F2806x_GlobalVariableDefs.obj F2806x_PieCtrl.obj F2806x_PieVect.obj F2806x_SysCtrl.obj F2806x_usDelay.obj F2806x_CodeStartBranch.obj F2806x_Dma.obj F2806x_Adc.obj blapp_support.obj profiler_Support.obj c2806xScheduler_ADCINT1.obj ext_svr_c2000.obj updown_c2000.obj ext_work_c2000.obj rtiostream_utils_c2000.obj rtiostream_interface_c2000.obj rtiostream_serial_c28x_ext.obj datamodify.obj daemon_checksum.obj ert_main.obj C:/ProgramData/MATLAB/SupportPackages/R2019b/3P.instrset/tic2000codegentools.instrset/ti-cgt-c2000_18.12.2.LTS/lib/rts2800_fpu32.lib C:/ProgramData/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/tic2000/rtlib/IQmath_fpu32.lib C:/ProgramData/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/tic2000/src/c2806xPeripherals.cmd C:/ProgramData/MATLAB/SupportPackages/R2019b/toolbox/target/supportpackages/tic2000/src/c28069M.cmd  
<Linking>
error: symbol "_SCIRXINTA_isr" redefined: first defined in "MW_c28xx_csl.obj";
   redefined in "rtiostream_serial_c28x_ext.obj"
error: errors encountered during linking; "../c28069pmsmfocdual_ert_2th.out"
   not built

>> Compilation failure
gmake: *** [../c28069pmsmfocdual_ert_2th.out] Error 1

E:\MATLAB_2019b\MatLab PDF\Microchip_Example\Ipm_HFI\TI\Web_Example\c28069pmsmfocdual_2th\c28069pmsmfocdual_ert_2th_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2

E:\MATLAB_2019b\MatLab PDF\Microchip_Example\Ipm_HFI\TI\Web_Example\c28069pmsmfocdual_2th\c28069pmsmfocdual_ert_2th_ert_rtw>exit 1

Error(s) encountered while building "c28069pmsmfocdual_ert_2th":
### Failed to generate all binary outputs.********************************************************************************************************************
回复主题 已获打赏: 0 积分

举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐上一条 /5 下一条

快速回复 返回顶部 返回列表