Error(s) encountered while building "rtwshared"
153 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello. i have a problem with code generation in simulink. The code doesn't build and I get the following error everytime i try to build it:
### Starting build procedure for: testdsp
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Users\Mohsen\Desktop\mmm\testdsp_ert_rtw
### Invoking Target Language Compiler on testdsp.rtw
### Using System Target File: C:\Program Files\MATLAB\R2021b\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 testdsp_types.h
### Writing source file testdsp.c
.
### Writing header file testdsp_private.h
### Writing header file testdsp.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\xnrm2_blBNbZ7b.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\xnrm2_blBNbZ7b.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_hypotd_snf.c
.
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_hypotd_snf.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\qrFactor_X1uWt5E6.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\qrFactor_X1uWt5E6.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\trisolve_9AdprvLJ.c
.
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\trisolve_9AdprvLJ.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_urand_Upu32_Yd_f_pw_snf.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_urand_Upu32_Yd_f_pw_snf.h
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_nrand_Upu32_Yd_f_pw_snf.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rt_nrand_Upu32_Yd_f_pw_snf.h
.
### Writing source file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\look1_pbinlxpw.c
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\look1_pbinlxpw.h
### Writing header file rtwtypes.h
### Writing header file zero_crossing_types.h
### Writing header file rt_zcfcn.h
.
### Writing source file rt_zcfcn.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### Writing source file stateTransitionFcn.c
### Writing header file stateTransitionFcn_private.h
### Writing header file C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\stateTransitionFcn.h
### Writing source file testdsp_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Saving binary information cache.
Code Composer Studio Project
### Creating CCS Project at : C:\Users\Mohsen\Desktop\mmm\testdsp_ert_rtw\CCS_Project
### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments Code Composer Studio (C2000)
### Creating 'C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils\rtwshared.mk' ...
### Building 'rtwshared': "C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all
...
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>cd .
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>if "all" == "" ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all ) else ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f rtwshared.mk all )
"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/bin/cl2000" --abi=coffabi --compile_only --preproc_dependency="look1_pbinlxpw.dep" --preproc_with_compile --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/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DINTEGER_CODE=0 -DNRT -DUSE_RTMODEL -DERT -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DMW_PIL_SCIFIFOLEN=16 -DMW_F2833X -DSTACK_SIZE=512 -IC:/Users/Mohsen/Desktop/mmm -IC:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/inc -IC:/PROGRA~1/MATLAB/R2021b/toolbox/shared/can/src/scanutil -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/inc -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~1/MATLAB/R2021b/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="look1_pbinlxpw.obj" "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/look1_pbinlxpw.c"
"C:/PROGRA~3/MATLAB/SUPPOR~1/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/bin/cl2000" --abi=coffabi --compile_only --preproc_dependency="qrFactor_X1uWt5E6.dep" --preproc_with_compile --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/3P778C~1.INS/TIC28X~1.INS/TI-CGT~1.LTS/include" -v28 --float_support=fpu32 -ml -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DINTEGER_CODE=0 -DNRT -DUSE_RTMODEL -DERT -DDAEMON_MODE=1 -DXCP_CUSTOM_PLATFORM -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DMW_PIL_SCIFIFOLEN=16 -DMW_F2833X -DSTACK_SIZE=512 -IC:/Users/Mohsen/Desktop/mmm -IC:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils -IC:/PROGRA~1/MATLAB/R2021b/extern/include -IC:/PROGRA~1/MATLAB/R2021b/simulink/include -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2021b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/facts/facts -IC:/PROGRA~1/MATLAB/R2021b/toolbox/physmod/powersys/DR/DR -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/inc -IC:/PROGRA~1/MATLAB/R2021b/toolbox/shared/can/src/scanutil -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/src -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/shared/SUPPOR~1/tic2000/inc -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/toolbox/target/shared/EXTERN~1/include -IC:/PROGRA~1/MATLAB/R2021b/toolbox/rtw/targets/common/can/blocks/tlc_c --output_file="qrFactor_X1uWt5E6.obj" "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c"
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 35: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 39: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 40: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 41: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 42: error: floating constant is out of range
"C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c", line 50: error: floating constant is out of range
6 errors detected in the compilation of "C:/Users/Mohsen/Desktop/mmm/slprj/ert/_sharedutils/qrFactor_X1uWt5E6.c".
>> Compilation failure
gmake: *** [qrFactor_X1uWt5E6.obj] Error 1
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\Mohsen\Desktop\mmm\slprj\ert\_sharedutils>exit /B 1
### Creating HTML report file index.html
### Build procedure for testdsp aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
===================================================================
testdsp Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 48.352s
Error(s) encountered while building "rtwshared"
Can anyone solve this porblem?? Thanks
4 Commenti
Walter Roberson
il 18 Nov 2024 alle 5:53
error: floating constant is out of range
It sounds to me as if some code attempts to initialize with a double precision constant, into an object that is marked as single precision, and the constant initializer is outside of the permitted range of single precision.
Risposte (1)
Mohsen Abdolahi
il 15 Ago 2023
Modificato: Walter Roberson
il 15 Ago 2023
2 Commenti
Srikar
il 22 Ott 2024
The link doesn't seem to work. I there a way to find out or debug the root cause for this issue?
Aditya Padmanabha
il 18 Nov 2024 alle 4:06
Please share the model, the MATLAB release details and full diganostics log for further investigation.
Thanks,
Aditya
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!