필터 지우기
필터 지우기

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