Failed to connect to the target on simulink !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-12 9:10 AM
Hi --
I use 2016b Matlab version with STM32F429ZI nucleo board.
I am tring to use External mode with simulink,
I followed
the example and the instructions decribed in ''the MAT/TARGET instruction (Hands On, Rev 2.2, Page 86-105). I follow all procedure mentioned on MAT-Target PDF, but when I begin connecting my model to the target this error message occurred (Picture below):''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.
Any help for solving this issue please ?
Solved! Go to Solution.
- Labels:
-
STM32-MatTarget
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-12 8:48 PM
Hi, Abdelhak
- You must try change selection to stm32_tcpip and change again back to stm32_serial for make sure that MEX-file name is ext_serial_win32_comm.
- Check your COM Port at Device Manager before Build model at Simulink.
- STM32F429ZI use USART3 for external mode
- After you build and download your code to target please make sure that your target is running before click Connect to Target at Simulink.
(1.)
(2.)
(3.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-12 9:50 AM
https://community.st.com/0D50X00009XkX71SAF
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-12 11:07 AM
Thanks for your response
But i don't understant how to use USB Serial Port ? Instead STMicroelectronics STLink Virtual COM Port !!!! ?
Any help please ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-12 8:48 PM
Hi, Abdelhak
- You must try change selection to stm32_tcpip and change again back to stm32_serial for make sure that MEX-file name is ext_serial_win32_comm.
- Check your COM Port at Device Manager before Build model at Simulink.
- STM32F429ZI use USART3 for external mode
- After you build and download your code to target please make sure that your target is running before click Connect to Target at Simulink.
(1.)
(2.)
(3.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-03-13 8:01 AM
panuwat.s
All it's ok now, thank you very much.
