How to change baud rate for STM32 F769I-Discovery in Simulink for PiL-Simulation?

10 views (last 30 days)
Hi guys,
for a PIL-Simulation with serial connection (USB), I want to change the PIL baud rate for an STM32 F769I-Discovery:
I tried to change the PIL baud rate to e.g. 1000000 Bd. After I compiled my model, it doesn't run with my desired baud rate and it returned an error. When I left the baud rate to 115200 Bd (default), Simulink compiled my model and ran it with 115200Bd.
Is there an error or why can't I change the baud rate for a STM32-F769I Discovery although there is an option to change the baud rate (see picture above)?
Greetings
RL
  2 Comments
Radavid Lim
Radavid Lim on 5 Sep 2024
Hi Yukthi,
this is the error message:
The timeout of 10 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this communications 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 application is running on the target hardware. (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.
Anytime I want to change the baud rate the above message appears. I just can run the model with 115200 Bd only. I can't increase nor decrease the value of the baud rate. And I also tried to use the Ethernet connection but the board will no be detected....

Sign in to comment.

Answers (1)

Abhinav Aravindan
Abhinav Aravindan on 10 Sep 2024
Edited: Abhinav Aravindan on 10 Sep 2024
Hi Radavid,
It appears that you are facing an issue with Code Verification and Validation with PIL at a Baud Rate higher than the default using STM32 F769I-Discovery board. You may consider trying the following:
  1. Select the STM32F7xx Based target in the hardware selection dropdown.
  2. Proceed with the STM32CubeMX workflow for PIL instead of using the “Legacy workflow of selecting the STM32F769-Discovery hardware board.
Please find below the relevant documentation for your reference.
I hope this helps resolve your issue!
  7 Comments
Nithin
Nithin on 17 Sep 2024
The STM32F769I-Discovery is a double-precision target. You can choose either operating system as both are supported. The IOC file must be modified accordingly. The Ethernet port is greyed out because it is fixed to 17725 at present.
Hope this resolves your queries!
Radavid Lim
Radavid Lim on 24 Sep 2024
Hi Abhinav and Nithin,
I tried to change the Baud rate via the STM32MXCube Programme but it didn't work....I run the PiL-Simulation with the SIL/PIL Manager App.
Greetings
RL

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!