Skip to main content
candidocudeiro
Associate II
April 1, 2015
Question

Timeout error trying to connect via ''external mode''

  • April 1, 2015
  • 2 replies
  • 880 views
Posted on April 01, 2015 at 18:22

Hi, I posted a question yesterday which was solved by myself about the external mode connection. But now I am getting another problem, a timeout error.

I am using the ''Embedded Coder Support Package for STMicroelectronics STM32F4-Discovery'' and I try to run the tutorial ''Code Verification and Validation with PIL and External Mode'' (task 4).

The error I get when I click the Start button at the last step is:

''

Error occurred while executing External Mode MEX-file 'ext_serial_win32_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. Caused by: ExtOpenSerialConnection() returned an error. More details may be reported in the MATLAB command window.

''

It seems to be a problem with the physical connection or the configuration.

I think that the problem is that I do not know how to configure de USART module. I only can configure verbosity, com port and baudrate.

I supposse I need to adjust the same parameters in the device administrator settings for the COM PORT such as baudrate, parity, stop bits... but I can't find theese options in simulink for the stm32f4. Also, I should be able to choose wich module I want to use, right? But I can't find the way to do that with the blockset I mentioned.

I followed all the steps in this tutorial but it does not work.

I think there is some configuration missing.

The next I would do it would be to try with the STM blockset or the waijung blockset, which have more blocks and I may be able to get this to work.

I would appreciate any help.

Regards
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    April 1, 2015
    Posted on April 01, 2015 at 18:39

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx]Better forum page for Matlab discussions

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    leo fernandes
    Visitor II
    December 14, 2016
    Posted on December 14, 2016 at 10:53

    Wesley,  Did you get solution to this problem? If yes, please help me to fix same problem.

    My program works with the modul nucleo but not with the modul STM32F407G-disco.

    Thanks in advance

    Regards, Lokesh Bhatt