Hello everyone,
I am Pierpaolo Dini, an assistant professor at the University of Pisa. We made an investment, buying 10 s32k144 q100 evaluation boards, for a laboratory course on model-based design in the field of control and monitoring algorithms, but we facing difficulites in using the toolbox.
I have no longer been able to use the PIL mode with the MBD toolbox for s32k1xx evaluation boards, for models that are more complex than the example of switching on the LED via blocxco GPIO, with simulation input managed with the toggle button. It's really the only example where it allows me to do that.
In particular I noticed that anything I add to that example starts giving me the following error:
"Cannot perform a processor-in-the-loop (PIL) simulation for "xxx".
The configuration parameters for this model do not support the following connectivity configurations: IBIS_AMI, Texas Instruments Code Composer Studio (IDE), Texas Instruments Code Composer Studio (TCP/IP), Texas Instruments Code Composer Studio (Serial), s32k_pil PIL, s32k_as_pil PIL
To fix this error, update the configuration parameters or create a supported connectivity configuration. See Configure a SIL or PIL Simulation, Create a Connectivity Configuration for a Target, and Processor-in-the-Loop (PIL) Simulation in your product help. "
I really tried them all: uninstall and reinstall the toolbox, both version 4.3 (latest available) and 4.2 and 4.1. I tried with older versions of matlab, now I'm using 2020b, but I get the exact same error with versions 2022b and 2023b.
The error is quite frustrating since I have never had problems with the s32k144, and through the PIL approach we were able to test even complex algorithms such as MPC and KF. Now even the simple PI for a first order system causes error.
It makes me think there is a problem with the toolbox and not with the procedure I use which has always been the same and I have never had any problems.
I report some screens below:
1) in the configuration block the card is recognized without problems

2) in the solver configuration I used fixed step and a numerical integration time which for this type of control scheme should not cause problems when it comes to computational complexity.



3) via Simulink Test APP, the model for test harness is created, without any errors, and the control loop with the discretized first order system is set "outside". I point out that the dynamics of the system are quite "relaxed" so I doubt it is something related to computational complexity.


(l'ho chiamato pidPIL_Harness2 invece che 1 per mia convenienza, non è un errore...)
4) with SIL/PIL APP I set processor-in-the-loop in the settings, and the preliminary simulations are completed without errors (because in fact the model contains no errors...)


I hope tech support is able to resolve such a problem.