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


openOCD Wrong device detected

Hello,

I’m tryng to run a simple program on my STM32 Discovery Kit Iot Node (STM32L475VGT6), just a blinking led. I use Eclipse IDE with System Workbench for STM32 into it. When I run the project OpenOCD shows me the following messages:

Open On-Chip Debugger 0.10.0-dev-00275-gd486ac2-dirty (2017-03-06-15:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
padded zone erase set to 1
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
adapter speed: 1800 kHz
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v28 API v2 M v18 VID 0x0483 PID 0x374B
Info : vid/pid are not identical: 0x0483/0x3748 0x0483/0x374B
Info : using stlink api v2
Info : Target voltage: 3.212042
Error: init mode failed (unable to connect to the target)
in procedure ‘program’
in procedure ‘init’ called at file “embedded:startup.tcl”, line 473
in procedure ‘ocd_bouncer’

    • OpenOCD init failed **

shutdown command invoked


Anybody know why? I suppose that the STLINK version is wrong but I am not capable of change it. Obviously other board work fine, with the correct version of STLINK.

It’s because of some kind of problem at using SCK and DIO ports of MCU. After flashing a program it’s no longer can be used as SWD. I’ve erased chip with attaching a hardware button to reset state pin and gnd. Than I go to “right click on a project -> Target -> erase chip...” Finally just before erase start I’ve pressed hardware button and released it. It works. Chip erased and ready just for one more debug. After that it’s no longer able to use SWD. I’s not very comfortable to do so after every debug, But my chineese version of ST-Link v2 dongle doesn’t use reset pin. The voltage level on it stay’s the same at any kind of debuger settings such as “connect under reset”, software or hardware reset either. I’m looking for solution right now.

 

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