IBIS-AMI model creation errors on Linux

9 views (last 30 days)
Hi All,
I have a SerDes Designer project in Simulink. I want to compile it and create/export the corresponding IBIS-AMi model for the TX. The process works ok in Windows, but not in Linux, where it ends with some error messages, as reported here below:
### Model failed to compile with strict bus check on
### Turning strict bus check off
Error using coder.build.internal.buildSubsystem
Model has compile errors.
Error in coder.build.internal.buildSubsystem
Error in slbuild
Error in slbuild
Error in rtwbuild
Error in serdes.internal.rtwbuildWrapper
Error in IbisAmiManager/ExportButtonPushed (line 831)
eval("serdes.internal.rtwbuildWrapper(buildTargets,app)")
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 172)
callback(appOrUserComponent, event);
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
newCallback = @(source, event)executeCallback(ams, ...
Caused by:
Error using coder.internal.RightClickBuild/compileModel
Unable to create mex function 'b68s_tx_deemp_sfun.mexa64' required for simulation.
Error using appdesservices.internal.interfaces.model.AbstractModel/executeUserCallback
Error while evaluating Button PrivateButtonPushedFcn.
I tested with no success 2 different Matlab versions: R2024a and R2023b. Moreover I got the same identical error with a different serdes project, so this seems to be an issue/bug related the tool configuration, but not to my specific project.
The MEX building tool seems to be correctly configured:
>> mex -setup c++
MEX configured to use 'g++' for C++ language compilation.
>> !which gcc
/bin/gcc
>> !which gmake
/bin/gmake
My Linux version is RedHat 8.

Answers (1)

Satwik
Satwik on 20 Aug 2024
Hi,
I encountered a similar issue while working with the SerDes Toolbox in Simulink when compiling my Tx model. Here is a workaround that I used, which might help resolve the problem:
1) Load a Blank Model: Open a new blank model in the SerDes Designer. This model should compile without any issues.
2) Export and Copy Configurations:
a. Export this blank model to Simulink.
b. Use the ‘Model Explorer’ to copy the configuration settings from this blank model.
3) Apply Configurations to Your Model:
a. Open your original model that is causing the error.
b. Paste the copied configurations into your model using the ‘Model Explorer’.
4) Export the AMI Model: Try exporting the AMI model again.
5) Adjust the Stimulus Block:
a. If the error persists, locate the "stimulus" block in your model.
b. Check the 'custom stimulus' option and enter `[0 1 0]` as the value.
c. Uncheck the 'custom stimulus' option.
6) Export Again.
This workaround addresses issues related to configuration parameters, which appear to be the root cause, especially since the problem persists even with default SerDes Toolbox blocks. If the issue continues, consider reaching out to MathWorks support for further assistance.
Hope this helps!
  1 Comment
Aniello Viscardi
Aniello Viscardi on 28 Aug 2024
Hi Satwik, thanks for your suggestion.
I actually fixed the problem by re-launching Matlab after setting BASH as default Shell. Before I was using instead TCSH and that was the root cause of the error, based on the feedback I received from the Mathwors support service.

Sign in to comment.

Categories

Find more on Design and Simulate SerDes Systems in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!