Clear Filters
Clear Filters

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

6 views (last 30 days)
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 Comment
madhan ravi
madhan ravi on 6 Jan 2024
Edited: madhan ravi on 6 Jan 2024
As the message says , the Stm32 board uses a local timer so simulation time is not based

Sign in to comment.

Accepted Answer

Jung Sunghun
Jung Sunghun on 7 Jan 2024
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 Comment
madhan ravi
madhan ravi on 7 Jan 2024
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.

Sign in to comment.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!