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.
I've bought f28379d launchpad for few days. Everything works fine except external mode in MATLAB Simulink. It's say
Build process completed successfully
Verbose mode is enabled for External mode. You can disable Verbose in Model Configuration Parameters > Hardware Implementation > Target Hardware Resources > External mode.
Attempting to establish connection with hostname '127.0.0.1' through port 17725.
action: EXT_CONNECT
Component:Simulink | Category:Model
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. Possible reasons for the failure:
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.
Caused by:
An error occurred attempting to open an rtIOStream. More detail may be reported in the MATLAB command window
Component:Simulink | Category:Block diagramerror
Unable to connect to the 'TI Delfino F2837xD' target for 'blink'.
My code is already build and the LED is blinking. I'm using matlab 2016b with c2000 hardware support add on, CCS v6 , control suite 3.4.4, and window 8.1. This is the same problem as nam dinh in this thread comment section.
I've googling this for few days and can't find any solution. Thank for all of your support.
.
Pavares
Hi Gautam,
Thank for fast reply. I've double check for the model configuration parameter.
- Do I need to use extra hardware ? The only thing connected to my board is the USB cable.
- Isn't this USB port same as SCI_A ?
Pavares Kiatsuarpanon
Fastest way to get help would be to contact MathWorks Technical Support.
Before you build, make sure you have not connected to the board using CCS. In some cases, I have seen the USB port get locked (by CCS or by MATLAB) and this prevents future connections to the board.
-Brian
Pavares Kiatsuarpanon said:- Do I need to use extra hardware ? The only thing connected to my board is the USB cable.
USB cable is all that you need but you need to know which COM port is the same assigned to. That needs to be set in Simulink Configuration under Peripheral setup.
I have the same probem with F28335
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
Unable to connect to the 'TI Delfino F2833x' target for 'c28x_serial_ext'.
Component:Simulink | Category:Model error
Hello Kostas,
I see this occasionally. Can happen for a couple reasons; either CCS/MATLAB has locked the USB port and the other piece of software cant access it, or a prior deployment of code was not stopped correctly. I normally reboot my PC (to reset USB ports) and repower the board, and I'm able to get the connection working again.
HTH,
-Brian
Hello Kostas,
I had the same issue and solved it by adjusting the Target Configuration. Because you're using the Launchpad you have to set the Oscillator Clock in the "Clocking"-Tab to 10 MHz and the Pin assignment in the SCI-A-Tab to GPIO42 & GPIO43.
I hope that will help you.
Kind regards,
Benny
Hi,
For F28335 eZdsp board, the USB JTAG emulation does not support serial operation. Hence, along with USB that is used to download the program, user also needs to connect a serial cable from the DB9 connector on the board for SCI-A to the PC COM port to run the external mode. The PC COM port# is COM1.
I could run the external mode on this board by doing this connection. The default settings for SW2 switch were in place.