STM32F4 simulink external mode error

7 ビュー (過去 30 日間)
Preetham Fernandes Joel
Preetham Fernandes Joel 2015 年 6 月 12 日
コメント済み: jon addams 2020 年 3 月 29 日
I am trying to run "stm32f4discovery_external_mode" example on stm32f4 discovery board. running on Matlab 64bit. getting the below error.
Error occurred while executing External Mode MEX-file 'ext_serial_win32_comm': Failed to connect to the target. A time-out occurred while waiting for the first connect response packet. 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. Component: Simulink | Category: Model error
What could be the cause and fix for it? Thanks in advance.

回答 (1 件)

Abhishek GS
Abhishek GS 2015 年 6 月 18 日
This error message can be caused by a variety of factors. Can you try changing the duration of the model to "Inf", rebuild the model and then try to connect again ?
-Abhishek
  1 件のコメント
jon addams
jon addams 2020 年 3 月 29 日
I am using MATLAB 2019a version and stm32f4 discovery board and I have the same issue. I already looked at different possible solutions in many other web sites and nothing worked for me. Could anyone help me to fix this? I tried using an USB to TTL 232 cable and the normal USB to program the board.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by