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

11 次查看(过去 30 天)
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 个评论
Radavid Lim
Radavid Lim 2024-9-5
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....

请先登录,再进行评论。

回答(1 个)

Abhinav Aravindan
Abhinav Aravindan 2024-9-10
编辑:Abhinav Aravindan 2024-9-10
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 个评论
Nithin
Nithin 2024-9-17
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 2024-9-24
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

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by