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


ST-link fail to connect to target, "Wrong device detected"

I am trying to flash and debug a program to the STM32L476VGT6 target board. I am using ST-link JTAG, but fail to connect. Error Reason shown “Wrong device detected”. I enabled debug level 3 for debug message, and attached the log for detail.

Something is not right with the following log content.

Info : 288 149 stlink_usb.c:742 stlink_usb_check_voltage(): Target voltage: 3.998441
Debug: 289 150 stlink_usb.c:506 stlink_usb_error_check(): JTAG_GET_IDCODE_ERROR

The target voltage shall be around 3.3V, but JTAG reports 4V. I suspect that the board/processor is not properly powered up. I checked power supply voltages are correct, and the all pin connections seem right.

Any idea what might be the cause of this?

Thanks!

The issue is resolved. There was some wiring issue on our target board which caused the connection issue.
Thanks!