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: Different signals when running simulation and when running it on the DSP - No Flash run allowed

Part Number: TMS320F28335

I am having difficulties while running a simulink model in my DSP.

1) The model runs with no errors on normal mode, but but when I set it to run on external mode, it shows different signals from the original ones. The figures are attached.

2) When trying to run it from the flash memmory, I get the old error "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."

 

Which parameter could cause that?

 


 

 

  • If you are working with docking station, the position of SW1 is the key. As per the control card info sheet: The position should be OFF.

    OFF –SW1 in the “OFF” position allows GPIO-28 to be used as a GPIO. And, the J9 connector on the docking station should be closed, i.e a jumper must be put in the place.

    Also ensure the CCS is not currently running and is closed.

    Cheers,

    -Brian

  • Brian, thanks for the quick answer.

    The switch 1 is already OFF, and the J9 is in SC. The serial connection is working.

    The model run in external mode with no errors in RAM memory. But the values are the problem (like in the figures).

    What other cause could be for this desynchronization?

    Ruben
  • Hi Ruben,

    You may consider trying the following options and see if it helps.

    1. Try increasing the SCI baud rate.

    2. Try reducing the sample rate of the model if it's too fast.

    3. Enable 1 scope at a time and see if the result are as expected.