This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335: Matlab external mode: Error occurred while executing External Mode MEX-file 'ext_comm':

Part Number: TMS320F28335

Hi,

I am trying to run a Matlab Simulink R2017b model on a F28335 using external mode. The example from Mathworks ( https://de.mathworks.com/help/supportpkg/texasinstrumentsc2000/examples/parameter-tuning-and-signal-logging-with-serial-external-mode.html ) works fine. Also if the 'boot from flash' checkbox in the Simulink preferences is ticked the example model works in external mode. When trying to run my own model in external mode (booted from flash because of its size) the following error occures:

Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out:
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.


Deploying my model to hardware works, only external mode fails. Does anyone have a solution to this issue?

In addition to this I would like to know more about how Simulink generates the Linker command files (*.cmd).

I have observed that the program code is stored in different sections of memory (of cause) dependent on if "Run from Flash" is ticked in the Model Preferences.
My model is too large to fit into the RAM so I wonder if and how to put it into Flash or Zone7D and how to execute from there.

Thank you for your efforts!