MATLAB Answers

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'

38 views (last 30 days)
Dave Walter
Dave Walter on 27 Mar 2015
Answered: mohammadmusleh3 on 31 Oct 2019
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'

  2 Comments

Dave Walter
Dave Walter on 30 Mar 2015
Ok, I fixed it. I had to uncheck the option in Configuration Parameters-> Code Generation -> Interface for "Suppress error status in real-time model data structure."
The only thing that is confusing me is if this should have been checked when the HDL Workflow Advisor generated the Software Interface model, or if by my own hand I created an error in the "data structure."
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 (1)

mohammadmusleh3
mohammadmusleh3 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'.

  0 Comments

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!