Why is connection to the target hardware TI C2000 TMS28335 failing?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have C2000 TMDSDOCK28335 experimental kit of texas instruments. I have MATLAB 2018a installed on my laptop and I am trying to run the experimental kit through Simulink in external mode. I have connected it through USB. Firstly I am trying to run a simple model using pulse generator and digital output block for TMS2833x. But I am getting the following error on running:
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.
Component:Simulink | Category:Block diagram error
Component:Simulink | Category:Model error
This happens at the very last of the run process after build and compile is completed and code generation is succesful. But connection to hardware fails giving the above mentioned error message.
As a solution I have tried the following methods which I came to learn on various forums including MATLAB Answers and TI support:
i) Switched off SW1 on the control card whereas all the four switches in SW2 are ON by default.
ii) Closed J9
iii) Verified and reinstalled the drivers for XDS100 Class USB Serial Port (COM6) at Device Manager -> Ports (COM & LPT)
iv) Checked "Load VCP" in both XDS100 Class auxilliary and debug ports.
v) In confurigation parameters -> Hardware Implementation, the oscillator clock frequency is set to 10 MHz from 30 MHz and CPU clock frequency is 150 MHz.
vi) The baud rate wherever mentioned incuding SCI_A is set to 9600 bits/sec.
vii) Rx and Tx are at pins 28 and 29 respectively
viii) In external mode, communication interface is serial and the serial port is COM6 same as that noted for XDS100 in Device Manager -> Ports (COM & LPT).
I am in need of the solution to this as soon as possible. After this I have to implement generation of PWM signals to accomplish my hardware project based on power electronics.
0 commentaires
Réponses (1)
Muskan
le 22 Jan 2024
Hi Imran,
The above error message indicates that communication was interrupted between the host and target, or that communication was never started at all.
There are a number of possible causes. Please confirm the switch/jumper settings being used on the device, if applicable. These should match the settings spelled out in the TI User Guide for the device, and on the Set up Serial Communication documentation page linked below.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!