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'

43 views (last 30 days)
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 Comments
David
David on 29 Jul 2015
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

Sign in to comment.

Answers (2)

el-musleh
el-musleh on 31 Oct 2019
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 on 21 Mar 2024 at 11:31
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.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!