cancel
Showing results for 
Search instead for 
Did you mean: 

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

candidocudeiro
Associate II
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
2 REPLIES 2
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
Up vote any posts that you find helpful, it shows what's working..
leo fernandes
Associate
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