AnsweredAssumed Answered

Failed to connecting to the target through MATLAB simulink.

Question asked by Abdulilah Alsulami on Oct 26, 2017
Latest reply on Mar 13, 2018 by Aimagin Co., Ltd.
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.