When starting the PIL testing of a model with test harness, following error appears:
Cannot perform a processor-in-the-loop (PIL) simulation for "State_Machine". The configuration parameters for this model do not support the following connectivity configurations: 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.
S32k configuration block is present and PIL option is selected.
There is a workaround , remove the s32k configuration block from the model and place it back. Restart the SIL and everything works fine.
Took me 2 days to fined this simple hack.
But this is not a real solution as the problem pops-up again after re-opening the project.