Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
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 comentario
madhan ravi
madhan ravi el 6 de En. de 2024
Editada: madhan ravi el 6 de En. de 2024
As the message says , the Stm32 board uses a local timer so simulation time is not based

Iniciar sesión para comentar.

Respuesta aceptada

Jung Sunghun
Jung Sunghun el 7 de En. de 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 comentario
madhan ravi
madhan ravi el 7 de En. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by