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


Realtime variable plotting tool for Linux

Hello everyone! I’ve struggled with the problem, that I cannot graphically monitor my variable in real-time many times. I’ve used STMStudio on windows long times ago, but for Linux, there is no such tool. I have written a small python script, based on Matplotlib plotting library, which can connect to running OpenOCD session and monitor variable by its address. What do you think?

https://github.com/leechwort/OCDPlotQuestion
Screenshot 20190519 173656

How to use it in system workbench:
1. Create a new debug session. Run-> Debug configuration and double-click on ‘Ac6 STM32 Debugging’.
2. In this new session, we do not want to start GDB(we’ll connect to OpenOCD with OCDPlot). I have not found way to just disable running OpenOCD and skip GDB run, so I’ve replaced GDB binary in “Debugger” tab on “/bin/bash” binary. See screenshot. This will lead to error in the first start, but OpenOCD still runs.
3. Also, we do not need to flash our target, we just want to connect. Uncheck “Load Image” and “Load Symbols” checkboxes on “Startup” tab.
4. Run Debug. There will be error message “Could not determine GDB version using command”, just press “Ok”
5. Run ocdplot.py script:
$ ./ocdplot.py -a 0x40000024 -t uint32_t -n 100

where -a is the address of variable we want to watch, -t its type, -n - watching interval.

If you like this tool, feel free to commit new features into the repo!:)
Gdb Settings
Gdb Settings2

 

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