필터 지우기
필터 지우기

Why am I getting the error: Simulink Coder Fatal: Can not select ERT option 'Suppress error status in real-time model data structure' when selecting ERT option 'External mode'

조회 수: 34 (최근 30일)
I am trying to run the generated software interface model from the HDL workflow advisor on a Zedboard. When I attempt to run in external mode I get the following error copied from the Diagnostic Viewer:
### Generating code into build folder: E:\Projects\SPIcontroller\work\gm_SPI_controller_interface_ert_rtw
### Invoking Target Language Compiler on gm_SPI_controller_interface.rtw
### Using System Target File: C:\Program Files\MATLAB\R2015a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
.
**** - TLC Function Traceback ****
C:\Program Files\MATLAB\R2015a\rtw\c\tlc\lib\utillib.tlc:LibReportFatalError(1179)
C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\setuplib.tlc:SLibSetupLayoutOptions(792)
C:\Program Files\MATLAB\R2015a\rtw\c\tlc\mw\commonsetup.tlc(101)
**** - END TLC Function Traceback ****
### Build procedure for model: 'gm_SPI_controller_interface' aborted due to an error.
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\lib\utillib.tlc Line: 1179 Column: 8
%exit directive: Simulink Coder Fatal: Can not select ERT option 'Suppress error status in real-time model data structure' when selecting ERT option 'External mode'
  댓글 수: 3
David
David 2015년 7월 29일
I'm having the same problem but what worked for you simply generates a new error for me... any ideas?
Error: File: C:\Program Files\MATLAB\R2015a\rtw\c\tlc\lib\utillib.tlc Line: 1179 Column: 8
%exit directive: Simulink Coder Fatal: Start time must be 0.0 for the chosen target: 1.0.
Component: Simulink | Category: Model error
Jon Fielder
Jon Fielder 2024년 3월 21일
In Configuration Parameters, in 'Solver' the 'Start time' must be '0.0'.

댓글을 달려면 로그인하십시오.

답변 (2개)

el-musleh
el-musleh 2019년 10월 31일
If someone got the same Simulink Coder Fetal, and particularly on utillib.tlc, which leads to no fully build you code.
"Simulink Coder Fatal: Start time must be 0.0 for the chosen target: 1.0."
In 'Configuration Parameters', in 'Solver' the 'start time' is 1 or something else it must be '0.0'. and recommended to change the other settings, make the Solver auto and fixed-step size to '0.01' or '0.1'.
"Simulink Coder Fatal: Custom is attempting to create file main, however, this file was already created by Simulink."
You just need to change the Simulink file name probably you named it like main.slx which leads to creating this Error. Just close the file, change the name to anything else and compile and build it again, it will work. For some MCU you need to Update the path, in 'Configuration Parameters', on MCU options under 'Code Generation' click 'update installed path'.

Jon Fielder
Jon Fielder 2024년 3월 21일
Configuration parameter SuppressErrorStatus set to ''on'' is not supported by some External mode transports layers. To avoid this error, you can set SuppressErrorStatus to “off”.
Alternatively, set Hardware Implementation > Target hardware resources > External mode > Communication interface to “XCP on TCP/IP”. XCP-based External mode transport layers allow SuppressErrorStatus to be set to “on” from release R2023a.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by