PIL communication error. SerialPort setting issue

4 vues (au cours des 30 derniers jours)
Antonio Acampora
Antonio Acampora le 30 Mar 2020
I stay try to perform a standard PIL simulation with stm32mat/target examples, on stm32f429i...
I've build the project and load on the board the IIR and ADC example, but in both case i have communication issue.
simulink log give me this error:
*** Launcher:uiWaitForStart()
### Stopping PIL simulation
Error:The timeout of 5 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this failure.
You should:
(a) Check that the target hardware configuration is correct, for example, check that the byte ordering is correct.
(b) Confirm that the target is running.
(c) Consider the possibility of application run-time failures (e.g. divide by zero exceptions, incorrect custom code integration, etc.).
Note (c): To identify possible reasons for the run-time failure, consider using SIL, which supports signal handlers and debugging.
If you cannot find a solution, consider using the method setTimeoutRecvSecs of rtw.connectivity.RtIOStreamHostCommunicator to increase the timeout value.
The com3 is set:
>> serialport()
ans =
Serialport with properties
Port: "COM3"
BaudRate: 115200
NumBytesAvailable: 0
NumBytesWritten: 0
Show all properties
Port: "COM3"
BaudRate: 115200
NumBytesAvailable: 0
NumBytesWritten: 0
ByteOrder: "little-endian"
DataBits: 8
StopBits: 1
Parity: "none"
FlowControl: "none"
Timeout: 10
Terminator: "LF"
BytesAvailableFcnMode: "off"
BytesAvailableFcnCount: 64
BytesAvailableFcn: []
ErrorOccurredFcn: []
UserData: []
but not give me as available
Someone have a solution of my question?
how i can check?
  2 commentaires
jinyu wang
jinyu wang le 5 Mai 2020
I have the same problem,have you solved it??
Antonio Acampora
Antonio Acampora le 11 Mai 2020
i'm sorry only today i hare read the email. Yes i've solved! System workbench start automatically the serial console. Before that you program the board do you must open the serial console and disconnect.

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by