Skip to Main Content Skip to Search
Product Documentation

Failure to Connect to Target

Possible Problem — When trying to connect to the target, the Simulation Errors dialog box displays

Checksum mismatch. Target code needs to be rebuilt.

Solution — This indicates that the model structure has changed since the last time code was generated. You must rebuild the real-time application. If your model fails to build successfully, we recommend that you delete .mk and .obj files from the Simulink Coder project directory, and then select Build from the Tools menu.

Possible Problem — When trying to connect to the target, the Simulink Diagnostic dialog box displays

External mode MEX-file "win_tgt" does not exist or is not on the 
MATLAB path.

Solution — Versions 1.0 and 1.5 of the Real-Time Windows Target software used the MEX-file win_tgt. For Version 2.2 and later, the MEX-file name was changed to rtwinext. If you create a new Simulink model, the new filename is entered correctly. If you have a Simulink model where you used Version 1.0 or 1.5, you need to change the filename using the following procedure:

  1. In the Simulink window, from the Tools menu, click External Mode Control Panel.

  2. On the External Mode Control Panel dialog box, click the Target interface button.

  3. In the MEX-file for external mode text box, enter

    rtwinext
    
  4. Click OK.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS