cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connecting to the target through MATLAB simulink.

Abdulilah Alsulami
Associate II
Posted on October 26, 2017 at 08:07

How I can solve

Failed to connect to the target problem occurred during connecting simulink to STM32F4 board in External Mode?

 

I follow all procedure mentioned on MAT-Target PDF provided by ST, but when I begin connecting my model to the target this error message occurred:

'Error occurred while executing External Mode MEX-file 'ext_comm': Failed to connect to the target. Possible reasons for the failure: 

 

a) The target is not switched on. 

 

b)The target is not connected to your host machine. 

 

c) The application for the model is not running on the target. 

 

You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.

Caused by: Expected 1xN string array for host name'.

 

I checked the three possible errors mentioned above but no result.

Also I attached a snapshot for the error window appearing during connecting process.

So, could any one help me for solving this issue.

I used 2016a MatLab version with STM32F4 nucleo board.

#simulink #stm32-mat/target-matlab
20 REPLIES 20
Posted on March 13, 2018 at 04:58

Please checkmy replied at this

https://community.st.com/0D50X00009XkWdmSAF

.

https://community.st.com/0D50X00009XkWdmSAF