フィルターのクリア

How to scope and print UART data from STM32F4 evaluation board?

6 ビュー (過去 30 日間)
Jung Sunghun
Jung Sunghun 2024 年 1 月 6 日
コメント済み: madhan ravi 2024 年 1 月 7 日
Hello all,
I am currently struggling to find out how to scope and print out an array of hex data as shown below.
It currently shows all zeros although the oscilloscope shows some data going to and coming from the STM32F4 board.
All wiring setup is correct since I successfully tested some other tasks.
I appreciate your help in advance.
  1 件のコメント
madhan ravi
madhan ravi 2024 年 1 月 6 日
編集済み: madhan ravi 2024 年 1 月 6 日
As the message says , the Stm32 board uses a local timer so simulation time is not based

サインインしてコメントする。

採用された回答

Jung Sunghun
Jung Sunghun 2024 年 1 月 7 日
Dear Mr. Madhan Ravi,
Thank you very much for your valuable comment.
Based on your comment, I solved it by referring to the following link.
In particular, I solved my problem by referring this answer in the above link.
--
Hi,
This is a known limitation. If you use HW timer for getting the timestamps, you can't use Scope/Display to visualize signals.
Scopes/Displays only work with Simulation timestamps only.
Only SDI(Simulink Data Inspector) Dashboard Scope/Dashboard Displays can be used for visualization when HW timer for getting the timestamps is enabled.
You can enable/disable the "HW timer for getting the timestamps" here:
check box available in 'Configuration parameters > Hardware Implementation > External mode > Use actual timer to log realtime stamps' - with this option enabled, Scope, display, from workspace, to workspace blocks will not work as already noted above.
HTH,
Regards,
Venkatesh C
  1 件のコメント
madhan ravi
madhan ravi 2024 年 1 月 7 日
Perfect, thanks for providing feedback. Will be always useful for others as well. I knew how to do it in STM32Cubeide but not in Simulink since I don’t have the license.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by