AnsweredAssumed Answered

Timeout error trying to connect via "external mode"

Question asked by Billie1123 on Apr 1, 2015
Latest reply on Apr 29, 2015 by Billie1123
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

Outcomes