Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


Cannot add Global Variables in debugging

Hi all, since last updates, I cannot add global variables in debug windows view.
I expect to see the locsal variables as well, but nothing is in variables window.

The only way is watch expressions, but I’d like to live monitor a variable and this can be done only through variables window.

Using ST-LINK V2 debugger, any setting I miss?

DSF-GDB does not support displaying global variables in the variables view.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=219040Question
BTW, the Variables tab shows automatically the local variables. It is automatically updated with the new local variables while jumping into a function.
You can use the expressions view to show the global variables you are interested in.


it’s what I realized today googling around.
But I was looking for variable view since it seems that it allows a live monitoring of the some selected variables, as in keil.
do you know some turnaround?


Both Expression and Variables views are working in the same way. The program execution must be stopped to get updated values. It is part of the wish list as you can see in this post :
http://www.openstm32.org/forumthread269Question
Another solution : could it be possible to transmit the variable values in using a serial link / UART?

Hi, I know and use this system.
But sometimes it is useful to monitor the variables during program execution.
I cannot transmit over USB/UART (already in use for the app). The only possibility is through the debugger.

Look at this post:
https://mcuoneclipse.com/2013/01/27/live-view-for-variables-and-memory/Question

maybe there is a turnaround to get some variables inspected live through st-link?


BTW did you ever tried trace_printf?


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs