While facing difficuties when running my Simulink own model on external mode (on my TI F28335), I decided to try the basic example from Mathworks ( de.mathworks.com/.../parameter-tuning-and-signal-logging-with-serial-external-mode.html ) and concluded that not even that works.
I am receiving the same errors. My error message:
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.
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.
So:
I) Code building works straight. The error happens just when trying to run on external mode that example on the DSP, at the end.
II) I tryied other computers, same error.
III) I tried other versions of Matlab (2015, 2017, 2018), none of them works. same error.
IV) I tried other DSP from the same model, same stuff.
V) The Test Target Communication works well on Code composer Studio, and it even can flash TI examples to the DSP (flashing leds). So the Delfino is working and the cable is good.
VI) I tried to use the CCS hardware configuration file on Simulink, no change.
VII) I checked the COM, its right. I even slowed down the Oscillator clock, no improvement. The parameters are equal to the "Device Manager" from Windows config.
Am I doing something stupid? What any other possible reason can exist for Matlab do not access the F28335?
I tried that c28x_serial_ext example because it was suposed to be easy, but not even that works.
Thanks for the support,
Ruben