C-Caller crash with Matlab 2025a

36 views (last 30 days)
Davide
Davide on 25 Aug 2025 at 21:43
Edited: Davide on 28 Aug 2025 at 15:24
I have many models which uses C-Callers and they work properly in accelerator mode with matlab 2024b and previous.
With Matlab 2025a almost all these models crash when I run them. "Validate custom code" runs fine, but when I run the model it crash. In normal as it should be it doesn't crash.
The issue is located into the C-caller of course, but I never had problems until R2025a.
Do you have similar issues? Any advices?
Many thanks in advanced.
D

Accepted Answer

Dev
Dev on 28 Aug 2025 at 11:08
The issue of C-Caller models crashing in MATLAB R2025a might be sporadic since no models crashed when I try to the run the same in R2025a. Please refer to the below link for all the C-Caller Simulink example models which I execute successfully on MATLAB R2025a-
Furthermore, as mentioned in the question, there might be a problem with the C-Caller used in your model which might be causing the crash. Please find the below link which provides a detailed explanation on how to specify and configure C-Caller functions-
I hope the above explanation helps to solve the query.
  2 Comments
Davide
Davide on 28 Aug 2025 at 11:28
Many thanks
Davide
Davide on 28 Aug 2025 at 15:22
Edited: Davide on 28 Aug 2025 at 15:24
Hi dev
maybe I found the issue, the problem it seems not into the C-Caller but into the "transport delay". I used it to calculate the average filter.
I checked with a very small model and transport delay works pretty nice with both 2024b/2025a in accelerator mode, but with more complex models it crasches.
It crashes with:
  • simscape with local solver enabled and tc = 125e-6
  • discrete time solver backward euler in global solver
  • some custom ssc simscape model
  • with transport delay it crashs;
  • without transport delay it doesn't crash.
I try to search maybe i see something.
Thanks

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2025a

Community Treasure Hunt

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

Start Hunting!