Skip to main content
VLima.1
Associate
August 5, 2021
Question

BlueNRG-X Flasher Utility (4.1.0) is not recognizing SWD connections when ST-link/V2 is connected. I'm running the flasher through a command line interface to get the error message (BlueNRG-X_Flasher_Launcher.exe).

  • August 5, 2021
  • 5 replies
  • 1911 views

The error message that appears is:

"Traceback (most recent call last):

File "Script_launcher.py", line 542, in <module>

File "globals.py", line 555, in get_stlink_list

File "build\bdist.win32\egg\usb\core.py", line 1246, in device_iter

File "build\bdist.win32\egg\usb\backend\libusb1.py", line 717, in enumerate_devices

File "build\bdist.win32\egg\usb\backend\libusb1.py", line 631, in __init__

File "build\bdist.win32\egg\usb\backend\libusb1.py", line 595, in _check

usb.core.USBError: [Errno 19] No such device (it may have been disconnected)

[47128] Failed to execute script Script_launcher"

0693W00000D1efmQAB.png

This topic has been closed for replies.

5 replies

Winfred LU
ST Employee
August 17, 2021

Please check if ST-Link/V2 is connected properly.

Then try again after erasing the flash with UART.

0693W00000D2eXaQAJ.png

VLima.1
VLima.1Author
Associate
August 17, 2021

Thanks for your answer. I already checked the ST-Link/V2 connection and is working. I tried using the STM32 ST-LINK Utility (STSW-LINK004) and the SWD connection is recognized. But the BlueNRG Flasher Utility keeps responding that error message.

Winfred LU
ST Employee
August 18, 2021

Were you trying to connect a STM32 or BlueNRG-1?

Please note that STM32 ST-LINK Utility (STSW-LINK004) does not work with BlueNRG-1/BlueNRG-2, instead, BlueNRG-1 ST-LINK utility (STSW-BNRG1STLINK) shall be used.

Please check if BlueNRG-X Flasher Utility GUI works for you or not?

VLima.1
VLima.1Author
Associate
August 18, 2021

I'm using Bluenrg-LP. BlueNRG-X Flasher Utility GUI does not work because in the SWD tab does not appear any device. That's why I tried the BlueNRG Flasher Launcher to verify via command line the error message.

Winfred LU
ST Employee
August 19, 2021

Were you using STEVAL-IDB011V1 ?

By default CMSIS-DAP can be used without needing an external ST-Link/V2.

Anyway, both shall work:

0693W00000DplOJQAZ.png 

Looking back to your screenshot, the traceback shows that pyusb/libusb failed when iterating on all the enumerated (ST-Link) devices. It was somehow disconnected?

I am not able the replicate the issue with my laptop and ST-Link/V2.

Several things worth to try:

  • Try to unplug and re-plug the device
  • Try other USB ports
  • Try with a different PC