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


Trouble debugging OpenOCD operations for possible semihosting failure

I’m using System Workbench to develop on a STM32F469 chip. Everything works pretty well for ordinary use and from Eclipse.

The challenge is running the multiple tests from the command line. The unit tests can take a lot of memory so there are dozens to run. This is being driven from a make system. The results of the unit test are passed back to the PC using semihosting. The semihosting opens a file and the results are written into it.

Some times, the debugger system just locks up. At this point, I can’t remotely debug the system or see what has happened. It’s always at the same point very early in the execution or just after the run starts.

In the makefile, the OpenOCD image from the System Workbench distribution is spawned to drive the ST-Link. THen gdb is started to have the program loaded and run. The debugging output (Logging) is turned on in both programs. The files always halt at the same point.

My suspicion is that something is going wrong with the semihosting. The debugging for OpenOCD is set to mas (-d4) and, yet, there’s no log statements from semihosting_common.c in even the wholly successful executions. Every file open/close/write should be noted in the log, from what I can tell.

What I’m wondering is if there’s a way to get the semihosting actions into the log.

Thanks.

 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  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. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs