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


System Workbench for STM32

Hello,

I am using the Ubuntu 18.04 beta (Bionic Beaver) VM on VirtualBox - I am very familiar with this sort of environment and am fairly sure this is not specific to any Ubuntu version.

I installed SW4STM32 and the top level info is:

|------------------------------------|
System Workbench for STM32 - C/C++ Debugging Tools for MCU

Version: 2.1.4.201801121207
Build id: @build@

Copyright (c) 2013 - 2014 Ac6 Tools. All rights reserved.
Visit http://www.openstm32.orgQuestion

|------------------------------------|

The installation looks fine (went w/o any errors):

1. I setup my eclipse workspaces in couple of subdirs off a base ~/$USER/eclipse_ws/
2. Created my project for STM32F051C8
3. My project builds fine to get and elf file
4. When trying to debug the build, I get the following:

In a popup window that says:
|------------------------------------|
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333

Error message from debugger back end:
localhost:3333: Connection timed out.
localhost:3333: Connection timed out.

|------------------------------------|

In the Console window, I get the following:
|------------------------------------|
Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:14)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Could not determine executable path, using configured BINDIR.
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 950 kHz
adapter_nsrst_delay: 100
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 950 kHz
Error: open failed (no matching adapter found)
in procedure ‘init’
in procedure ‘ocd_bouncer’

|------------------------------------|

Any idea how I can go about checking?

Many thanks

It turned out that the USB device for ST-Link was captured by my Windows Host. All I had to do was go to VirtualBox: Ctrl + Home->Devices->USB and select the STM32 STLink device.

Now my Linux VM “owns” the device and I can debug merrily - on to the next set of issues...

Please consider this closed.


 

Newest Forum Posts

  1. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  2. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  3. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  4. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  5. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  6. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  8. Build a project in "release" mode by tang, 2025-02-20 10:36
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35
  10. Fail to debug in Win 11 C/C++ by mortenlund, 2024-12-26 20:27

Last-Modified Blogs