Hello,
I tried running the example PIL S32CT with MBDT S32K3xx (v1.4.0) on MATLAB 2023a. My setup consists of an S32K3x4EVB-T172 connected via the onboard OpenSDA port.
Attempt 1 (OpenSDA COM):
I can flash the generated target model successfully, but PIL execution fails immediately with the following error:
"The communication channel could not be opened" (see attached screen shot of the error message)
Attempt 2 (External USB2Serial Convertor)
I kept the OpenSDA port connected for flashing, but connected an external USB2Sireal connector to J44(1 to TX and 2 to RX) for PIL communication and updated the COM port in the hardware settings. The model flashes successfully, but execution times out with this error:
Error: The timeout of 10 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this communications failure.
You should:
(a) Check that the target hardware configuration is correct, for example, check that the byte ordering is correct.
(b) Confirm that the target application is running on the target hardware.
(c) Consider the possibility of application run-time failures (e.g. divide by zero exceptions, incorrect custom code integration, etc.).
Note (c): To identify possible reasons for the run-time failure, consider using SIL, which supports signal handlers and debugging.
If you cannot find a solution, consider using the method setTimeoutRecvSecs of rtw.connectivity.RtIOStreamHostCommunicator to increase the timeout value.
Questions:
1. Does the S32K3x4EVB-T172 board require an external USB2Serial convertor for PIL or can it run PIL over the onboard OpenSDA port ?
2. If an external USB2Serial convertor required , what is the exact hardware UART configuration expected?
3. Am i missing any configuration ?
Any guidance i highly appreciated!