Failed to generate all binary outputs in c2000 F28379D PIL hardware

2 ビュー (過去 30 日間)
shan wijesinghe
shan wijesinghe 2020 年 12 月 10 日
コメント済み: 瑜 李 2021 年 10 月 8 日
Hi, I'm trying to build PIL hardware on my c2000 F28379D but encounterd following error.
### Starting build procedure for: Subsystem ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw
Connectivity configuration "ALTERASOCSIM" threw an error. Consequently, this connectivity configuration will be skipped. To avoid this warning, fix the following error: Undefined function 'i_isConfigSetCompatible' for input arguments of type 'coder.connectivity.SimulinkConfig'.
Component:Simulink | Category:Model warning
Connectivity configuration "XILINXZYNQSIM" threw an error. Consequently, this connectivity configuration will be skipped. To avoid this warning, fix the following error: Undefined function 'i_isConfigSetCompatible' for input arguments of type 'coder.connectivity.SimulinkConfig'.
Component:Simulink | Category:Model warning
The model Subsystem is configured to simulate flush-to-zero (FTZ) behavior, but is using normal mode simulation. To observe FTZ behavior, simulate the model using an accelerated mode.
Component:Simulink | Category:Model
Parameter precision loss occurred for 'Gain' of 'Subsystem/Subsystem/Kd2'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters > Diagnostics > Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'. [3 similar]
Component:Simulink | Category:Block warning
Suppress
### Invoking Target Language Compiler on Subsystem.rtw ### Using System Target File: F:\Matlab 2020a\New folder\rtw\c\ert\ert.tlc ### Loading TLC function libraries ...... ### Generating TLC interface API for custom data ### Initial pass through model to cache user defined code . ### Caching model source code ................................. ### Writing header file Subsystem_types.h . ### Writing header file Subsystem.h ### Writing header file rtwtypes.h ### Writing source file Subsystem.c ### Writing header file Subsystem_private.h ### Writing source file Subsystem_data.c . ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Texas Instruments Code Composer Studio (C2000) ### Creating 'C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw\Subsystem.mk' ... ### Building 'Subsystem': "F:\Matlab 2020a\New folder\bin\win64\gmake" MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -B -f Subsystem.mk buildobj ### Build procedure for Subsystem aborted due to an error.
C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>call "\\DESKTOP-BC4NO2T\F$\Matlab 2020a\New folder\bin\win64\checkMATLABRootForDriveMap.exe" "\\DESKTOP-BC4NO2T\F$\Matlab 2020a\New folder" 1>mlEnv.txt C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>for /F %a in (mlEnv.txt) do set "%a"\n C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>set "MATLAB_ROOT=J:"\n C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>set "ALT_MATLAB_ROOT=J:"\n C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>set "MATLAB_BIN=J:\bin"\n C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>set "ALT_MATLAB_BIN=J:\bin"\n C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>cd . C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>if "buildobj" == "" ("F:\Matlab 2020a\New folder\bin\win64\gmake" MATLAB_ROOT=J: ALT_MATLAB_ROOT=J: MATLAB_BIN=J:\bin ALT_MATLAB_BIN=J:\bin -B -f Subsystem.mk all ) else ("F:\Matlab 2020a\New folder\bin\win64\gmake" MATLAB_ROOT=J: ALT_MATLAB_ROOT=J: MATLAB_BIN=J:\bin ALT_MATLAB_BIN=J:\bin -B -f Subsystem.mk buildobj ) "C:/PROGRA~3/MATLAB/SUPPOR~1/R2020a/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/bin/cl2000" --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/PROGRA~3/MATLAB/SUPPOR~1/R2020a/3P778C~1.INS/TIC200~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -DF28379D -DCPU1 -DBOOT_FROM_FLASH=1 --tmu_support=tmu0 --fp_mode=relaxed -DMODEL=Subsystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -DSTACK_SIZE=1024 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DF28379D -DCPU1 -DBOOT_FROM_FLASH=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DMW_PIL_SCIFIFOLEN=16 -DF2837X_REG_FORMAT -DMW_F2837XD -DSTACK_SIZE=1024 -DRT -DF28379D -DCPU1 -DBOOT_FROM_FLASH=1 -DMODEL=Subsystem -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -IC:/Users/SHANWI~1/Desktop/PIL_TE~1 -IC:/Users/SHANWI~1/Desktop/PIL_TE~1/Subsystem_ert_rtw -IJ:/extern/include -IJ:/simulink/include -IJ:/rtw/c/src -IJ:/rtw/c/src/ext_mode/common -IJ:/rtw/c/ert -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2020a/toolbox/target/SUPPOR~1/tic2000/inc -IJ:/toolbox/shared/can/src/scanutil -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2020a/toolbox/target/SUPPOR~1/tic2000/src -I/F2837xD_common/include -I/F2837xD_headers/include -I/F2837xD_common -IJ:/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2020a/toolbox/target/shared/EXTERN~1/include --output_file="MW_c28xx_board.obj" "C:/Users/SHANWI~1/Desktop/PIL_TE~1/Subsystem_ert_rtw/MW_c28xx_board.c" "C:/Users/Shan Wijesinghe/Desktop/PIL_test_model2/Subsystem_ert_rtw/MW_c28xx_board.c", line 2: fatal error: cannot open source file "F2837xD_device.h" 1 catastrophic error detected in the compilation of "C:/Users/Shan Wijesinghe/Desktop/PIL_test_model2/Subsystem_ert_rtw/MW_c28xx_board.c". Compilation terminated. >> Compilation failure gmake: *** [MW_c28xx_board.obj] Error 1 C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Shan Wijesinghe\Desktop\PIL_test_model2\Subsystem_ert_rtw>exit 1 Error(s) encountered while building "Subsystem": ### Failed to generate all binary outputs.
Component:Simulink | Category:Build error
??? Subsystem build failed
  3 件のコメント
瑜 李
瑜 李 2021 年 10 月 8 日
The model mcb_open_loop_control_f28379d is configured to simulate flush-to-zero (FTZ) behavior, but is using normal mode simulation. To observe FTZ behavior, simulate the model using an accelerated mode.
瑜 李
瑜 李 2021 年 10 月 8 日
?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCallable Function Integration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by