cancel
Showing results for 
Search instead for 
Did you mean: 

error while calling into the SIL or PIL target connectivity implementation. STM32G4 C:\Users\BEELEC\Documents\MATLAB\IIRfilter\IIRfilter\slprj\stm32\IIRfilterModel\sil>set MATLA

LIBNO.1
Associate II

Hello I am trying to run a SIL on the STM32G431CBUx (Discovery kit) using the IIRFilter example, but I am getting this error:

An error occurred while calling into the SIL or PIL target connectivity implementation.

I tried runing a PIL earlier but it was giving this error:

The timeout of 1 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this 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 is running.

(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.

for reference:

Windows 10

Matlab 2019b

STM32G431CBUx

SW4STM32

3 REPLIES 3
Cyril FENARD
ST Employee

Hi @LIBNO.1​ ,

The logs you have provided show that you are not following the STM32-MAT/TARGET working method.

Please consult the document STM32_MAT-TARGET_HandsOn.pdf provided by the tool, and it is mandatory to use stm32.tlc as the System target file in the configuration of the model.

Regards.

Cyril

LIBNO.1
Associate II

Hi @Cyril FENARD​ ,

I did use stm32.tlc

now I am getting this error when I run a PIL verification:

An error occurred while calling into the SIL or PIL target connectivity implementation.

  • Caused by:
  • Missing object code for source files IIRFilter.c, main.c. The model build process must generate the object code in C:\Users\BEELEC\Documents\MATLAB\IIRfilter\IIRfilter\IIRFilter_stm32\instrumented and the allowed object code extensions are ".o", ".obj", ".a", ".lib". If your compiler generates object code with a different file extension:
  •  
  • 1. Associate your template makefile with a toolchain
  • 2. Specify file extensions for the toolchain by using setFileExtension